/* Algemene stijlen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #000000;
}

/* Navigatie */
nav ul {
    list-style-type: none;
    background-color: #0A27D5;
    padding: 15px;
    display: flex;
    justify-content: space-around;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

/* Hover-effect (MoSCoW Should Have) */
nav ul li a:hover {
    background-color: #8BBE77;
    color: #000000;
}

/* Headers */
h1, h2 {
    color: #0A27D5;
}

/* site.css (in css/ per eisen) */
/* Algemene basisstijlen */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
}

header {
    background-color: #0A6ED5;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
}

/* Hover-effect (verplicht in eisen) */
nav a:hover {
    background: rgba(255,255,255,0.12);
    padding: 6px 10px;
    border-radius: 4px;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.intro, .features {
    padding: 20px;
}

/* Make linked logo inherit header styles */
.logo a {
    color: white;
    text-decoration: none;
}

/* Skip-link (visually hidden until focused) */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    z-index: 1000;
    display: inline-block;
}

/* Footer styles */
footer {
    background: #f4f4f4;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}
footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
footer p { margin: 4px 0; color: #333; }
footer a { color: #0A6ED5; text-decoration: none; }

/* Gallery/table styles */
table { border-collapse: collapse; width: 100%; max-width: 800px; }
table th, table td { border: 1px solid #ddd; padding: 8px; }
table thead { background: #f7f7f7; }

.gallery img { max-width: 100%; height: auto; display:block; margin: 0 auto; }

/* commentaar: bewaar duidelijke en korte comments boven belangrijke regels */

/* Responsive navigatie */
nav { position: relative; }
.nav-toggle { display:none; background: transparent; border: 2px solid white; color: white; padding: 6px 8px; border-radius:4px; }
@media (max-width: 700px) {
    .nav-toggle { display: inline-block; }
    nav ul { display: none; flex-direction: column; gap: 0; background: #0A6ED5; position: absolute; right: 0; top: 100%; min-width: 200px; }
    nav ul li { padding: 8px 12px; }
    nav.open ul { display: flex; }
}

/* Dropdown (2 niveaus) */
.has-sub { position: relative; }
.has-sub > ul { display: none; position: absolute; left: 0; top: 100%; background: #0A6ED5; padding: 8px; list-style:none; }
.has-sub:hover > ul { display: block; }

/* Form styles + invalid marker */
form input.invalid, form textarea.invalid { outline: 2px solid #e55; }

/* Lightbox styles */
#lightbox-overlay { position: fixed; inset:0; background: rgba(0,0,0,0.85); display:none; align-items:center; justify-content:center; z-index:2000; }
#lightbox-overlay.open { display:flex; }
#lightbox-overlay .lightbox-inner { position:relative; max-width:90%; max-height:90%; }
#lightbox-overlay .lb-image { max-width:100%; max-height:80vh; display:block; margin:0 auto; }
#lightbox-overlay .lb-close, #lightbox-overlay .lb-prev, #lightbox-overlay .lb-next { position:absolute; background:rgba(255,255,255,0.1); border:0; color:#fff; padding:8px 10px; font-size:20px; cursor:pointer; }
#lightbox-overlay .lb-close { right: -10px; top: -10px; }
#lightbox-overlay .lb-prev { left: -40px; top:50%; transform: translateY(-50%); }
#lightbox-overlay .lb-next { right: -40px; top:50%; transform: translateY(-50%); }

/* Gallery grid */
.gallery-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:12px; }
.gallery-grid img { width:100%; height:140px; object-fit:cover; display:block; }


body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    background-color: #0A27D5;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.intro, .features {
    padding: 20px;
}

/* Make linked logo inherit header styles */
.logo a {
    color: white;
    text-decoration: none;
}

/* Skip-link (visually hidden until focused) */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    z-index: 1000;
    display: inline-block;
}

/* Footer styles */
footer {
    background: #f4f4f4;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}
footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
footer p { margin: 4px 0; color: #333; }
footer a { color: #0A27D5; text-decoration: none; }

/* ===== SHOP STYLING ===== */

/* Product section */
.products {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products h3 {
    text-align: center;
    color: #0A27D5;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Individual product items */
.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Product images */
.product-item img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Product titles */
.product-item h4 {
    margin: 10px 0;
    color: #333;
    font-size: 1.2em;
}

/* Product prices */
.product-item p {
    font-size: 1.2em;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

/* Add to cart buttons */
.product-item button {
    background: #0A27D5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
}

.product-item button:hover {
    background: #8BBE77;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-item {
        padding: 15px;
    }
    
    .product-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .products {
        padding: 20px 10px;
    }
}

/* ===== REGELS PAGINA STYLING ===== */

/* Rules container voor de kaarten */
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Individuele regel kaarten */
.rule-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.rule-card h4 {
    color: #0A27D5;
    margin-top: 0;
    border-bottom: 2px solid #0A27D5;
    padding-bottom: 10px;
    font-size: 1.3em;
}

.rule-card ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.rule-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Rules summary sectie (met tabel) */
.rules-summary {
    background: #e9ecef;
    padding: 30px;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1200px;
}

.rules-summary h3 {
    color: #0A27D5;
    text-align: center;
    margin-top: 0;
}

.rules-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rules-summary th {
    background: #0A27D5;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.rules-summary td {
    padding: 15px;
    border: 1px solid #dee2e6;
}

.rules-summary tr:nth-child(even) {
    background: #f8f9fa;
}

.rules-summary tr:hover {
    background: #e3f2fd;
}

/* Tips sectie */
.tips {
    background: #d4edda;
    padding: 30px;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1200px;
    border-left: 5px solid #28a745;
}

.tips h3 {
    color: #155724;
    margin-top: 0;
}

.tips ol {
    padding-left: 25px;
    margin: 15px 0 0 0;
}

.tips li {
    margin-bottom: 12px;
    padding-left: 5px;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .rules-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .rules-summary, .tips {
        padding: 20px;
        margin: 30px 15px;
    }
    
    .rules-summary table {
        font-size: 0.9em;
    }
    
    .rules-summary th,
    .rules-summary td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .rule-card {
        padding: 15px;
    }
    
    .rules-summary table {
        display: block;
        overflow-x: auto;
    }
    
    .tips ol {
        padding-left: 20px;
    }
}

/* ===== NIEUWS PAGINA STYLING ===== */

/* News filters */
.news-filters {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    margin: 20px 0;
}

.news-filters h3 {
    color: #0A27D5;
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 2px solid #0A27D5;
    color: #0A27D5;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0A27D5;
    color: white;
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* News cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    background: #e3f2fd;
    color: #0A27D5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
}

.news-date {
    color: #666;
    font-size: 0.9em;
}

.news-card h3 {
    color: #333;
    margin: 10px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.news-card p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0 15px;
}

.read-more {
    display: inline-block;
    color: #0A27D5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #8BBE77;
    text-decoration: underline;
}

/* Newsletter section */
.newsletter {
    background: linear-gradient(135deg, #0A27D5 0%, #8BBE77 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin: 60px 0 0;
}

.newsletter h3 {
    margin-top: 0;
    font-size: 1.8em;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1em;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}

.newsletter-form button {
    background: white;
    color: #0A27D5;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #f0f0f0;
}

/* Categorie kleuren */
.toernooi .news-category { background: #ffeaa7; color: #d35400; }
.tips .news-category { background: #a29bfe; color: #2d3436; }
.nieuw .news-category { background: #81ecec; color: #00b894; }
.evenement .news-category { background: #fd79a8; color: #a31a5c; }

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        margin-bottom: 5px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-image {
        height: 180px;
    }
}