/**
 * 2026 National Series Page Styles
 * Modern, clean design for the GridLife Rush National Series
 */

/* ==========================================================================
   Series Hero
   ========================================================================== */

/* Remove page container padding when series-hero is present */
.page:has(.series-hero) > .container {
   padding-top: 0;
}

.series-hero {
    background: linear-gradient(135deg, var(--raw-navy) 0%, #0a1628 100%);
    padding: var(--space-lg) 0 var(--space-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.series-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/wp-content/themes/RushAutoWorks2/img/2025-laguna.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.series-hero .container {
    position: relative;
    z-index: 1;
}

.series-hero__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.series-hero__logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.series-hero__logo--combined {
    height: 60px;
    filter: none;
}

.series-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.series-hero__subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.series-hero__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.series-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.series-hero__stat:nth-child(1), .series-hero__stat:nth-child(3) {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 8rem;
}

.series-hero__stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--raw-cyan);
    line-height: 1;
}

.series-hero__stat-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Champion Spotlight
   ========================================================================== */
.champion-spotlight {
    background: var(--bg-secondary);
    padding: var(--space-sm) 0;
}

.champion-spotlight__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.champion-spotlight__image {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--raw-orange);
    flex-shrink: 0;
}

.champion-spotlight__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.champion-spotlight__name-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.champion-spotlight__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.champion-spotlight__badge {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--raw-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.champion-spotlight__stats {
    display: flex;
    gap: 0.875rem;
}

.champion-stat {
    text-align: center;
}

.champion-stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--raw-cyan);
    line-height: 1;
}

.champion-stat__label {
    font-size: 0.5625rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.champion-spotlight__text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.champion-spotlight .btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .champion-spotlight__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .champion-spotlight__name-block {
        align-items: center;
    }
}

/* ==========================================================================
   Series Podium
   ========================================================================== */
.series-podium {
    background: var(--bg-primary);
    padding: var(--space-sm) 0;
}

.series-podium__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-align: center;
}

.series-podium__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.podium-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.podium-card:hover {
    transform: translateY(-1px);
}

.podium-card--1 {
    background: linear-gradient(135deg, var(--raw-navy) 0%, #0d2847 100%);
    border: 2px solid var(--raw-orange);
    order: 1;
}

.podium-card--2 { order: 2; }
.podium-card--3 { order: 3; }

@media (max-width: 480px) {
    .series-podium__grid {
        flex-direction: column;
    }
    .podium-card--1 { order: 1; }
    .podium-card--2 { order: 2; }
    .podium-card--3 { order: 3; }
}

.podium-card__crown {
    font-size: 1rem;
}

.podium-card__position {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--raw-orange);
    text-transform: uppercase;
}

.podium-card__name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
}

.podium-card__points {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--raw-cyan);
}

.podium-card__detail {
    display: none;
}

.series-podium__note {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

.series-podium__note a {
    color: var(--raw-cyan);
    text-decoration: none;
}

.series-podium__note a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Series Schedule
   ========================================================================== */
.series-schedule {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--space-lg) 0 var(--space-md);
}

.series-schedule__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.series-schedule__intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.schedule-card:hover {
    border-color: var(--raw-cyan);
    transform: translateY(-2px);
}

.schedule-card--finale {
    border-color: var(--raw-orange);
    background: linear-gradient(135deg, var(--raw-navy) 0%, #1a0a00 100%);
}

.schedule-card__badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--raw-orange);
    color: white;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.schedule-card__round {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--raw-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.schedule-card__date {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.schedule-card__track {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--raw-cyan);
    margin-bottom: 0.25rem;
}

.schedule-card__location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.schedule-card__link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--raw-cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.schedule-card__link:hover {
    color: var(--raw-orange);
}

/* ==========================================================================
   Series Register
   ========================================================================== */
.series-register {
    background: var(--bg-primary);
    padding: var(--space-lg) 0 var(--space-md);
}

.series-register__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.series-register__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.register-step {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.register-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--raw-orange);
    color: white;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.register-step__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.register-step__text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.register-step__text a {
    color: var(--raw-cyan);
    text-decoration: none;
}

.register-step__text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Series Tech
   ========================================================================== */
.series-tech {
    background: var(--bg-secondary);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.series-tech__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.series-tech__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.series-tech__info {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 700px;
}

.series-tech__info strong {
    color: var(--raw-orange);
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--raw-cyan);
    color: var(--raw-cyan);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: var(--raw-cyan);
    color: var(--raw-navy);
}

/* ==========================================================================
   Series CTA
   ========================================================================== */
.series-cta {
    background: linear-gradient(135deg, var(--raw-navy) 0%, #0a1628 100%);
    padding: var(--space-lg) 0;
    text-align: center;
}

.series-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.series-cta__text {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.series-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ==========================================================================
   Tech Forms Page
   ========================================================================== */

.page:has(.tech-forms-hero) .titlebar { display: none; }

.page:has(.tech-forms-hero) > .container {
    padding: 0;
    max-width: none;
}

.tech-forms-hero {
    background: linear-gradient(135deg, var(--raw-navy) 0%, #0a1628 100%);
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
}

.tech-forms-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 1rem;
}

.tech-forms-hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 540px;
    margin: 0 auto;
}

.tech-forms-grid {
    padding: var(--space-xl) 0;
    background: #061527;
}

.tech-forms-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-form-card {
    background: #0a2a52;
    border: 1px solid rgba(71, 199, 252, 0.15);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.2s;
}

.tech-form-card:hover { border-color: rgba(71, 199, 252, 0.4); }

.tech-form-card__icon { width: 48px; height: 48px; color: var(--raw-cyan, #47C7FC); }
.tech-form-card__icon svg { width: 100%; height: 100%; }

.tech-form-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.tech-form-card__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

.tech-form-card__details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tech-form-card__details li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    padding-left: 1.25rem;
    position: relative;
}

.tech-form-card__details li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--raw-orange, #FF8000);
}

.tech-form-card__btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 768px) {
    .tech-forms-cards { grid-template-columns: 1fr; }
}

/* Tech form cards as links */
a.tech-form-card--link { text-decoration: none; color: inherit; cursor: pointer; }
a.tech-form-card--link:hover { border-color: rgba(71, 199, 252, 0.4); text-decoration: none; }

/* ==========================================================================
   Tech Forms — Regulations & Resources Section
   ========================================================================== */

.tech-regs-section {
    background: #04111f;
    padding: var(--space-xl) 0 var(--space-2xl);
    border-top: 1px solid rgba(71, 199, 252, 0.1);
}

.tech-regs-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tech-regs-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.tech-regs-intro {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.tech-regs-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(71, 199, 252, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.tech-regs-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(71, 199, 252, 0.1);
    position: relative;
    transition: background 0.2s;
}

.tech-regs-row:last-child { border-bottom: none; }

.tech-regs-row:hover { background: rgba(71, 199, 252, 0.05); }

.tech-regs-row__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--raw-cyan, #47C7FC);
    opacity: 0.4;
    transition: opacity 0.2s;
}

.tech-regs-row:hover .tech-regs-row__accent { opacity: 1; }

.tech-regs-row__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--raw-cyan, #47C7FC);
    opacity: 0.7;
}

