/* Homepage Styles - BKFC Inspired */

/* Main Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - 90px);
    display: flex;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive hero images - desktop by default */
.hero-responsive {
    background-image: url(var(--desktop-bg));
}

/* Mobile hero image */
@media (max-width: 768px) {
    .hero-responsive {
        background-image: url(var(--mobile-bg));
    }
}

/* Index page hero with responsive images */
@media (max-width: 768px) {
    .index-hero-mobile {
        background-image: var(--mobile-hero) !important;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.event-label {
    display: inline-block;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 35px 0;
}

/* Hero Countdown */
.hero-countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.count-box {
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(196,30,58,0.6);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
}

.count-num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #c41e3a;
    line-height: 1;
}

.count-label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    border: 2px solid transparent;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196,30,58,0.4);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero-outline:hover {
    background: #fff;
    color: #000;
}

/* Home Sections */
.home-section {
    padding: 50px 0;
    background: #000;
}

/* (events-section inherits .home-section padding) */

/* Fine-tune spacing between news and fighters */
.news-section + .fighters-section {
    padding-top: 16px;
    margin-top: -8px;
}

.home-section:nth-child(even) {
    background: #0a0a0a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.fighters-section .section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #ff4060;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card { position:relative; background-size:cover; background-position:center; overflow:hidden; }
        padding: 22px;
    }
}

.event-card {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: #c41e3a;
    transform: translateY(-4px);
}

.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.75);
    z-index: 1;
}

.event-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.event-card .event-label {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.event-card h3 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 10px 0;
}

.event-card .event-meta {
    color: #c41e3a;
    font-weight: 700;
    margin: 5px 0;
}

.event-card .event-location {
    color: #aaa;
    font-size: 14px;
}

.event-card .event-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #c41e3a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.event-card .event-cta:hover {
    background: #8b0000;
}

/* Fighters Grid */
.fighters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* Fighters carousel */
.fighters-carousel {
    position: relative;
    margin-top: 10px;
}

.fighters-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 6px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fighters-track::-webkit-scrollbar { display: none; }

.fighters-track .fighter-card-home {
    min-width: 240px;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #333;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: #c41e3a;
    border-color: #c41e3a;
}

.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

@media (max-width: 900px) {
    .fighters-track .fighter-card-home { min-width: 220px; }
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .carousel-btn.prev { left: -6px; }
    .carousel-btn.next { right: -6px; }
}

@media (max-width: 600px) {
    .fighters-track {
        padding: 6px 2px 12px;
        gap: 12px;
    }

    .fighters-track .fighter-card-home { min-width: 200px; }
}

@media (max-width: 900px) {
    .fighters-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .fighters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .fighter-info {
        padding: 12px;
    }
}

.fighter-card-home {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.fighter-card-home:hover {
    border-color: #c41e3a;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(196,30,58,0.2);
}

.fighter-img {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    position: relative;
}

.fighter-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.champ-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.fighter-info {
    padding: 15px;
}

.fighter-info h3 {
    font-size: 16px;
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.fighter-stats {
    color: #aaa;
    font-size: 13px;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border-top: 3px solid #c41e3a;
    border-bottom: 3px solid #c41e3a;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px 0;
}

.cta-content p {
    font-size: 18px;
    color: #aaa;
    margin: 0 0 30px 0;
}

.btn-cta {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196,30,58,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 70px);
        padding: 20px 0 50px;
        align-items: flex-end;
    }

    .hero-content {
        text-align: left;
        padding: 24px 18px;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-countdown {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .count-box {
        min-width: 65px;
        padding: 12px 14px;
    }

    .count-num {
        font-size: 24px;
    }

    .count-label {
        font-size: 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .home-section {
        padding: 50px 0;
    }

    .events-grid,
    .fighters-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: calc(100vh - 70px);
        align-items: flex-end;
        padding: 16px 0 40px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-countdown {
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .count-box {
        min-width: 0;
        padding: 10px 12px;
        width: 100%;
    }

    .count-num {
        font-size: 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }
}
/* Latest News Section */
.news-section {
    background: #0a0a0a;
    padding: 40px 0 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(224, 27, 27, 0.3);
    border-color: #e01b1b;
}

.news-card-image-link {
    display: block;
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0a0a0a;
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    color: #e01b1b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: #e01b1b;
}

.news-card-excerpt {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.news-card-link {
    color: #e01b1b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.news-card-link:hover {
    gap: 10px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .news-section {
        padding: 32px 0 24px;
    }
}

/* Seam: tighten spacing between Upcoming Events and Latest News */
.events-section { padding-bottom: 8px; }
.events-section > .container { padding-bottom: 8px; }
.news-section { padding-top: 8px; padding-bottom: 8px; }
.news-section > .container { padding-top: 8px; padding-bottom: 8px; }
.news-section .section-header { margin-bottom: 16px; }
.news-grid { margin-top: 16px; }

/* Seam: tighten spacing between Latest News and Trending Fighters */
.fighters-section { padding-top: 8px; }
.fighters-section > .container { padding-top: 8px; }
.fighters-section .section-header { margin-bottom: 16px; }