/**
 * Profile — Full Styled CSS
 * File: /wp-content/themes/wrestlerfinder/assets/css/profile.css
 *
 * Depends on design-system.css for all custom property tokens.
 * Mobile-first: 390px base. Desktop: 1024px+.
 */

/* =============================================================================
   Profile body
============================================================================= */
.wf-profile__body {
    padding-block: var(--space-8) var(--space-16);
}

.wf-profile__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

/* Mobile: sidebar above tabs */
.wf-profile__sidebar {
    order: -1;
}

@media (min-width: 1024px) {
    .wf-profile__layout {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }
    .wf-profile__sidebar {
        order: 0;
        position: sticky;
        top: 80px;
    }
}

/* =============================================================================
   Hero
============================================================================= */
.wf-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (min-width: 768px) { .wf-hero { min-height: 420px; } }

.wf-hero__cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wf-hero__cover--image {
    /* background handled by <img> child element */
}

.wf-hero__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.22;
}

/* Dark overlay — heavier at bottom where text sits */
.wf-hero__cover--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.25) 0%,
        rgba(13, 17, 23, 0.55) 50%,
        rgba(13, 17, 23, 0.90) 100%
    );
}

.wf-hero__cover--default {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
}

/* In light mode, the hero gradient needs adjustment */
[data-theme="light"] .wf-hero__cover--image::after {
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.30) 0%,
        rgba(13, 17, 23, 0.60) 50%,
        rgba(13, 17, 23, 0.92) 100%
    );
}

[data-theme="light"] .wf-hero__cover--default {
    background: linear-gradient(135deg, #1E2640 0%, #0D1117 100%);
}

.wf-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: var(--space-12) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.wf-hero__identity {
    display: flex;
    align-items: flex-end;
    gap: var(--space-5);
}

/* Avatar */
.wf-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.wf-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: block;
    background: var(--color-surface-2);
}

@media (min-width: 640px) {
    .wf-hero__avatar { width: 100px; height: 100px; }
}

@media (min-width: 1024px) {
    .wf-hero__avatar { width: 120px; height: 120px; }
}

.wf-hero__pro-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #0D1117;
    font-family: var(--font-heading);
    line-height: 1.6;
}

/* Name — Barlow Condensed, large */
.wf-hero__name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.95;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 0;
}

/* Meta row */
.wf-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: var(--space-2);
}

.wf-hero__meta-item {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.wf-hero__meta-item + .wf-hero__meta-item::before {
    content: '·';
    margin-inline: var(--space-2);
    opacity: 0.4;
}

.wf-hero__hs-link {
    color: var(--color-teal);
    text-decoration: none;
}

.wf-hero__hs-link:hover {
    color: var(--color-teal-hover);
}

/* Stats bar */
.wf-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-6);
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
    .wf-hero__stats {
        gap: var(--space-6) var(--space-10);
    }
}

.wf-hero__stat { display: flex; flex-direction: column; gap: 3px; }

.wf-hero__stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-teal);
    line-height: 1;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .wf-hero__stat-value {
        font-size: var(--text-3xl);
    }
}

.wf-hero__stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.wf-hero__owner-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* =============================================================================
   Tabs
============================================================================= */
.wf-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-8);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}

.wf-tabs__nav::-webkit-scrollbar { display: none; }

.wf-tabs__btn {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

.wf-tabs__btn:hover { color: var(--color-text); }

.wf-tabs__btn--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.wf-tabs__btn--gated { opacity: 0.5; }
.wf-tabs__btn--gated:hover { opacity: 0.7; }

.wf-tabs__lock { font-size: 0.65em; }

.wf-tabs__panel { display: none; }
.wf-tabs__panel--active { display: block; }

/* =============================================================================
   Sections
============================================================================= */
.wf-section { margin-bottom: var(--space-10); }

.wf-section__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wf-section__title::before {
    content: '';
    display: block;
    width: 3px;
    height: 1.1em;
    background: var(--color-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.wf-section__subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

/* =============================================================================
   Attribute Grid
============================================================================= */
.wf-attrs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
}

@media (min-width: 640px) { .wf-attrs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .wf-attrs { grid-template-columns: repeat(4, 1fr); } }

.wf-attrs--college { grid-template-columns: 1fr; gap: var(--space-4); }

/* Academic stat cards — hero-sized numbers */
.wf-attrs--academic { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .wf-attrs--academic { grid-template-columns: repeat(4, 1fr); } }

.wf-attrs--academic .wf-attrs__item {
    flex-direction: column;
    gap: var(--space-1);
}

.wf-attrs--academic .wf-attrs__value {
    font-size: var(--text-4xl);
    line-height: 1;
    letter-spacing: -0.02em;
    align-items: baseline;
    margin-top: var(--space-1);
}

.wf-attrs--academic .wf-attrs__label {
    order: -1;
}

.wf-attrs__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.wf-attrs--college .wf-attrs__item {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
}

.wf-attrs__label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-subtle);
}

