/* --------------------------------------------------
   GLOBAL RESET & BASE
-------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    background: #0b1120;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    padding-top: 50px;
    height:100%;
}
main {
    flex: 1;
}

body{
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-family: "Montserrat", system-ui, sans-serif;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 400;
}

footer{
    margin-top: auto;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: optional;
}

@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: optional;
}

/* -------------------------------
 MOBILE TYPOGRAPHY 
 ----------------------------------*/

@media (max-width: 600px) {

    /* Global text adjustments */
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    p, li {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Headings */
    h1 {
        font-size: 28px;
        line-height: 1.2;
        font-weight: 700;
    }

    h2 {
        font-size: 22px;
        line-height: 1.25;
        font-weight: 700;
    }

    h3 {
        font-size: 18px;
        line-height: 1.3;
        font-weight: 600;
    }

    h4 {
        font-size: 16px;
        line-height: 1.3;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        font-size: 15px;
        padding: 10px 16px;
    }

    /* Navigation */
    .main-nav ul li a {
        font-size: 16px;
    }

    /* Card titles */
    .card h2,
    .card h3 {
        font-size: 20px;
    }

    /* Tournament cards */
    .tournament-card h3 {
        font-size: 18px;
    }

    .tournament-card p {
        font-size: 14px;
    }

    /* Stats + Social panels */
    .stats-panel p,
    .social-panel p {
        font-size: 14px;
    }

    /* Hero section */
    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 15px;
    }

    /* Footer */
    footer p,
    footer a {
        font-size: 14px;
    }
    .tournament-list h2{
         font-size: 22px;
        line-height: 1.25;
        font-weight: 700;
    }
}
/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #080C17;
    padding: 0.8rem 0;
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.25);
    z-index: 2000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
    color: #FCA311;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* MOBILE NAV */
@media (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #0f172a;
        padding: 1rem;
        border-radius: 0 0 0 12px;
        box-shadow: 0 0 20px rgba(0,0,0,0.4);
        display: none;
        min-width: 200px;
        z-index: 2000 !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .main-nav.show {
        display: block;
    }
}

@media (min-width: 801px) {
    .main-nav {
        display: flex !important;
    }
    .hamburger {
        display: none !important;
    }
}

/* -------------------------------------------------
    SECTIONS
---------------------------------------------------*/

section {
    padding: 20px 0;
    position: relative;
    min-height: 200px;
}
section:first-of-type{
    padding-top:60px;
}

section:not(:first-of-type) {
    border-top: 2px solid rgba(252, 163, 17, 0.25);
    box-shadow: 0 -10px 30px rgba(252, 163, 17, 0.05);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #FCA311;
    text-transform: uppercase;
    letter-spacing: 2px;
}

section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #FCA311;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */

.hero {
    background-image: url("/images/Heroimage.webp");
    background-size: cover;
    background-position: 60% 15%;
}

.hero-overlay {
    background: linear-gradient(rgba(20,33,61,0.6), rgba(20,33,61,0.5));
    padding: 5rem 0;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(15, 23, 42, 0.85); /* your blue tone */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 20px;
}

.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.15s ease;
}

.btn-primary {
    background: #FCA311;
    color: #000;
}

.btn-secondary {
    border: 2px solid #FCA311;
    color: #FCA311;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.4);
}

/* --------------------------------------------------
   GRID LAYOUTS
-------------------------------------------------- */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

/* -------------------------------------------------
    TWITCH
-------------------------------------------------*/

.twitch-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 responsive ratio */
    overflow: hidden;
    border-radius: 12px; /* optional, matches your card style */
}

.twitch-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.twitch-wrapper {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    background: #0e0e0e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.twitch-load-btn {
    background: #9146FF;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.twitch-load-btn:hover {
    background: #772ce8;
}

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */

.card {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 0, 200, 0.35);
}

/* --------------------------------------------------
   TOURNAMENTS
-------------------------------------------------- */