.tech-regs-row__icon svg { width: 100%; height: 100%; }

.tech-regs-row__body {
    flex: 1;
    min-width: 0;
}

.tech-regs-row__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.tech-regs-row__desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.tech-regs-row__sub-links {
    margin-top: 0.4rem;
}

a.tech-regs-row__sub-link {
    font-size: 0.8rem;
    color: rgba(71, 199, 252, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

a.tech-regs-row__sub-link:hover { color: var(--raw-cyan, #47C7FC); }

a.tech-regs-row__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 128, 0, 0.1);
    border: 1px solid rgba(255, 128, 0, 0.3);
    border-radius: 4px;
    color: var(--raw-orange, #FF8000);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

a.tech-regs-row__cta:hover {
    background: rgba(255, 128, 0, 0.2);
    border-color: rgba(255, 128, 0, 0.6);
    text-decoration: none;
}

@media (max-width: 600px) {
    .tech-regs-row { flex-wrap: wrap; }
    a.tech-regs-row__cta { align-self: flex-start; }
}

.tech-forms-back {
    display: inline-block; color: rgba(255,255,255,0.5); font-size: 0.875rem;
    text-decoration: none; margin-bottom: 1rem; transition: color 0.2s;
}
.tech-forms-back:hover { color: var(--raw-cyan, #47C7FC); }

.tech-forms-hero--sub { padding: var(--space-lg) 0; }

.page:has(.tech-form-page) .titlebar { display: none; }
.page:has(.tech-form-page) > .container { padding: 0; max-width: none; }
.tech-form-page { padding: var(--space-xl) 0 var(--space-2xl); background: #061527; }

/* ==========================================================================
   Rush Form Styles (raw-form)
   ========================================================================== */

.raw-form { max-width: 720px; margin: 0 auto; }

.raw-form__section {
    margin-bottom: 2.5rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(71, 199, 252, 0.1);
}
.raw-form__section:last-of-type { border-bottom: none; }

.raw-form__section-title {
    font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--raw-cyan, #47C7FC); margin: 0 0 1.5rem;
}

.raw-form__row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.raw-form__row--2 { grid-template-columns: 1fr 1fr; }
.raw-form__field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.raw-form__field:last-child { margin-bottom: 0; }

.raw-form__label { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.8); letter-spacing: 0.02em; }
.raw-form__required { color: var(--raw-orange, #FF8000); }

.raw-form__input {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(71, 199, 252, 0.2);
    border-radius: 4px; color: #fff; font-family: inherit; font-size: 0.9375rem;
    padding: 0.625rem 0.875rem; transition: border-color 0.2s, background 0.2s;
    width: 100%; box-sizing: border-box;
}
.raw-form__input:focus { outline: none; border-color: var(--raw-cyan, #47C7FC); background: rgba(255,255,255,0.09); }
.raw-form__input::placeholder { color: rgba(255,255,255,0.3); }
.raw-form__textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.raw-form__file { padding: 0.5rem 0.875rem; cursor: pointer; }
.raw-form__file::-webkit-file-upload-button {
    background: rgba(71,199,252,0.15); border: 1px solid rgba(71,199,252,0.3); border-radius: 3px;
    color: var(--raw-cyan, #47C7FC); cursor: pointer; font-size: 0.8125rem; margin-right: 0.75rem; padding: 0.25rem 0.75rem;
}
.raw-form__hint { color: rgba(255,255,255,0.4); font-size: 0.8125rem; margin: 0; }

.raw-form__radio-group, .raw-form__checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.25rem; }
.raw-form__radio, .raw-form__checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: rgba(255,255,255,0.8); cursor: pointer; }
.raw-form__radio input, .raw-form__checkbox input { accent-color: var(--raw-orange, #FF8000); }
.raw-form__checkbox-group--tire { display: grid; grid-template-columns: 1fr 1fr; max-width: 280px; gap: 0.625rem; }

.raw-form__actions { margin-top: 2rem; }
.raw-form__status { margin-top: 1.5rem; font-size: 0.9375rem; min-height: 1.5rem; }
.raw-form__status--success { color: #4ade80; }
.raw-form__status--error { color: #f87171; }
.raw-form__status--loading { color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
    .raw-form__row--2 { grid-template-columns: 1fr; }
}
