/* Reset en base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 107, 53, 0.6);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes navSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logoRotate {
    from {
        transform: rotate(0deg) scale(0.8);
        opacity: 0;
    }
    to {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('assets/achtergrond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    animation: fadeInUp 1s ease-out;
}

/* Subtle background overlay animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(138, 43, 226, 0.08) 25%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(75, 0, 130, 0.06) 75%, 
        rgba(0, 0, 0, 0.3) 100%);
    background-size: 400% 400%;
    animation: backgroundMove 15s ease infinite;
    z-index: -1;
    pointer-events: none;
}

/* Simple Modern Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(30, 30, 40, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
}

.nav-logo {
    position: relative;
}

.nav-logo h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-logo h2:hover {
    color: #8A2BE2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

/* Nav items - geen specifieke styling nodig */

.nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(138, 43, 226, 0.2);
    color: #ffffff;
}

/* Login button styles removed - admin access is now hidden via secret methods */

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.3);
}

.bar {
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle:hover .bar {
    background: #8A2BE2;
}

/* Navbar particles */
.navbar-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #8A2BE2;
    border-radius: 50%;
    pointer-events: none;
    animation: navParticleFloat 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes navParticleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    25% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.2);
    }
    75% {
        opacity: 0.6;
        transform: translateY(-15px) scale(0.8);
    }
}

/* Navbar scroll effects */
.navbar.scrolled {
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(15, 10, 25, 0.98) 0%, 
        rgba(35, 15, 55, 0.95) 50%, 
        rgba(15, 10, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.2),
        0 2px 8px rgba(75, 0, 130, 0.1);
}

.navbar.scrolled .nav-container {
    height: 60px;
}

.navbar.scrolled .nav-logo h2 {
    font-size: 1.6rem;
}

.navbar.scrolled .nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Main content */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-section {
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(138, 43, 226, 0.3));
}

.tagline {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(138, 43, 226, 0.5);
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.tagline:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(138, 43, 226, 0.6);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(138, 43, 226, 0.8);
    transform: translateY(-2px);
}

@keyframes logoGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.play-button-container {
    display: flex;
    align-items: center;
    /* Verwijder loading animatie delay */
}

.play-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
    color: #ffffff;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, #9932CC, #6A0DAD);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.play-button i {
    font-size: 1.4rem;
}

/* Rules page specific styles */
.rules-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.rules-sidebar {
    width: 350px;
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.95) 0%, 
        rgba(40, 20, 60, 0.9) 100%);
    border-radius: 15px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    animation: slideInLeft 1s ease-out 0.2s both;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

.rules-sidebar h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid #8A2BE2;
    padding-bottom: 12px;
    text-align: center;
}

.rules-nav {
    list-style: none;
}

.rules-nav li {
    margin-bottom: 5px;
    animation: fadeInUp 0.6s ease-out both;
}

.rules-nav li:nth-child(1) { animation-delay: 0.4s; }
.rules-nav li:nth-child(2) { animation-delay: 0.5s; }
.rules-nav li:nth-child(3) { animation-delay: 0.6s; }
.rules-nav li:nth-child(4) { animation-delay: 0.7s; }

/* Main category styling */
.rules-nav > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    margin-bottom: 8px;
}

.rules-nav > li > a:hover,
.rules-nav > li > a.active {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
    transform: translateX(3px);
}

/* Subcategory list */
.rules-subcategories {
    list-style: none;
    margin: 0;
    padding-left: 15px;
    border-left: 2px solid rgba(138, 43, 226, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.rules-subcategories.expanded {
    max-height: 500px;
    margin: 5px 0 15px 0;
    opacity: 1;
}

.rules-subcategories li {
    margin-bottom: 3px;
}

.rules-subcategories a {
    color: #cccccc;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 400;
}

.rules-subcategories a:hover,
.rules-subcategories a.active {
    background: rgba(138, 43, 226, 0.15);
    color: #8A2BE2;
    transform: translateX(5px);
    border-left: 2px solid #8A2BE2;
}

/* Main category active state */
.rules-nav > li > a.expanded {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
    color: #ffffff;
}

/* Add arrow indicator */
.rules-nav > li > a::after {
    content: '▶';
    float: right;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #8A2BE2;
}

.rules-nav > li > a.expanded::after {
    transform: rotate(90deg);
}

.rules-content {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.95) 0%, 
        rgba(40, 20, 60, 0.9) 100%);
    border-radius: 15px;
    padding: 35px;
    animation: slideInRight 1s ease-out 0.4s both;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.rules-section {
    display: none;
    animation: fadeInUp 0.6s ease-out both;
}

.rules-section.active {
    display: block;
}

.rules-section h1 {
    color: #8A2BE2;
    margin-bottom: 25px;
    font-size: 2.2rem;
    border-bottom: 3px solid #8A2BE2;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.rules-section h2 {
    color: #ffffff;
    margin: 35px 0 20px 0;
    font-size: 1.6rem;
    padding: 12px 20px;
    background: rgba(138, 43, 226, 0.2);
    border-left: 4px solid #8A2BE2;
    border-radius: 8px;
}

.rules-section h3 {
    color: #cccccc;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.rules-section h4 {
    color: #8A2BE2;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.rules-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.3s ease;
}

.rules-section p:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.rules-section ul {
    color: #cccccc;
    margin-left: 20px;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out both;
}

.rules-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.rules-section li:hover {
    color: #ffffff;
    padding-left: 5px;
    border-left: 2px solid #ff6b35;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff7b45, #f8a32e);
}

/* Selection styling */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #ffffff;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Sparkle effect */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #8A2BE2;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 2s ease-out forwards;
    z-index: 999;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
        box-shadow: 0 0 5px #8A2BE2;
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
        box-shadow: 0 0 15px #8A2BE2, 0 0 25px #4B0082;
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg) translateY(-20px);
        box-shadow: 0 0 5px #8A2BE2;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, 
            rgba(20, 20, 30, 0.98) 0%, 
            rgba(40, 20, 60, 0.95) 100%);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 8px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: #8A2BE2;
    }

    .nav-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: #8A2BE2;
    }

    .logo-container {
        flex-direction: column;
        gap: 30px;
    }

    .logo-section {
        gap: 15px;
    }

    .main-logo {
        max-width: 300px;
    }

    .tagline {
        font-size: 1.4rem;
        padding: 12px 20px;
        margin: 0 15px;
        letter-spacing: 1px;
    }

    .play-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    .rules-container {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        padding: 15px;
    }

    .rules-sidebar {
        width: 100%;
        position: static;
        padding: 20px;
    }

    .rules-content {
        padding: 25px;
    }

    .rules-subcategories {
        padding-left: 10px;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.4rem;
    }

    .main-logo {
        max-width: 250px;
    }

    .tagline {
        font-size: 1.1rem;
        padding: 10px 15px;
        margin: 0 10px;
        letter-spacing: 0.5px;
    }

    .play-button {
        padding: 12px 25px;
        font-size: 1rem;
        gap: 10px;
    }

    .rules-content {
        padding: 20px;
    }

    .rules-section h2 {
        font-size: 1.6rem;
    }
}