.tournaments {
    margin-bottom: 2.5rem;
}

.tournaments:not(:last-child) {
    margin-bottom: 3rem;
}

.tournaments a {
    color: #FCA311;
    font-weight: 600;
    text-decoration: none;
}

/*---------------------------------------------------
    NEWSFEED
--------------------------------------------------*/

.news-grid {
    display: grid;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.news-card {
    width: 100%;
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 0, 200, 0.35);
}

/*---------------------------------------------------
TIMELINE
-----------------------------------------------------*/

/* TIMELINE CONTAINER */
.timeline {
    position: relative;
    margin: 3rem 0;
    padding: 0; /* important: no extra top/bottom padding */
}

/* ORANGE LINE THAT MATCHES DOTS EXACTLY */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    background: #FCA311;
    transform: translateX(-50%);
    z-index: 1;

    /* Start at first dot */
    top: 20px;

    /* End at last dot */
    height: calc(100% - 40px);
}

/* TIMELINE ITEMS */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem;
    background: #0f172a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.25);
    margin-bottom: 3rem;
    z-index: 2;
}

/* LEFT SIDE */
.timeline-item {
    left: 0;
}

/* RIGHT SIDE */
.timeline-item.reverse {
    left: 50%;
}

/* DOT */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 20px; /* dot vertical alignment */
    width: 20px;
    height: 20px;
    background: #FCA311;
    border-radius: 50%;
    z-index: 3;
}

/* DOT POSITIONING */
.timeline-item:not(.reverse)::before {
    right: -10px;
}

.timeline-item.reverse::before {
    left: -10px;
}

/* CONNECTOR POSITIONING */
.timeline-item:not(.reverse)::after {
    right: -30px;
}

.timeline-item.reverse::after {
    left: -30px;
}

/* MOBILE */
@media (max-width: 800px) {

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item.reverse {
        width: 100%;
        left: 0;
    }

    .timeline-item::before {
        left: -10px;
        right: auto;
    }

    .timeline-item::after {
        left: 10px;
        width: 20px;
    }
}

/* --------------------------------------------------
    TEAMNAME HEADERS
----------------------------------------------------*/

.team-header {
    text-align: center;
    margin-bottom: 40px;
}

.team-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FCA311; /* your orange accent */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.team-header p {
    font-size: 1.1rem;
    color: #e2e8f0; /* soft light gray */
    opacity: 0.85;
    margin: 0;
}

/* underline for extra emphasis */
.team-header h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #FCA311;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------
   PLAYER CARDS
-------------------------------------------------- */

.card-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.player-card {
    width: 20%;
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 0, 200, 0.35);
}

.player-card .player-photo {
    width: 100%;
    height: 180px;
    background: #1e293b center/cover no-repeat;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.25);
    overflow: hidden;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center; 
    display: block;
}

.player-card .flag {
    width: 48px;
    height: auto;
    display: block;
    margin: 0.5rem auto 0.75rem;
    padding: 4px;
    background: #1e293b;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 0, 200, 0.25);
    object-fit: contain;
}

@media (max-width: 900px) {
    .player-card {
        width: 48%;
    }
}

@media (max-width: 600px) {
    .player-card {
        width: 100%;
    }
}

/* --------------------------------------------------
   EQUIPMENT CARDS
-------------------------------------------------- */

.equipment-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.equipment-card {
    width: 20%;
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.equipment-photo {
    width: 100%;
    height: 180px;
    background: #1e293b center/cover no-repeat;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.25);
    overflow: hidden;
}
.equipment-photo img {
     width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center; 
    display: block;
}


@media (max-width: 900px) {
    .equipment-card {
        width: 48%;
    }
}

@media (max-width: 600px) {
    .equipment-card {
        width: 100%;
    }
}

/* --------------------------------------------------
    PICTURE GALLERY
-----------------------------------------------------*/

/* GRID LAYOUT */
.picture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.picture-grid {
    display: flex;
    justify-content: center; /* centers the single image */
    gap: 25px;
    flex-wrap: wrap;
}

.picture-card {
    width: 260px; /* keeps the preview size consistent */
}

.picture-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(252, 163, 17, 0.4);
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(252, 163, 17, 0.4);
}

