/* ============================================================
   PLAYER PROFILE CSS — Compact Hero + Portrait-Left Layout
   ============================================================ */

/* ─────────────────────────────────────────────
   COMPACT HERO
───────────────────────────────────────────── */
.profile-hero {
    background: #0f172a;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 2rem 0;      /* Much shorter than before */
}

/* Ghost watermark number — subtle background texture */
.hero-watermark {
    position: absolute;
    right: -1%;
    bottom: -10%;
    font-size: 18rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.profile-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-link {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: .5rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.breadcrumb-link i { font-size: 0.7rem; transition: transform 0.2s ease; }
.breadcrumb-link:hover { 
    color: #fff; 
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.breadcrumb-link:hover i { transform: translateX(-4px); }

.breadcrumb-divider {
    color: #2563EB;
    font-size: .5rem;
}

.breadcrumb-year {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* Number + Name + Socials — single row */
.hero-identity-row {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.hero-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: #2563EB;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
}

.hero-player-name {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.03em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.hero-socials {
    display: flex;
    gap: .6rem;
    align-self: center;
    margin-left: .5rem;
}

.hero-social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: all .2s;
}

.hero-social-btn:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.hero-social-btn.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

/* Stats — single horizontal row with separators */
.hero-stat-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
}

.hss-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 0 1.5rem 0 0;
}

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

.hss-sep {
    width: 1px;
    height: 2.5rem;
    background: rgba(255,255,255,0.15);
    margin: 0 1.5rem 0 0;
    flex-shrink: 0;
}

.hss-label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2563EB;
}

.hss-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────
   LOWER CONTENT ZONE
───────────────────────────────────────────── */
.profile-content-zone {
    background: #f1f5f9;
    padding: 2.5rem 0 6rem 0;
}

.profile-content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Two-column layout: portrait left, tabs right */
.profile-lower-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ─────────────────────────────────────────────
   PORTRAIT COLUMN (left)
───────────────────────────────────────────── */
.profile-portrait-col {
    position: sticky;
    top: 90px;    /* Clears the sticky navbar */
}

.portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(170deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.portrait-placeholder-icon {
    font-size: 14rem;
    color: rgba(255,255,255,0.12);
    transform: translateY(1.5rem);
}

/* Name badge below portrait */
.portrait-name-badge {
    background: #0f172a;
    border-radius: 0 0 10px 10px;
    padding: .9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: -4px;
}

.portrait-badge-number {
    font-size: 1rem;
    font-weight: 900;
    color: #2563EB;
    min-width: 2rem;
}

.portrait-badge-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* ─────────────────────────────────────────────
   TAB CARD COLUMN (right)
───────────────────────────────────────────── */
.profile-tab-col {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Tab nav row */
.ptabs-nav {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 1.5rem;
    background: #fff;
}

.ptab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 1.2rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    letter-spacing: .07em;
    display: flex;
    align-items: center;
    gap: .45rem;
    transition: color .15s, border-color .15s;
}

.ptab-btn:hover { color: #0f172a; }

.ptab-btn.active {
    color: #0f172a;
    border-bottom-color: #2563EB;
}

/* Tab content panels */
.ptab-content {
    display: none;
    padding: 2rem 2rem 2.5rem 2rem;
    animation: fadeUp .2s ease;
}

.ptab-content.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Section headings inside tab — blue bottom border */
.ptab-heading {
    font-size: .95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    padding-bottom: .55rem;
    border-bottom: 2px solid #2563EB;
    display: inline-block;
}

.ptab-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.1rem;
}

/* Stats tables */
.ptab-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ptab-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.ptab-table th {
    background: #0f172a;
    padding: .7rem .9rem;
    text-align: right;
    font-size: .7rem;
    font-weight: 800;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ptab-table th:first-child { text-align: left; }

.ptab-table td {
    padding: .75rem .9rem;
    text-align: right;
    font-size: .9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.ptab-table td:first-child { text-align: left; font-weight: 700; color: #0f172a; }
.ptab-table tbody tr:hover td { background: #f8fafc; }
.ptab-table tr:last-child td { border-bottom: none; }

.ptab-table tfoot td {
    background: #f1f5f9;
    font-weight: 800;
    color: #0f172a;
    border-top: 2px solid #e2e8f0;
}

/* News list */
.ptab-news-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.ptab-news-link {
    display: block;
    padding: .85rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    color: #0f172a;
    transition: all .15s;
}

.ptab-news-link:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    transform: translateX(3px);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
    .profile-lower-layout {
        grid-template-columns: 1fr;
    }

    .profile-portrait-col {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 1rem;
        align-items: center;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        padding: 1.25rem;
    }

    .portrait-name-badge {
        border-radius: 8px;
        margin-top: 0;
        background: #f1f5f9;
        justify-content: center;
    }

    .portrait-badge-name {
        color: #0f172a;
    }
}

@media (max-width: 600px) {
    .hero-stat-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .hss-sep { display: none; }
    .hss-item { padding: 0; }

    .profile-portrait-col {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portrait-frame {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 6px;
    }

    .ptabs-nav { padding: 0 .75rem; }
    .ptab-content { padding: 1.25rem; }
}