.wf-attrs__value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.wf-attrs__sub {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-subtle);
}

.wf-attrs__meta {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-subtle);
    margin: 0;
}

/* =============================================================================
   Career Summary Bar
============================================================================= */
.wf-career-summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6) var(--space-10);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

.wf-career-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    border-radius: 0 2px 2px 0;
}

.wf-career-summary__stat { display: flex; flex-direction: column; gap: 4px; }

.wf-career-summary__value {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.01em;
}

.wf-career-summary__label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-subtle);
}

/* =============================================================================
   Season Records
============================================================================= */
.wf-seasons { display: flex; flex-direction: column; gap: var(--space-4); }

.wf-season {
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wf-season:hover {
    border-color: var(--color-border-subtle);
    box-shadow: var(--shadow-card);
}

/* Season card achievement differentiation — achievement is communicated
   by the placement badges inside each card (.wf-season__badges). Champ
   additionally gets a tinted background + hover teal glow for extra
   visual weight at the top of the tier. No left-border stripes here;
   see "Avoid colored left-edge accents" in CLAUDE.md CSS Gotchas. */

.wf-season--champ {
    background: var(--color-teal-dim);
}
.wf-season--champ:hover { box-shadow: var(--shadow-teal); }

.wf-season__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.wf-season__year {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    color: var(--color-text);
}

.wf-season__school {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-base);
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.wf-season__badges { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.wf-season__record { margin-bottom: var(--space-4); }

.wf-season__record-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.wf-season__record-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-subtle);
    margin-left: var(--space-2);
}

.wf-season__detail {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-subtle);
}

.wf-season__detail-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

/* =============================================================================
   Badges
============================================================================= */
.wf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.5;
}

.wf-badge__icon {
    flex-shrink: 0;
    display: block;
}

/* Utility / layout badges */
.wf-badge--weight  { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.wf-badge--primary { background: var(--color-warning);   color: #0D1117; }
.wf-badge--type    { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.wf-badge--season  { background: var(--color-surface-3); color: var(--color-text-muted); }
.wf-badge--sm      { font-size: 10px; padding: 2px 7px; }

.wf-badge--level {
    background: var(--color-primary);
    color: #0D1117;
    font-size: var(--text-sm);
    padding: 4px 14px;
    letter-spacing: 0.06em;
}

/* Placement achievement badges — tiered hierarchy */
/* 1st Place — gold, trophy icon */
.wf-badge--champ {
    background: #C8860A;
    background: linear-gradient(135deg, #D4940E 0%, #B87A08 100%);
    color: #FFF8E6;
    padding: 4px 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
    box-shadow: 0 1px 6px rgba(200, 134, 10, 0.45);
}

/* 2nd–3rd — silver/steel */
.wf-badge--allstate {
    background: rgba(148, 166, 190, 0.18);
    color: #A8B8CC;
    border: 1px solid rgba(148, 166, 190, 0.35);
}

/* 4th–8th — standard placer */
.wf-badge--placer {
    background: var(--color-teal-dim);
    color: var(--color-primary);
    border: 1px solid var(--color-teal-border);
}

/* Qualifier — outline only */
.wf-badge--qualifier {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

[data-theme="light"] .wf-badge--allstate {
    background: rgba(100, 120, 150, 0.10);
    color: #5A6C80;
    border-color: rgba(100, 120, 150, 0.30);
}

/* =============================================================================
   Awards
============================================================================= */
.wf-awards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wf-award {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.wf-award:last-child { border-bottom: none; }

.wf-award__title {
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}

.wf-award__year {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
    padding-right: var(--space-1);
}

.wf-award__desc {
    width: 100%;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* =============================================================================
   Endorsements
============================================================================= */
.wf-endorsements { display: flex; flex-direction: column; gap: var(--space-4); }

.wf-endorsement {
    padding: var(--space-5) var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin: 0;
}

.wf-endorsement__text {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
    line-height: 1.7;
}

.wf-endorsement__footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.wf-endorsement__photo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}

.wf-endorsement__name {
    font-style: normal;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-text);
    display: block;
}

.wf-endorsement__role {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}

/* =============================================================================
   Videos
============================================================================= */

/* Primary video — full width, prominent */
.wf-video--primary { margin-bottom: var(--space-6); }

.wf-video--primary .wf-video__wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.wf-video--primary .wf-video-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
}

/* Primary eyebrow label */
.wf-video__eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 var(--space-1);
}

/* Meta above player */
.wf-video__meta { margin-bottom: var(--space-3); }

.wf-video__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 var(--space-2);
    color: var(--color-text);
}

.wf-video--secondary .wf-video__title { font-size: var(--text-base); }

.wf-video__tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Secondary videos — 2-column grid */
.wf-videos__secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 600px) {
    .wf-videos__secondary { grid-template-columns: 1fr 1fr; }
}

.wf-video--secondary .wf-video__wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.wf-video--secondary .wf-video-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
}

