/* Base Styles */
:root {
    --primary: #007BFF;
    --secondary: #005F6B;
    --light-blue: #E6F3FF;
    --sand: #F4E9D8;
    --wave: #88B5D3;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease-in-out;
}
 
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    border: 0px solid white;
    text-align: center;
    background-color: var(--primary);
    color: black;
    padding: clamp(8px, 2.5vw, 15px);
    margin: 0;
    position: sticky;
    top: 0;
    border-radius: 7px 15px 0 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease-in-out;
}

@media (min-width: 768px) {
    /* Initial state explicitly set */
    header {
        padding: clamp(10px, 3vw, 20px);
    }
    
    header .title {
        transform: scale(1);
        margin: 0;
        transition: all 0.4s ease-in-out;
    }

    header .hoofdtitel {
        font-size: clamp(20px, 4vw, 32px);
        margin: 10px 0;
        transition: all 0.4s ease-in-out;
    }

    header .navbar {
        margin-top: clamp(15px, 3vw, 30px);
        transition: all 0.4s ease-in-out;
    }

    /* Scrolled state */
    header.scrolled {
        padding: 5px 20px;
    }

    header.scrolled .title {
        transform: scale(0.8);
        margin: -10px 0;
    }

    header.scrolled .hoofdtitel {
        font-size: calc(clamp(20px, 4vw, 32px) * 0.8);
        margin: 5px 0;
    }

    header.scrolled .pompebled1,
    header.scrolled .pompebled2 {
        height: calc(clamp(25px, 7vw, 40px) * 0.8);
        transition: all 0.4s ease-in-out;
    }

    header.scrolled .navbar {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
        border-radius: 0;
    }

    section {
        scroll-margin-top: 140px;
    }
}

@media (max-width: 480px) {
    header {
        position: relative;
    }

    section {
        scroll-margin-top: 0;
    }
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(5px, 2vw, 10px);
    color: black;
    text-decoration: none;
    animation: fadeIn 1s ease-out 0.7s both;
    flex-wrap: wrap;
    padding: 10px 0;
}

.hoofdtitel {
    text-align: center;
    font-size: clamp(24px, 5vw, 40px);
    color: white;
    margin: 10px 0;
    animation: fadeIn 1s ease-out 0.5s both;
    width: 100%;
    order: -1;
}

.pompebled1, .pompebled2 {
    height: clamp(25px, 7vw, 40px);
    width: auto;
    margin: 0;
}

.pompebled1 {
    padding-right: clamp(10px, 3vw, 20px);
    animation: fadeIn 1s ease-out 0.9s both;
}

.pompebled2 {
    padding-left: clamp(10px, 3vw, 20px);
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Navigation */
.navbar {
    background-color: var(--primary);
    font-size: clamp(16px, 2.5vw, 20px);
    margin-top: clamp(12px, 2.5vw, 25px);
    padding: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-menu li {
    flex: 0 1 auto;
}

.nav-menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: clamp(10px, 2vw, 20px) clamp(15px, 3vw, 25px);
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background-color: #FFB347;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(0, 123, 255, 0.98);
        width: 100%;
        height: 100vh;
        z-index: 1001;
        text-align: center;
        transition: all 0.3s ease-in-out;
        padding-top: 80px;
        gap: 15px;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }

    .nav-menu li {
        width: 90%;
        margin: 0 auto;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu li:nth-child(5) { transition-delay: 0.5s; }

    .nav-menu li a {
        padding: 15px;
        font-size: 1.2rem;
        display: block;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .nav-menu li a:hover {
        background-color: rgba(255, 179, 71, 0.8);
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 40px 0;
    scroll-margin-top: 180px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    font-size: clamp(24px, 3.5vw, 32px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(45deg, var(--wave) 50%, transparent 50%);
    background-size: 30px 30px;
    animation: waveAnimation 3s linear infinite;
}

.hero h1 {
    color: white;
    margin-bottom: 2rem;
}

/* Main Content */
.main-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: black;
    flex-wrap: wrap;
    gap: 30px;
}

.text {
    flex: 1;
    padding-right: 20px;
    font-family: sans-serif;
    min-width: 300px;
}

.text h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.text h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-top: 20px;
    font-weight: 500;
    color: #34495e;
    line-height: 1.4;
}

.text p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

/* Carousel */
.carousel {
    flex: 1;
    overflow: hidden;
    max-width: 500px;
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    min-width: 300px;
    position: relative;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 300px; /* Fixed height for consistent sizing */
}

.carousel-item {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio while filling container */
    border-radius: 10px;
}

.carousel-item p {
    margin-top: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Fun Fact Section */
#fun-fact-container {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px;
    animation: slideIn 1s ease-out;
    flex-wrap: wrap;
}

#fun-fact-image {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
}

#fun-fact {
    flex: 1;
    font-size: clamp(16px, 2vw, 18px);
    padding: 20px;
    min-width: 300px;
    text-align: center;
}

