/* ================================================================
   index.css — page-specific styles for index.php
   Requires: theme.css
   ================================================================ */

/* ── Two-column page layout ── */
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.page-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 28px 0 60px;
    align-items: start;
}

/* ── Hero — banner bg image, text left, athletes in image ── */

.hero {
       
  position: relative;
  min-height: clamp(385px, 48vw, 385px);
  overflow: hidden;

  background-image: url("/images/hero.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;

}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
/* Text lives in left ~45% — athletes occupy the right portion of the bg image */
.hero-copy {
    max-width: 520px;
    padding-bottom: 32px;
}

/* Hero tabs */
.hero-tabs { display: flex; gap: 8px; }
.hero-tab {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.82rem; letter-spacing: 1.2px; text-transform: uppercase;
    padding: 10px 18px 12px;
    border-radius: 4px 4px 0 0;
    border: none; border-bottom: 3px solid transparent;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
    text-decoration: none;
}
.hero-tab.tab-active { background: var(--gold-lt); color: var(--gold); border-bottom-color: var(--gold); }
.hero-tab:not(.tab-active) { background: transparent; color: var(--ink-soft); }
.hero-tab:not(.tab-active):hover { color: var(--ink-mid); background: rgba(255,255,255,0.04); }
.tab-pill { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.tab-active .tab-pill { background: var(--gold); color: #0a0900; }
.hero-tab:not(.tab-active) .tab-pill { background: var(--rule-mid); color: var(--ink-soft); }

/* hero-photo removed — athletes are baked into hero_banner.png */

/* ── Sidebar ── */
.sidebar {
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 78px;
}
.sidebar-panel {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sidebar-panel-head {
    padding: 14px 16px 10px; border-bottom: 1px solid var(--rule);
    display: flex; align-items: center; justify-content: space-between;
}
.sidebar-panel-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--ink);
}
.sidebar-panel-pill {
    font-size: 0.65rem; font-weight: 700;
    background: var(--gold); color: #0a0900;
    padding: 2px 8px; border-radius: 20px; letter-spacing: 0.5px;
}

/* ── Calendar ── */
.cal-wrap { padding: 14px 16px 16px; }
.cal-nav {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.cal-month-label {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1rem; letter-spacing: 1px; color: var(--ink); text-transform: uppercase;
}
.cal-nav-btn {
    background: none; border: 1px solid var(--rule-mid); border-radius: var(--radius);
    color: var(--ink-soft); cursor: pointer;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.12s, color 0.12s; padding: 0;
}
.cal-nav-btn:hover { border-color: var(--gold-rule); color: var(--gold); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-dow {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-soft); text-align: center; padding: 2px 0 6px;
}
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; border-radius: var(--radius); cursor: default;
    color: var(--ink-mid); transition: background 0.1s;
}
.cal-day.other-month { color: var(--rule-mid); }
.cal-day.has-show {
    background: var(--gold-lt); color: var(--gold-bright); font-weight: 700;
    cursor: pointer; border: 1px solid var(--gold-rule);
}
.cal-day.has-show:hover { background: rgba(201,168,76,0.22); }
.cal-day.has-seminar {
    background: rgba(139,92,246,0.15);
    color: #c4b5fd;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(139,92,246,0.35);
}
.cal-day.has-seminar:hover { background: rgba(139,92,246,0.25); }
.cal-day.has-both {
    background: linear-gradient(135deg, var(--gold-lt) 50%, rgba(139,92,246,0.15) 50%);
    color: var(--ink);
    border: 1px solid var(--gold-rule);
}

/* Dot indicators */
.cal-dots {
    display: flex;
    gap: 2px;
    justify-content: center;
    position: absolute;
    bottom: 2px;
    left: 0; right: 0;
}
.cal-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    display: block;
}
.cal-dot-show    { background: var(--gold); }
.cal-dot-seminar { background: #a78bfa; }

/* cal-day needs position:relative for dots to anchor */
.cal-day { position: relative; }
.cal-day.today { background: var(--gold); color: #0a0900; font-weight: 700; }
.cal-day.today.has-show { background: var(--gold-bright); border: none; }

/* ── Sidebar results list ── */
.results-list { padding: 0; }
.result-item {
    display: grid; grid-template-columns: 52px 1fr auto;
    align-items: center; gap: 10px; padding: 11px 14px;
    border-bottom: 1px solid var(--rule);
    text-decoration: none; color: inherit;
    transition: background 0.12s;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: rgba(255,255,255,0.03); }
.result-date-col { text-align: center; }
.result-date-month { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); display: block; }
.result-date-day { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--ink-mid); }
.result-date-year { font-size: 0.56rem; color: var(--ink-soft); display: block; opacity: 0.7; }
.result-info { min-width: 0; }
.result-name {
    font-size: 0.82rem; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.25; margin-bottom: 4px;
}
.result-badge-row { display: flex; gap: 5px; align-items: center; }
.result-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.65rem; font-weight: 600; padding: 3px 9px;
    border-radius: 3px; background: var(--rule); color: var(--ink-mid);
    text-decoration: none; white-space: nowrap; transition: background 0.1s;
}
.result-btn:hover { background: var(--rule-mid); color: var(--ink); }
.result-chevron { color: var(--rule-mid); flex-shrink: 0; }
.result-item:hover .result-chevron { color: var(--gold); }

