/* ============================================================
   EXECOM PAGE — Team Blocks & Compact Card Layout
   ============================================================ */

/* ── PAGE-LEVEL GRID ── */
.execom-teams {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── TEAM BLOCK CONTAINER ── */
.team-block {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2rem 1.5rem 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.team-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(125, 190, 255, 0.4),
            transparent);
    pointer-events: none;
}

.team-block:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Advisor Variant ── */
.team-block--advisor {
    max-width: 400px;
    margin: 0 auto;
    border-color: rgba(255, 200, 80, 0.15);
}

.team-block--advisor::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 200, 80, 0.5),
            transparent);
}

/* ── TEAM HEADER ── */
.team-block__header {
    text-align: center;
    margin-bottom: 1.8rem;
    position: relative;
}

.team-block__header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    display: inline-block;
    position: relative;
}

.team-block__header h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #7dbeff, #6f6fbe);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.team-block--advisor .team-block__header h3::after {
    background: linear-gradient(90deg, #ffc850, #e6a020);
}

/* ── INNER GRID ── */
.team-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    justify-items: center;
}

/* Center cards when there are few items */
.team-block--advisor .team-block__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================================
   COMPACT CARD OVERRIDES
   Keep original full-bleed image style, just shrink the card.
   ============================================================ */

.pc-card--compact .pc-card {
    height: 45vh;
    max-height: 340px;
    min-height: 280px;
}

.pc-card--compact {
    width: 100%;
    max-width: 260px;
}

/* Full-bleed image — same as original, just let it fit the smaller card */
.pc-card--compact .pc-avatar-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pc-card--compact .pc-avatar-content .avatar img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: var(--card-radius);
    border-bottom-right-radius: var(--card-radius);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Slightly smaller text for compact cards */
.pc-card--compact .pc-details {
    top: 1.5em;
}

.pc-card--compact .pc-details h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
}

.pc-card--compact .pc-details p {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
}

/* Smaller user-info bar for compact cards */
.pc-card--compact .pc-user-info {
    --ui-inset: 12px;
    padding: 8px 10px;
}

.pc-card--compact .pc-mini-avatar {
    width: 28px;
    height: 28px;
}

.pc-card--compact .pc-handle {
    font-size: 11px;
}

.pc-card--compact .pc-status {
    font-size: 9px;
}

/* ── Advisor card gold accent ── */
.team-block--advisor .pc-card--compact .pc-card {
    border: 1px solid rgba(255, 200, 80, 0.12);
}

.team-block--advisor .pc-card--compact .pc-inside {
    background-image: linear-gradient(145deg, #5a4a2a8c 0%, #ffc85022 100%);
}

/* ── Specific 4-column-ish layout for Execom (Flexbox for centering last row) ── */
.team-block__grid--execom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── 2×4 grid: exactly 4 columns, 2 rows ── */
.team-block__grid--2x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

@media (max-width: 900px) {
    .team-block__grid--2x4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-block__grid--2x4 {
        grid-template-columns: 1fr;
    }
}

/* ── PYRAMID LAYOUT ──
   Head card centered on its own row, members flow below.
   Uses flexbox for natural centering.
   ───────────────────── */

.team-block__pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-block__pyramid-head {
    display: flex;
    justify-content: center;
    width: 100%;
}

.team-block__pyramid-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .execom-teams {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .team-block {
        padding: 1.5rem 1rem 2rem;
        border-radius: 18px;
    }

    .team-block__grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .pc-card--compact .pc-card {
        max-height: 280px;
        min-height: 240px;
    }

    .pc-card--compact .pc-details h3 {
        font-size: clamp(0.75rem, 2.2vw, 0.95rem);
    }

    .pc-card--compact .pc-details p {
        font-size: 0.6rem;
    }

    .team-block__header h3 {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .team-block__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .pc-card--compact .pc-card {
        max-height: 240px;
        min-height: 200px;
    }

    .pc-card--compact .pc-details {
        top: 1em;
    }

    .pc-card--compact .pc-details h3 {
        font-size: 0.75rem;
    }

    .pc-card--compact .pc-details p {
        font-size: 0.55rem;
        top: -2px;
    }

    .team-block__header h3 {
        font-size: 0.85rem;
    }

    .team-block--advisor {
        max-width: 100%;
    }
}

/* ============================================================
   EXECOM TAB SWITCHER
   ============================================================ */

/* ── Tab Bar ── */
.execom-tab-bar {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 2.5rem;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: fit-content;
    position: relative;
}

.execom-tab {
    position: relative;
    z-index: 2;
    padding: 0.65rem 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.35s ease;
    white-space: nowrap;
}

.execom-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.execom-tab.active {
    color: #fff;
}

/* ── Sliding Indicator ── */
.execom-tab-indicator {
    position: absolute;
    z-index: 1;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(125, 190, 255, 0.25), rgba(111, 111, 190, 0.25));
    border: 1px solid rgba(125, 190, 255, 0.2);
    box-shadow: 0 0 20px rgba(125, 190, 255, 0.1);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* ── Tab Panels ── */
.execom-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.execom-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .execom-tab-bar {
        margin-bottom: 1.5rem;
    }

    .execom-tab {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}