/* Wedstrijden Section */
.wedstrijden-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 2rem);
}

.highlight {
    color: whitesmoke;
    font-weight: bold;
}

.wedstrijden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.wedstrijd-section {
    background: white;
    border-radius: 15px;
    padding: clamp(1rem, 2vw, 2rem);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-out;
    height: 100%;
}

.wedstrijd-section h2 {
    color: var(--primary);
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.uitslagen-tabel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border-radius: 8px;
    min-width: 600px;
    background: white;
}

.uitslagen-tabel th {
    background-color: var(--secondary);
    color: white;
    padding: clamp(0.5rem, 1vw, 1rem);
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.uitslagen-tabel td {
    padding: clamp(0.5rem, 1vw, 1rem);
    border-bottom: 1px solid #e2e8f0;
    background-color: white;
}

.uitslagen-tabel tr:hover td {
    background-color: var(--sand);
}

@media (max-width: 480px) {
    .wedstrijden-container {
        padding: 1rem;
    }
    
    .wedstrijd-section {
        padding: 1rem;
    }

    .uitslagen-tabel {
        font-size: 0.9rem;
    }
}

/* Rankings */
.standings ol {
    list-style: none;
    padding: 0;
}

.standings li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: clamp(14px, 2vw, 16px);
}

.rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    color: white;
}



/* Documents Section */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.document-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-blue);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.document-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.document-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 500;
    line-height: 1.4;
}

.document-info p {
    color: #5f6b7a;
    font-size: clamp(14px, 1.5vw, 16px);
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .wedstrijden-grid {
        grid-template-columns: 3fr 2fr;
    }
    
    .documents {
        grid-column: 1 / -1;
    }
}

/* Lid Worden Section */
.contact-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 550px;
    min-height: 400px;
    text-align: center;
    padding-top: 60px;
    margin: 0 auto;
}

.method-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.method-btn {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    background-color: #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
}

.method-btn.active {
    background-color: #4CAF50;
    color: white;
}

/* Bonnen Verkoop Timer */
.timer-container {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 100px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hourglass {
    font-size: 3rem;
    margin: 2rem 0;
    display: inline-block;
    animation: rotate 2s infinite linear;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #FFFFFF;
    position: relative;
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-wave {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(45deg, var(--wave) 50%, transparent 50%);
    background-size: 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--sand);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--wave);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
    font-size: 0.95rem;
}

.contact-info .icon {
    margin-right: 10px;
    font-style: normal;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--sand);
    transform: translateX(5px);
}

.news-updates {
    color: #fff;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--sand);
    margin-bottom: 5px;
}

/* Notification banner (bonnenverkoop) */
.site-notification {
    width: 100%;
    background: linear-gradient(90deg, rgba(244,233,216,0.98), rgba(255,255,255,0.95));
    border-left: 6px solid var(--wave);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 12px 20px;
    color: #222;
    position: relative;
    z-index: 1100;
}

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

.site-notification__text {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #1b2b33;
}

.site-notification__text .notification-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    margin-left: 6px;
}

.site-notification__close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
    color: #333;
    border-radius: 6px;
}

.site-notification__close:hover {
    background: rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .site-notification__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-notification__close {
        align-self: flex-end;
    }
}

.site-notification.hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.news-item p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes waveAnimation {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 30px 15px;
    }

    .navbar ul li a {
        padding: 10px 15px;
    }

    .text {
        padding-right: 0;
    }

    .carousel {
        margin: 0 auto;
        padding: 10px;
    }

    #fun-fact-container {
        margin: 10px;
    }

    .column {
        width: 100%;
        max-width: 500px;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }

    .contact-container {
        padding: 20px;
        padding-top: 40px;
    }

    .method-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .method-btn {
        margin: 5px;
    }
}

/* Floating Message */
.floating-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 350px;
    animation: slideInRight 0.5s ease-out;
}

.message-content {
    flex: 1;
}

.message-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.message-content p {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.close-message {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-message:hover {
    opacity: 1;
}

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

.floating-message.hiding {
    animation: slideOutRight 0.5s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}