/* Processing / failed video placeholder */
.wf-video__wrap--placeholder {
    aspect-ratio: 16 / 9;
    background: var(--color-surface-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border-radius: var(--radius-lg);
}

.wf-video__placeholder-icon {
    color: var(--color-text-subtle);
    opacity: 0.5;
}

.wf-video__placeholder-label {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    margin: 0;
}

.wf-player-watermark {
    position: absolute;
    bottom: 56px;
    right: var(--space-4);
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

.wf-player-watermark__img { height: 20px; width: auto; }

/* =============================================================================
   Photo Gallery
============================================================================= */
.wf-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

@media (min-width: 640px) { .wf-gallery { grid-template-columns: repeat(3, 1fr); } }

.wf-gallery__item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface-2);
    position: relative;
}

.wf-gallery__link { display: block; width: 100%; height: 100%; }

.wf-gallery__link--hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.wf-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.wf-gallery__link:hover .wf-gallery__img { transform: scale(1.05); }

/* "+N more" scrim overlay on 3rd photo slot */
.wf-gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.68);
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.wf-gallery__more:hover { background: rgba(13, 17, 23, 0.50); }

/* =============================================================================
   Tags
============================================================================= */
.wf-tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.wf-tag {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.wf-tag--level {
    background: var(--color-primary);
    color: #0D1117;
    border-color: var(--color-primary);
    font-weight: 700;
}

/* =============================================================================
   Gate (Pro lock)
============================================================================= */
.wf-gate {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-2xl);
    background: var(--color-surface);
}

.wf-gate--sm { padding: var(--space-5) var(--space-4); }

.wf-gate__icon { font-size: 2.5rem; margin-bottom: var(--space-3); opacity: 0.6; }

.wf-gate__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 var(--space-2);
    color: var(--color-text);
}

.wf-gate__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 380px;
    margin-inline: auto;
    margin-bottom: var(--space-5);
    line-height: 1.7;
}

.wf-gate__founding {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}

/* =============================================================================
   Sidebar Cards
============================================================================= */
.wf-sidebar-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    background: var(--color-surface);
    transition: border-color var(--transition-fast);
}

.wf-sidebar-card--score {
    border-color: var(--color-teal-border);
    box-shadow: var(--shadow-teal);
}

.wf-sidebar-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    margin: 0 0 var(--space-4);
}

.wf-sidebar-card__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: var(--space-2) 0 0;
}

.wf-sidebar-card__footnote {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin: var(--space-3) 0 0;
    line-height: 1.5;
}

/* =============================================================================
   Visibility Score Ring
============================================================================= */
.wf-score { text-align: center; }

.wf-score__ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin-bottom: var(--space-3);
}

.wf-score__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.wf-score__track { stroke: var(--color-surface-2); }

