/* ==========================================================================
   Asian Grand Prix Page — Custom Styles
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --agp-navy: #1a2040;
    --agp-navy-dark: #0f1428;
    --agp-blue: #2a4a8a;
    --agp-blue-light: #3a6ad4;
    --agp-gold: #c8a84e;
    --agp-maroon: #7a3040;
    --agp-maroon-hover: #5e2330;
    --agp-white: #ffffff;
    --agp-offwhite: #f5f5f5;
    --agp-lightgray: #e8e8e8;
    --agp-text: #333333;
    --agp-text-light: #666666;
    --agp-border-gradient: linear-gradient(135deg, #2a4a8a 0%, #1a2040 50%, #3a6ad4 100%);
    --agp-section-bg: #fafafa;
}

/* ---------- Hero Section ---------- */
.agp-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/static/assets/img/tashkent-hero.jpg') center/cover no-repeat;
    color: var(--agp-white);
    padding: 80px 20px;
    overflow: hidden;
}

.agp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.02) 20px,
        rgba(255,255,255,0.02) 40px
    );
    pointer-events: none;
}

.agp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.agp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.agp-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.agp-hero .agp-hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.agp-hero .agp-hero-prize {
    font-size: 28px;
    font-weight: 600;
    margin-top: 10px;
}

.agp-hero .agp-hero-prize span {
    font-size: 42px;
    font-weight: 700;
    color: var(--agp-gold);
    display: block;
    margin-top: 5px;
}

/* ---------- Sticky Anchor Nav ---------- */
.agp-nav {
    background: var(--agp-navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.agp-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.agp-nav ul li {
    margin: 0;
}

.agp-nav ul li a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.agp-nav ul li a:hover,
.agp-nav ul li a.active {
    color: var(--agp-white);
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--agp-gold);
}

/* ---------- General Section ---------- */
.agp-section {
    padding: 60px 0;
}

.agp-section:nth-child(even) {
    background: var(--agp-section-bg);
}

.agp-section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--agp-navy);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agp-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--agp-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ---------- Venue Section ---------- */
.agp-venue {
    text-align: center;
}

.agp-venue-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--agp-navy);
    margin-bottom: 10px;
}

.agp-venue-address {
    font-size: 16px;
    color: var(--agp-text-light);
    margin-bottom: 15px;
}

.agp-venue-address a {
    color: var(--agp-blue-light);
    text-decoration: none;
}

.agp-venue-address a:hover {
    text-decoration: underline;
}

.agp-venue-desc {
    font-size: 16px;
    color: var(--agp-text);
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.agp-brochure-link {
    display: inline-block;
    background: var(--agp-blue);
    color: var(--agp-white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.agp-brochure-link:hover {
    background: var(--agp-navy);
    color: var(--agp-white);
    text-decoration: none;
}

/* ---------- CTA Buttons ---------- */
.agp-cta-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.agp-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agp-cta-btn.primary {
    background: var(--agp-maroon);
    color: var(--agp-white);
}

.agp-cta-btn.primary:hover {
    background: var(--agp-maroon-hover);
    color: var(--agp-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122,48,64,0.4);
}

.agp-cta-btn.secondary {
    background: transparent;
    color: var(--agp-navy);
    border: 2px solid var(--agp-navy);
}

.agp-cta-btn.secondary:hover {
    background: var(--agp-navy);
    color: var(--agp-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---------- Prize Table ---------- */
.agp-prize-table-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 1000px;
}

.agp-prize-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.agp-prize-table thead th {
    background: var(--agp-navy);
    color: var(--agp-white);
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.agp-prize-table tbody td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--agp-lightgray);
    color: var(--agp-text);
}

.agp-prize-table tbody tr:hover {
    background: rgba(42,74,138,0.05);
}

.agp-prize-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--agp-navy);
}

.agp-prize-table tbody tr:last-child td {
    border-bottom: none;
}

.agp-prize-note {
    text-align: center;
    font-size: 14px;
    color: var(--agp-text-light);
    margin-top: 20px;
    font-style: italic;
}

/* ---------- Info / Details Lists ---------- */
.agp-info-block {
    max-width: 900px;
    margin: 0 auto;
}

.agp-info-block h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--agp-navy);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--agp-lightgray);
}

.agp-info-block ul {
    list-style: none;
    padding: 0;
}

.agp-info-block ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--agp-text);
    line-height: 1.6;
}