#lightbox .close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s ease;
}

#lightbox .close:hover {
    color: #FCA311;
}

/* --------------------------------------------------
    ACHIEVEMENTS PAGE
---------------------------------------------------*/
.achievements-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 30px;
}

.achievements-section {
    padding-top: 20px; /* or 0 if you want it tight */
}
.achievements-section h2 {
    margin-top: -60px;
}

/* --------------------------------------------------
    FILTERS
---------------------------------------------------*/

.filters {
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
}

.filters h3 {
    color: #FCA311;
    margin-bottom: 15px;
}

.filters label {
    display: block;
    margin-top: 15px;
    color: #e2e8f0;
}

.filters select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: #1e293b;
    border: none;
    color: white;
    border-radius: 6px;
}

.clear-filters {
    margin-top: 20px;
    width: 100%;
    padding: 12px 0;
    background: #FCA311;
    color: #0f0f0f;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.clear-filters:hover {
    background: #ffb73d;
    transform: translateY(-2px);
}

.clear-filters:active {
    transform: translateY(0);
}


/* --------------------------------------------------
    TOURNAMENTS ACHIEVEMENT PAGE
----------------------------------------------------*/
/* TOURNAMENT LIST */
.tournament-list h2 {
    color: #FCA311;
    margin-bottom: 20px;
}

.tournament-list {
    max-height: 600px; 
    overflow-y: auto;
    padding-right: 10px;
    z-index: 1;
}

.tournament-list::-webkit-scrollbar {
    width: 8px;
}

.tournament-list::-webkit-scrollbar-thumb {
    background: #FCA311;
    border-radius: 4px;
}

.tournament-list::-webkit-scrollbar-track {
    background: #1e293b;
}

@media (max-width: 800px) {
    .tournament-list {
        max-height: 400px;
    }
}

.tournament-card {
    display: flex;
    gap: 20px;
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tournament-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.tournament-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tournament-card h3 {
    margin: 0;
    color: white;
}

.tournament-card p {
    margin: 4px 0;
    color: #cbd5e1;
}

.tournament-card a {
    color: #FCA311;
    font-weight: bold;
}

/* --------------------------------------------------
    STATS
---------------------------------------------------*/
.stats-panel {
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
}

.stat-box:not(:last-child) {
    margin-bottom: 3rem;
}

.stats-panel h3 {
    color: #FCA311;
    margin-bottom: 15px;
}

.stats-panel p{
    color: #e2e8f0;
    margin: 8px 0;
}

/* MOBILE RESPONSIVE LAYOUT */
@media (max-width: 900px) {

    .achievements-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Filters full width */
    .filters {
        width: 100%;
    }

    /* Tournament list full width */
    .tournament-list {
        width: 100%;
    }

    /* Stack stats + social panels */
    .stats-panel,
    .social-panel {
        width: 100%;
        grid-column: auto; /* override desktop grid placement */
    }

    /* Tournament cards stack nicely */
    .tournament-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .tournament-logo {
        margin-bottom: 10px;
    }
}

/* EXTRA SMALL SCREENS */
@media (max-width: 500px) {

    .filters select,
    .clear-filters {
        font-size: 14px;
    }

    .tournament-card h3 {
        font-size: 18px;
    }

    .tournament-card p {
        font-size: 14px;
    }

    .stats-panel p,
    .social-panel p {
        font-size: 14px;
    }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
    background: #080C17;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #fff;
    gap: 1rem;
    flex-wrap: wrap;
    text-decoration: none;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-nav a.active,
.footer-nav a:hover {
    color: #FCA311;
}

@media (max-width: 800px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
        max-width: 100%;
    }
}