.sidebar-view-all {
    display: block; text-align: center; padding: 11px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gold); text-decoration: none;
    border-top: 1px solid var(--rule); transition: background 0.12s;
}
.sidebar-view-all:hover { background: var(--gold-lt); }

/* ── Subscribe panel ── */
.subscribe-panel {
    border: 1px solid var(--gold-rule); border-radius: var(--radius-lg);
    padding: 24px 20px; position: relative; overflow: hidden;
    background:
        linear-gradient(135deg, rgba(22,16,8,0.92) 0%, rgba(18,12,4,0.88) 55%, rgba(10,8,2,0.75) 100%),
        url('../images/stage.webp') center center / cover no-repeat;
}
.subscribe-panel::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    pointer-events: none;
}
/* Photo placeholder no longer needed — stage.webp is the background */
.subscribe-photo-placeholder { display: none; }
.subscribe-photo-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.subscribe-photo { width: 70px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.subscribe-photo img {
    display: block; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.subscribe-icon {
    width: 36px; height: 36px; background: var(--gold-lt);
    border: 1px solid var(--gold-rule); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); flex-shrink: 0; margin-bottom: 4px;
}
.subscribe-title {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.35rem; text-transform: uppercase; line-height: 1;
    color: #fff; margin-bottom: 6px;
}
.subscribe-sub { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.45; }
.subscribe-form { display: flex; flex-direction: column; gap: 8px; }
.subscribe-input {
    background: rgba(0,0,0,0.3); border: 1px solid var(--rule-mid);
    border-radius: var(--radius); color: var(--ink);
    font-family: var(--font-body); font-size: 0.82rem;
    padding: 9px 12px; width: 100%; outline: none; transition: border-color 0.12s;
}
.subscribe-input::placeholder { color: var(--ink-soft); }
.subscribe-input:focus { border-color: var(--gold-rule); }
.subscribe-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.subscribe-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--rule-mid);
    color: var(--ink-soft);
    letter-spacing: 1.5px;
}
.subscribe-btn {
    background: var(--gold-btn); color: #0a0900; border: none;
    border-radius: var(--radius); font-family: var(--font-display); font-weight: 800;
    font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
    padding: 11px; cursor: pointer; width: 100%; transition: background 0.12s;
}
.subscribe-btn:hover { background: var(--gold-bright); }

/* ── Follow Us ── */
.follow-panel { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.follow-label { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.follow-icons { display: flex; gap: 8px; }
.follow-icon {
    width: 34px; height: 34px; border: 1px solid var(--rule-mid); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft); text-decoration: none;
    transition: border-color 0.12s, color 0.12s;
}
.follow-icon:hover { border-color: var(--gold-rule); color: var(--gold); }

/* ── Seminar-specific styles ── */
.pill-seminar { background: rgba(139,92,246,0.25); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.4); }
.fed-seminar  { background: rgba(139,92,246,0.16); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.35); }
.card-date-col-seminar {
    background: linear-gradient(160deg, #1e1628 0%, #140e1e 100%);
    border-right-color: rgba(139,92,246,0.3);
    color: #c4b5fd;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .page-body { grid-template-columns: 1fr; }
    .hero { background-position: right center; }
    .hero-copy { max-width: 60%; }
}
@media (max-width: 600px) {
    .hero { background-position: 80% center; min-height: 220px; padding-top: 28px; }
    .hero-copy { max-width: 85%; }
    .page-wrap { padding: 0 14px; }
}