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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

:root {
    --primary-color: #5865F2;
    --primary-dark: #4752c4;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --text-light: #f0f0f0;
    --text-muted: #c0c0c0;
    --accent: #e94560;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--bg-darker);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > a::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-darker);
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 200;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-content a:hover {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
}

.discord-link,
.facebook-link {
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.discord-link:hover,
.facebook-link:hover {
    background: var(--primary-dark);
    color: var(--text-light) !important;
}

/* Mobile hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s;
}

#mobile-menu-toggle {
    display: none;
}

#mobile-menu-toggle:checked ~ nav {
    display: flex;
}

#mobile-menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main content */
main {
    padding-top: 80px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero section */
#hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* About section */
#about {
    text-align: center;
}

#about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

#about p {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

#about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Gallery section */
#gallery {
    padding: 4rem 0;
}

#gallery h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
    text-align: center;
}

.gallery-container {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-420px * 6 - 1.5rem * 6));
    }
}

.gallery-item {
    flex-shrink: 0;
    width: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    font-weight: 600;
}

/* Join section */
#join {
    text-align: center;
    background: var(--bg-darker);
    border-radius: 15px;
    margin: 2rem auto;
    padding: 3rem;
}

#join h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

#join p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Tournaments page */
#tournaments-hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

#tournaments-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

#tournaments-list {
    text-align: center;
}

.tournament-card {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border-left: 4px solid var(--accent);
}

.tournament-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.tournament-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tournament-card .date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tournament-card .location {
    color: var(--text-light);
    margin-top: 1rem;
}

.tournament-card .address {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.tournament-card .winner {
    color: var(--accent);
    margin-top: 0.5rem;
}

.tournament-card .runner-up {
    color: var(--text-muted);
}

.tournament-card .participants {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tournament-card .results {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-card.past {
    border-left-color: var(--primary-color);
    opacity: 0.9;
}

.tournaments-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.past-tournaments .section-title {
    color: var(--primary-color);
}

/* Location page */
#location-hero,
#membership-hero,
#faq-hero,
#rules-hero,
#games-hero,
#news-hero,
#calendar-hero,
#hobby-hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

#location-hero h2,
#membership-hero h2,
#faq-hero h2,
#rules-hero h2,
#games-hero h2,
#news-hero h2,
#calendar-hero h2,
#hobby-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
}

.info-card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-card .note {
    font-style: italic;
    font-size: 0.9rem;
}

.info-card ul {
    color: var(--text-muted);
    padding-left: 1.25rem;
}

.info-card li {
    margin-bottom: 0.25rem;
}

.map-container {
    position: sticky;
    top: 100px;
}

/* Membership page */
.membership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.membership-card {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 2rem;
}

.membership-card.featured {
    border: 2px solid var(--accent);
}

.membership-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.membership-card .price {
    font-size: 2.5rem;
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits li::before {
    content: '✓ ';
    color: var(--accent);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
}

.steps {
    list-style: none;
    counter-reset: steps;
}

.steps li {
    counter-increment: steps;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.steps li::before {
    content: counter(steps);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: var(--text-light);
    border-radius: 50%;
    margin-right: 1rem;
    font-weight: bold;
}

.steps li strong {
    color: var(--text-light);
    display: block;
}

.steps li p {
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding-left: 46px;
}

.membership-faq {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 2rem;
}

.membership-faq h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.membership-faq .faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-faq .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.membership-faq h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.membership-faq p {
    color: var(--text-muted);
}

/* FAQ page */
.faq-category {
    margin-bottom: 2rem;
}

.category-title {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.faq-item {
    background: var(--bg-darker);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h4 {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.faq-toggle {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1rem 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
}

/* Rules page */
.rules-section {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.rules-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.rules-list {
    color: var(--text-muted);
    padding-left: 1.5rem;
}

.rules-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Games page */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
}

.game-card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.game-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.game-meta {
    margin-bottom: 1rem;
}

.game-meta p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.tag.beginner {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
}

/* News page */
.news-card {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
}

.news-author {
    color: var(--text-muted);
}

.news-card h3 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.news-card p {
    color: var(--text-muted);
}

/* Calendar page */
#calendar-filters {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 10px;
}

.event-day {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--accent);
}

.event-month {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-type {
    display: inline-block;
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.event-details h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.event-details p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.event-time,
.event-location {
    color: var(--text-muted);
}

.event-recurring {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.event-tournament { border-left-color: var(--accent); }
.event-gamenight { border-left-color: var(--primary-color); }
.event-hobby { border-left-color: #10b981; }
.event-league { border-left-color: #f59e0b; }
.event-social { border-left-color: #8b5cf6; }
.event-beginner { border-left-color: #06b6d4; }

.no-events {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Hobby page */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.hobby-card {
    background: var(--bg-darker);
    border-radius: 15px;
    overflow: hidden;
}

.hobby-image {
    height: 200px;
    overflow: hidden;
}

.hobby-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hobby-content {
    padding: 1.5rem;
}

.hobby-card h3 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.hobby-artist {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hobby-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hobby-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.hobby-game {
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.hobby-date {
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-darker);
    color: var(--text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 1rem;
    }

    nav > a,
    .nav-dropdown > a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-dropdown:hover .nav-dropdown-content {
        max-height: 300px;
    }

    .nav-dropdown-content a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .discord-link,
    .facebook-link {
        margin-top: 1rem;
        text-align: center;
    }

    #hero h2,
    #tournaments-hero h2,
    #location-hero h2,
    #membership-hero h2,
    #faq-hero h2,
    #rules-hero h2,
    #games-hero h2,
    #news-hero h2,
    #calendar-hero h2,
    #hobby-hero h2 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .location-grid,
    .membership-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        position: static;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .gallery-item {
        width: 300px;
    }

    .gallery-item img {
        height: 225px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-315px * 6 - 1.5rem * 6));
        }
    }
}
