/* ==========================================================================
   PROFILE HUB SCREEN
   ========================================================================== */

.profile-screen {
    max-width: 480px;
    margin: 0 auto;
}

/* --- Identity Card (Hero Section) --- */

.profile-identity {
    background:
        linear-gradient(180deg, rgba(208, 160, 48, 0.08) 0%, transparent 60%),
        var(--bg-surface);
    border: 1px solid var(--border-dark);
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-identity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border: 3px solid var(--gold-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-mid);
    margin: 0 auto var(--spacing-md);
    box-shadow:
        0 0 0 3px var(--bg-darkest),
        0 0 0 5px var(--border-mid),
        0 6px 20px rgba(0, 0, 0, 0.5);
    image-rendering: pixelated;
}

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

.profile-avatar.avatar-placeholder {
    color: var(--text-muted);
}

.profile-avatar.avatar-placeholder svg {
    width: 56px;
    height: 56px;
}

.profile-display-name {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-bio {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-dim);
    line-height: 2;
    max-width: 340px;
    margin: 0 auto;
    padding-top: 4px;
}

/* --- Rating Showcase --- */

.profile-rating-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-dark);
}

.profile-rating-big {
    font-family: var(--font-pixel);
    font-size: 28px;
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(208, 160, 48, 0.3);
}

.profile-rating-label {
    font-family: var(--font-pixel);
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.profile-rating-icon {
    color: var(--gold);
}

.profile-rating-icon svg {
    width: 24px;
    height: 24px;
}

/* --- Record Stats --- */

.profile-record {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.profile-record-stat {
    text-align: center;
}

.profile-record-value {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--text-bright);
    line-height: 1.4;
}

.profile-record-value.wins {
    color: var(--green-light);
}

.profile-record-value.losses {
    color: var(--red-light);
}

.profile-record-value.winrate {
    color: var(--text-bright);
}

.profile-record-label {
    font-family: var(--font-pixel);
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.profile-record-divider {
    width: 1px;
    background: var(--border-dark);
    align-self: stretch;
}

/* --- Nav Buttons --- */

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--font-pixel);
    font-size: 10px;
    text-align: left;
    position: relative;
}

.profile-nav-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-raised);
}

.profile-nav-btn svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.profile-nav-btn .profile-nav-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 10px;
}

.profile-nav-badge {
    background: var(--red);
    color: var(--text-bright);
    font-family: var(--font-pixel);
    font-size: 7px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: auto;
}

/* --- Top Plants --- */

.profile-plants-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: inset 0 1px 0 rgba(255, 220, 140, 0.04);
}

.profile-plants-title {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-dark);
}

.profile-plant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-dark);
}

.profile-plant-row:last-child {
    border-bottom: none;
}

.profile-plant-name {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-main);
}

.profile-plant-score {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-dim);
}

.profile-no-plants {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-md) 0;
}

/* --- Redeem Code Link --- */

.profile-redeem {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.profile-redeem-link {
    background: none;
    border: none;
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color 0.15s;
}

.profile-redeem-link:hover {
    color: var(--text-dim);
}
