
/* =====================================================
   WIRELAB — LUXURY PROFILE
===================================================== */

/* =====================================================
   PROFILE LAYOUT
===================================================== */

.profile-content {
    width: min(100% - 1px, 900px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2.5vw, 22px);
    color: var(--wire-text);
}

/* =====================================================
   PREMIUM CARDS
===================================================== */

.profile-card,
.stat-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--wire-border);
    border-radius: clamp(10px, 2vw, 18px);
    background: var(--wire-surface);
    box-shadow: 0 12px 30px var(--wire-shadow);
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.profile-card {
    padding: clamp(10px, 2.5vw, 26px);
}

.profile-card:hover,
.stat-card:hover {
    border-color: var(--wire-border2);
    box-shadow:
        0 16px 36px var(--wire-shadow),
        0 0 18px var(--wire-overlay);
}

.profile-card h2 {
    margin: 0 0 clamp(10px, 2.2vw, 20px);
    color: var(--wire-text);
    font-size: clamp(12px, 1.9vw, 17px);
    font-weight: 500;
    letter-spacing: clamp(0.3px, 0.17vw, 1.5px);
}

/* =====================================================
   PROFILE IDENTITY
===================================================== */

.profile-content > .profile-card:first-child {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: clamp(8px, 3vw, 30px);
    padding: clamp(10px, 3vw, 30px);
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--wire-card),
            var(--wire-surface) 75%
        );
}

.profile-card-avatar {
    --avatar-size: clamp(60px, 15vw, 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2px, 0.5vw, 5px);
    flex-shrink: 0;
}

.profile-card-avatar-frame {
    width: var(--avatar-size);
    height: var(--avatar-size);
    padding: clamp(2px, 0.55vw, 5px);
    border: 1px solid var(--wire-accent);
    border-radius: clamp(5px, 1vw, 8px);
    background: var(--wire-bg);
    box-shadow: 0 0 24px var(--wire-overlay);
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.profile-card-avatar-frame:hover {
    transform: scale(1.04);
    box-shadow: 0 0 22px var(--wire-accent);
}

.profile-card-avatar-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.profile-info {
    min-width: 0;
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 clamp(4px, 1vw, 8px);
    color: var(--wire-text);
    font-size: clamp(16px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: clamp(-0.8px, -0.08vw, -0.2px);
    overflow-wrap: anywhere;
}

.profile-info > p {
    margin: 0 0 clamp(10px, 2.5vw, 24px);
    color: var(--wire-text2);
    font-size: clamp(10px, 1.7vw, 15px);
    overflow-wrap: anywhere;
}

/* =====================================================
   IDENTITY STATISTICS
===================================================== */

.profile-status {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: clamp(8px, 2vw, 18px);
    border-top: 1px solid var(--wire-border);
    min-width: 0;
}

.status-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: clamp(2px, 0.6vw, 5px);
    min-width: 0;
    padding: 0 clamp(4px, 2vw, 22px);
    border-right: 1px solid var(--wire-border);
}

.status-item:first-child {
    padding-left: 0;
}

.status-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.status-item strong {
    color: var(--wire-accent);
    font-size: clamp(12px, 2.6vw, 23px);
    font-weight: 500;
}

.status-item span {
    color: var(--wire-text3);
    font-size: clamp(8px, 1.35vw, 12px);
    letter-spacing: clamp(0px, 0.07vw, 0.5px);
    overflow-wrap: anywhere;
}

/* =====================================================
   BUTTONS
===================================================== */

.edit-button,
.reset-button,
.modal-button {
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid var(--wire-border2);
    border-radius: clamp(6px, 1.2vw, 10px);
    background: var(--wire-hover);
    color: var(--wire-text);
    font: inherit;
    font-size: clamp(9px, 1.35vw, 12px);
    font-weight: 500;
    letter-spacing: clamp(0.2px, 0.12vw, 1px);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.edit-profile-button {
    min-height: 8px;
    padding: 0 8px;
    border: 1px solid var(--wire-border2);
    border-radius: clamp(6px, 1.2vw, 10px);
  
   
}




/* =====================================================
   TRAINING PROGRESS
===================================================== */

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(5px, 1.8vw, 16px);
    min-width: 0;
}

.card-heading h2 {
    margin-bottom: 0;
}

.progress-percent {
    flex-shrink: 0;
    color: var(--wire-accent);
    font-size: clamp(13px, 2.2vw, 20px);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: clamp(4px, 0.9vw, 8px);
    margin: clamp(12px, 2.5vw, 22px) 0 clamp(8px, 1.6vw, 14px);
    border: 1px solid var(--wire-border);
    border-radius: 99px;
    background: var(--wire-bg);
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--wire-accent),
        var(--wire-accent-hover)
    );
    box-shadow: 0 0 12px var(--wire-accent);
    transition: width 0.7s ease;
}

.progress-text {
    margin: 0;
    color: var(--wire-text2);
    font-size: clamp(10px, 1.45vw, 13px);
}

/* =====================================================
   STAT CARDS
===================================================== */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.8vw, 16px);
}

.stat-card {
    display: flex;
    min-width: 0;
    min-height: clamp(60px, 13vw, 120px);
    flex-direction: column;
    justify-content: center;
    gap: clamp(4px, 1.2vw, 10px);
    padding: clamp(6px, 2.5vw, 22px);
    overflow: hidden;
}