.agp-info-block ul li::before {
    content: '•';
    color: var(--agp-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.agp-info-block ul li ul {
    margin-top: 5px;
}

.agp-info-block ul li ul li {
    padding-left: 20px;
    font-size: 14px;
}

.agp-info-block ul li ul li::before {
    content: '–';
    color: var(--agp-text-light);
}

.agp-contact-link {
    color: var(--agp-blue-light);
    text-decoration: none;
}

.agp-contact-link:hover {
    text-decoration: underline;
}

/* ---------- Schedule Tabs ---------- */
.agp-schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.agp-schedule-tab {
    padding: 12px 25px;
    background: var(--agp-lightgray);
    color: var(--agp-text);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.agp-schedule-tab:hover {
    background: var(--agp-blue);
    color: var(--agp-white);
}

.agp-schedule-tab.active {
    background: var(--agp-navy);
    color: var(--agp-white);
}

.agp-schedule-content {
    display: none;
}

.agp-schedule-content.active {
    display: block;
}

.agp-schedule-days {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.agp-day-card {
    background: var(--agp-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.agp-day-card-header {
    background: var(--agp-navy);
    color: var(--agp-white);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.agp-day-card table {
    width: 100%;
    border-collapse: collapse;
}

.agp-day-card table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--agp-lightgray);
    font-size: 14px;
    vertical-align: top;
}

.agp-day-card table td:first-child {
    width: 80px;
    font-weight: 600;
    color: var(--agp-blue);
    white-space: nowrap;
}

.agp-day-card table tr:last-child td {
    border-bottom: none;
}

/* ---------- Documents Section ---------- */
.agp-documents {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.agp-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--agp-white);
    border: 2px solid var(--agp-lightgray);
    padding: 18px 30px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--agp-navy);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 10px;
}

.agp-doc-link i {
    font-size: 24px;
    color: #c0392b;
}

.agp-doc-link:hover {
    border-color: var(--agp-blue);
    background: rgba(42,74,138,0.05);
    color: var(--agp-blue);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- Accommodation Section ---------- */
.agp-hotels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.agp-hotel-card {
    background: var(--agp-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agp-hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.agp-hotel-card-body {
    padding: 20px;
}

.agp-hotel-card-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--agp-navy);
    margin-bottom: 12px;
}

.agp-hotel-card-body p {
    font-size: 14px;
    color: var(--agp-text-light);
    margin-bottom: 6px;
    line-height: 1.5;
}

.agp-hotel-card-body p i {
    width: 18px;
    color: var(--agp-blue);
    margin-right: 6px;
}

.agp-hotel-card-body .agp-hotel-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--agp-blue-light);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.agp-hotel-card-body .agp-hotel-link:hover {
    text-decoration: underline;
}

.agp-promo-badge {
    display: inline-block;
    background: var(--agp-gold);
    color: var(--agp-navy-dark);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ---------- About Tashkent ---------- */
.agp-about-tashkent {
    max-width: 900px;
    margin: 0 auto;
}

.agp-fact-list {
    list-style: none;
    padding: 0;
}

.agp-fact-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--agp-text);
    line-height: 1.7;
    font-size: 15px;
    border-bottom: 1px solid var(--agp-lightgray);
}

.agp-fact-list li:last-child {
    border-bottom: none;
}

.agp-fact-list li::before {
    content: '🏛';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 16px;
}

.agp-fact-list li:nth-child(2)::before { content: '🕌'; }
.agp-fact-list li:nth-child(3)::before { content: '🚇'; }
.agp-fact-list li:nth-child(4)::before { content: '📡'; }
.agp-fact-list li:nth-child(5)::before { content: '🌳'; }
.agp-fact-list li:nth-child(6)::before { content: '🛤'; }
.agp-fact-list li:nth-child(7)::before { content: '🍲'; }
.agp-fact-list li:nth-child(8)::before { content: '✈️'; }

.agp-fact-list li strong {
    color: var(--agp-navy);
}

/* ---------- Border Frame Effect ---------- */
.agp-page-wrapper {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-image: var(--agp-border-gradient) 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .agp-hero h1 {
        font-size: 36px;
    }

    .agp-hotels {
        grid-template-columns: 1fr;
    }

    .agp-schedule-days {
        grid-template-columns: 1fr;
    }

    .agp-nav ul li a {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .agp-hero {
        min-height: 400px;
        padding: 60px 15px;
    }

    .agp-hero h1 {
        font-size: 28px;
    }

    .agp-hero .agp-hero-prize span {
        font-size: 32px;
    }

    .agp-section {
        padding: 40px 0;
    }

    .agp-section-title {
        font-size: 24px;
    }

    .agp-cta-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .agp-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .agp-schedule-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
}