.wf-score--low  .wf-score__fill { stroke: var(--color-error);   }
.wf-score--mid  .wf-score__fill { stroke: var(--color-warning);  }
.wf-score--high .wf-score__fill { stroke: var(--color-primary);  }

.wf-score__fill {
    stroke-dasharray: 314;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 6px currentColor);
}

.wf-score__number {
    display: flex;
    align-items: baseline;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.wf-score__value {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.wf-score__denom {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    font-weight: 500;
}

.wf-score__label {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.wf-score__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =============================================================================
   Stat List (sidebar)
============================================================================= */
.wf-stat-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
}

.wf-stat-list__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-subtle);
}

.wf-stat-list__item:last-child { border-bottom: none; padding-bottom: 0; }

.wf-stat-list__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.wf-stat-list__value {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

/* =============================================================================
   Social Links
============================================================================= */
.wf-social-links {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.wf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.wf-social-link:hover {
    background: var(--color-teal-dim);
    color: var(--color-primary);
    border-color: var(--color-teal-border);
}

/* =============================================================================
   Progress Bar
============================================================================= */
.wf-progress {
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--color-surface-2);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.wf-progress__bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    transition: width 0.8s ease;
    box-shadow: 0 0 8px var(--color-teal-glow);
}

/* =============================================================================
   Checklist
============================================================================= */
.wf-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.wf-checklist__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.wf-checklist__item:last-child { border-bottom: none; }

.wf-checklist__item--done { color: var(--color-text-subtle); }

.wf-checklist__icon {
    font-size: var(--text-sm);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.wf-checklist__item--done .wf-checklist__icon { color: var(--color-success); }
.wf-checklist__label { flex: 1; }

.wf-checklist__pts {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* =============================================================================
   Upgrade List
============================================================================= */
.wf-upgrade-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.wf-upgrade-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wf-upgrade-list li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 800;
    flex-shrink: 0;
}

/* =============================================================================
   Buttons
============================================================================= */
.wf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}

.wf-btn--primary {
    background: var(--color-primary);
    color: #0D1117;
    border-color: var(--color-primary);
}
.wf-btn--primary:hover {
    background: var(--color-teal-hover);
    border-color: var(--color-teal-hover);
    color: #0D1117;
    box-shadow: var(--shadow-teal);
}

.wf-btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.wf-btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.wf-btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}
.wf-btn--full { width: 100%; }

/* =============================================================================
   Prose
============================================================================= */
.wf-prose {
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--color-text-muted);
}

.wf-prose--sm { font-size: var(--text-sm); }
.wf-prose p   { margin: 0 0 var(--space-3); }
.wf-prose p:last-child { margin-bottom: 0; }
.wf-prose ul, .wf-prose ol { padding-left: 1.5em; margin-bottom: var(--space-3); }

/* =============================================================================
   Empty state
============================================================================= */
.wf-empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--color-text-subtle);
    font-size: var(--text-sm);
}

/* ---------------------------------------------------------------------------
   Video playlist — active card highlight
--------------------------------------------------------------------------- */
.wf-video--secondary {
    cursor: pointer;
}

.wf-video--secondary.is-playing {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-teal-dim);
}

/* ---------------------------------------------------------------------------
   Secondary video card — thumbnail + overlay layout
--------------------------------------------------------------------------- */
.wf-video__thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-surface-2);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.wf-video__thumb-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.wf-video__thumb-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.wf-video__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: background 0.15s;
}

.wf-video--secondary:hover .wf-video__play-overlay {
    background: rgba(0,0,0,0.4);
}

.wf-video__card-info {
    padding: 8px 4px 4px;
}

.wf-video__card-title {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 3px;
}

.wf-video__card-type {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wf-video--secondary.is-playing .wf-video__thumb-wrap {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-teal-dim);
}

.wf-video--secondary.is-playing .wf-video__play-overlay {
    background: rgba(0,212,212,0.15);
}

.wf-video__thumb-canvas,
.wf-video__play-overlay,
.wf-video__card-info {
    pointer-events: none;
}

.wf-video__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-video--secondary.is-playing .wf-video__play-icon {
    display: none;
}