.stat-card strong {
    color: var(--wire-accent);
    font-size: clamp(14px, 3.3vw, 30px);
    font-weight: 400;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.stat-card:hover strong {
    color: var(--wire-accent-hover);
}

.stat-card span {
    color: var(--wire-text2);
    font-size: clamp(9px, 1.45vw, 13px);
    overflow-wrap: anywhere;
}

/* =====================================================
   QUICK ACCESS
===================================================== */

.quick-access {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(5px, 1.5vw, 12px);
}

.quick-link {
    display: flex;
    min-width: 0;
    min-height: clamp(34px, 6.5vw, 58px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(4px, 1.5vw, 12px);
    padding: 0 clamp(6px, 2vw, 18px);
    border: 1px solid var(--wire-border);
    border-radius: clamp(7px, 1.5vw, 12px);
    background: var(--wire-card);
    color: var(--wire-text);
    text-decoration: none;
    font-size: clamp(9px, 1.45vw, 13px);
    font-weight: 500;
    letter-spacing: clamp(0.2px, 0.12vw, 1px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.quick-link span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.quick-link span:last-child {
    flex-shrink: 0;
    color: var(--wire-accent);
    font-size: clamp(13px, 2.2vw, 20px);
    transition: transform 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    border-color: var(--wire-accent);
    background: var(--wire-hover);
    color: var(--wire-accent-hover);
}

.quick-link:hover span:last-child {
    transform: translateX(4px);
}

/* =====================================================
   PROGRESS MANAGEMENT
===================================================== */

.settings-card > p {
    margin: -6px 0 clamp(10px, 2.2vw, 20px);
    color: var(--wire-text2);
    font-size: clamp(11px, 1.55vw, 14px);
    line-height: 1.7;
}

.reset-button {
    border-color: var(--wire-danger);
    color: var(--wire-danger);
}

.reset-button:hover {
    background: var(--wire-danger);
    color: var(--wire-button-text);
    box-shadow: 0 0 16px var(--wire-overlay);
}

/* =====================================================
   EDIT PROFILE MODAL
===================================================== */

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2.5vw, 20px);
    background: var(--wire-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-modal.open {
    display: flex;
}

.profile-modal-box {
    width: min(100%, 580px);
    max-height: min(88vh, 850px);
    padding: clamp(12px, 3vw, 28px);
    border: 1px solid var(--wire-border2);
    border-radius: clamp(12px, 2vw, 20px);
    background: var(--wire-surface);
    box-shadow: 0 24px 70px var(--wire-shadow);
    overflow-y: auto;
    animation: profile-modal-enter 0.22s ease;
}

@keyframes profile-modal-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-modal-box > h2 {
    margin: 0 0 clamp(14px, 2.5vw, 24px);
    color: var(--wire-text);
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 400;
    letter-spacing: clamp(0.3px, 0.17vw, 1.5px);
    text-align: center;
}

.profile-modal-box > h3 {
    margin: clamp(14px, 2.2vw, 20px) 0 clamp(10px, 1.6vw, 14px);
    color: var(--wire-text2);
    font-size: clamp(10px, 1.35vw, 12px);
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
}

/* =====================================================
   MODAL AVATAR PREVIEW
===================================================== */

.modal-profile-picture {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(10px, 2vw, 18px);
}

.modal-profile-picture img {
    width: clamp(58px, 10vw, 94px);
    height: clamp(58px, 10vw, 94px);
    padding: clamp(2px, 0.45vw, 4px);
    border: 1px solid var(--wire-accent);
    border-radius: 8px;
    background: var(--wire-bg);
    object-fit: cover;
    box-shadow: 0 0 20px var(--wire-overlay);
}

/* =====================================================
   AVATAR PICKER
===================================================== */

.modal-profile-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(4px, 1.4vw, 10px);
    max-height: 240px;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-profile-option {
    aspect-ratio: 1;
    min-width: 0;
    padding: clamp(2px, 0.55vw, 4px);
    border: 1px solid var(--wire-border);
    border-radius: clamp(6px, 1.5vw, 12px);
    background: var(--wire-card);
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.modal-profile-option img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-profile-option:hover {
    transform: translateY(-2px);
    border-color: var(--wire-accent);
}

.modal-profile-option.selected,
.modal-profile-option[aria-pressed="true"] {
    border-color: var(--wire-accent);
    background: var(--wire-active);
    box-shadow: 0 0 12px var(--wire-overlay);
}

/* =====================================================
   PROFILE FORM
===================================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 1vw, 8px);
    margin-top: clamp(12px, 2vw, 20px);
}

.form-group label {
    color: var(--wire-text2);
    font-size: clamp(10px, 1.25vw, 11px);
    font-weight: 500;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    min-height: clamp(36px, 5vw, 46px);
    padding: 0 clamp(8px, 1.5vw, 14px);
    border: 1px solid var(--wire-border);
    border-radius: 10px;
    background: var(--wire-bg);
    color: var(--wire-text);
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: var(--wire-text3);
}

.form-group input:focus {
    border-color: var(--wire-focus);
    box-shadow: 0 0 0 3px var(--wire-overlay);
}

/* =====================================================
   MODAL ACTIONS
===================================================== */

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: clamp(6px, 1.5vw, 12px);
    margin-top: clamp(14px, 2.5vw, 26px);
}

.modal-cancel {
    border-color: var(--wire-border);
    background: transparent;
    color: var(--wire-text2);
}

.modal-save {
    border-color: var(--wire-accent);
    background: var(--wire-accent);
    color: var(--wire-button-text);
}

.modal-save:hover {
    background: var(--wire-accent-hover);
    color: var(--wire-button-text);
}