.wf-video--secondary.is-playing .wf-video__now-playing {
    display: flex !important;
    align-items: center;
    gap: 4px;
    background: var(--color-primary);
    color: #0D1117;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

/* =============================================================================
   Contact tab — three-section layout (direct / socials / location)
============================================================================= */

/* Section A — direct contact cards */
.wf-contact-direct {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   var(--space-4);
    margin-bottom:         var(--space-6);
}

.wf-contact-card {
    display:         flex;
    flex-direction:  column;
    align-items:     flex-start;
    gap:             var(--space-2);
    padding:         var(--space-5);
    background:      var(--color-surface);
    border:          1px solid var(--color-border);
    border-radius:   var(--radius-lg);
    text-decoration: none;
    transition:      border-color var(--transition-fast);
}

.wf-contact-card:hover {
    border-color: var(--color-primary);
}

.wf-contact-card__icon {
    font-size: var(--text-2xl);
}

.wf-contact-card__value {
    font-size:   var(--text-lg);
    font-weight: 600;
    color:       var(--color-text);
    word-break:  break-word;
}

.wf-contact-card__action {
    font-size: var(--text-xs);
    color:    var(--color-text-subtle);
}

/* Section wrapper — gives Social + Location a consistent label header.
   Direct contact (phone + email) stays unlabelled; the icons already carry
   meaning and a label above would just crowd the first-viewport real estate. */
.wf-contact-section {
    margin-bottom: var(--space-6);
}

.wf-contact-section__label {
    font-size:      var(--text-xs);
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--color-text-subtle);
    margin:         0 0 var(--space-3);
}

/* Section B — social icons row */
.wf-contact-socials {
    display: flex;
    gap:     var(--space-3);
}

.wf-social-icon-btn {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           48px;
    height:          48px;
    border-radius:   var(--radius-full);
    background:      var(--color-surface-2);
    border:          1px solid var(--color-border);
    color:           var(--color-text-muted);
    transition:      background var(--transition-fast),
                     color var(--transition-fast);
    text-decoration: none;
}

.wf-social-icon-btn:hover              { background: var(--color-surface-3); color: var(--color-text); }
.wf-social-icon-btn--instagram:hover   { color: #E1306C; }
.wf-social-icon-btn--twitter:hover     { color: #1DA1F2; }
.wf-social-icon-btn--tiktok:hover      { color: #69C9D0; }
.wf-social-icon-btn--youtube:hover     { color: #FF0000; }

/* Section C — unified location card (address on top, map below, one border).
   `overflow: hidden` on the card clips the iframe's right-angle corners to
   the card's border-radius so the map edges follow the rounded shape. */
.wf-contact-location-card {
    border:        1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow:      hidden;
    background:    var(--color-surface);
}

.wf-contact-location-card__address {
    padding:       var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
    display:       flex;
    align-items:   center;
    gap:           var(--space-3);
}

.wf-contact-location-card__address::before {
    content:     "\1F4CD"; /* 📍 */
    font-size:   var(--text-lg);
    flex-shrink: 0;
}

.wf-contact-location-card__address-text {
    font-size: var(--text-base);
    color:    var(--color-text);
}

.wf-contact-location-card__map iframe {
    display: block;
    width:   100%;
    height:  220px;
    border:  0;
}

/* Locked state teaser — blurred placeholder shapes + message */
.wf-contact-locked {
    text-align: center;
    padding:    var(--space-10) var(--space-6);
}

.wf-contact-locked__placeholders {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   var(--space-4);
    margin-bottom:         var(--space-6);
    filter:                blur(3px);
    opacity:               0.6;
}

.wf-contact-locked__card {
    height:        96px;
    background:    var(--color-surface);
    border:        1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.wf-contact-locked__message {
    max-width: 480px;
    margin:    0 auto;
    color:     var(--color-text-muted);
}

.wf-contact-locked__icon {
    font-size:     var(--text-4xl);
    margin-bottom: var(--space-3);
}

.wf-contact-locked__message h3 {
    margin:      0 0 var(--space-2);
    color:       var(--color-text);
    font-size:   var(--text-xl);
}

.wf-contact-locked__message p {
    margin: 0 0 var(--space-4);
}

/* Owner note — shown on own free profile */
.wf-contact-owner-note {
    margin-top:    var(--space-6);
    padding:       var(--space-4);
    background:    var(--color-teal-dim);
    border:        1px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-size:     var(--text-sm);
    color:         var(--color-text-muted);
}

.wf-contact-owner-note a {
    color: var(--color-primary);
}

/* Sidebar contact card — three states, always rendered */
.wf-sidebar-contact__row {
    display:     flex;
    align-items: center;
    gap:         var(--space-2);
    padding:     var(--space-2) 0;
    font-size:   var(--text-sm);
}

.wf-sidebar-contact__icon {
    flex-shrink: 0;
    color:       var(--color-primary);
}

.wf-sidebar-contact__masked {
    color:          var(--color-text-subtle);
    letter-spacing: 0.05em;
    font-family:    var(--font-mono, monospace);
}

.wf-sidebar-contact__cta {
    width:       100%;
    margin-top:  var(--space-3);
    text-align:  center;
}

/* Mobile */
@media (max-width: 767px) {
    .wf-contact-direct,
    .wf-contact-locked__placeholders {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Similar Wrestlers — full-width band at the bottom of the profile
============================================================================= */

.wf-similar-wrestlers {
    margin-top:  var(--space-12);
    padding:     var(--space-8) 0;
    border-top:  1px solid var(--color-border);
}

.wf-similar-wrestlers__card {
    background:    var(--color-surface);
    border:        1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding:       var(--space-8);
}

.wf-similar-wrestlers__heading {
    font-family:   var(--font-heading);
    font-size:     var(--text-xl);
    font-weight:   600;
    color:         var(--color-text);
    margin:        0 0 var(--space-6);
}

.wf-similar-wrestlers__grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:                   var(--space-4);
}

/* ---------------------------------------------------------------------------
   Minimal card for Similar Wrestlers.
   Rendered inline by the partial (not via search/athlete-card.php) —
   deliberately shows only the recruiting identifiers: photo, name,
   state, grad year. Record / GPA / badges / gender are intentionally
   omitted to keep the band scannable as a "more like this" browse.
--------------------------------------------------------------------------- */

.wf-similar-card {
    display:         flex;
    align-items:     center;
    gap:             var(--space-3);
    padding:         var(--space-3) var(--space-4);
    background:      var(--color-surface-2);
    border:          1px solid var(--color-border);
    border-radius:   var(--radius-md);
    text-decoration: none;
    color:           inherit;
    transition:      border-color var(--transition-fast),
                     background var(--transition-fast);
}

.wf-similar-card:hover,
.wf-similar-card:focus-visible {
    border-color: var(--color-border-strong, var(--color-primary));
    background:   var(--color-surface-3);
    outline:      none;
}

.wf-similar-card__photo-wrap {
    position:    relative;
    flex-shrink: 0;
}

.wf-similar-card__photo {
    display:       block;
    width:         56px;
    height:        56px;
    border-radius: 50%;
    object-fit:    cover;
    background:    var(--color-surface);
}

.wf-similar-card__pro-badge {
    position:       absolute;
    bottom:        -4px;
    right:         -4px;
    background:     var(--color-primary);
    color:          var(--color-bg);
    font-size:      9px;
    font-weight:    700;
    letter-spacing: 0.04em;
    padding:        2px 5px;
    border-radius:  var(--radius-full);
    line-height:    1;
}

.wf-similar-card__info {
    min-width: 0;
    flex:      1 1 auto;
}

.wf-similar-card__name {
    font-family:    var(--font-heading);
    font-size:      var(--text-base);
    font-weight:    700;
    color:          var(--color-text);
    line-height:    1.2;
    margin:         0 0 2px;
    /* Two-line clamp keeps long names tidy without being hard-truncated. */
    display:         -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:        hidden;
}

.wf-similar-card__meta {
    font-size:   var(--text-sm);
    color:       var(--color-text-muted);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .wf-similar-wrestlers {
        margin-top: var(--space-8);
        padding:    var(--space-6) 0;
    }
    .wf-similar-wrestlers__card {
        padding: var(--space-6);
    }
    .wf-similar-wrestlers__grid {
        grid-template-columns: 1fr;
        gap:                   var(--space-4);
    }
}
