/**
 * BVA Alkmaar — Custom Styles
 *
 * Kleuren:
 *   Cyaan:        #04ABE4
 *   Donker cyaan: #037DAA
 *   Zwart:        #1A1A1A
 *   Lichtgrijs:   #F5F5F5
 *   Licht cyaan:  #E8F7FC
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --bva-cyan: #04ABE4;
    --bva-cyan-dark: #037DAA;
    --bva-cyan-light: #E8F7FC;
    --bva-black: #1A1A1A;
    --bva-grey-dark: #333333;
    --bva-grey-light: #F5F5F5;
    --bva-white: #FFFFFF;
    --bva-radius: 8px;
    --bva-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bva-shadow-hover: 0 4px 16px rgba(4, 171, 228, 0.15);
    --bva-transition: 0.2s ease;
}

/* ==========================================================================
   Typografie
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bva-black);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bva-black);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.ast-primary-header-bar,
.site-header {
    border-bottom: 3px solid var(--bva-cyan);
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title a:hover {
    color: var(--bva-black);
    font-weight: 700;
}

/* Logo sizing */
.site-logo-img img,
.custom-logo {
    max-height: 60px;
    width: auto;
}

/* ==========================================================================
   Navigatie
   ========================================================================== */

/* Hoofd menu items */
.main-navigation a,
.ast-header-break-point .main-header-menu a,
.main-header-menu > .menu-item > a {
    color: var(--bva-black);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--bva-transition);
}

.main-navigation a:hover,
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a,
.main-header-menu > .menu-item.current-menu-ancestor > a {
    color: var(--bva-cyan);
}

/* Active menu indicator */
.main-header-menu > .menu-item.current-menu-item > a,
.main-header-menu > .menu-item.current-menu-ancestor > a {
    border-bottom: 2px solid var(--bva-cyan);
}

/* Submenu */
.main-header-menu .sub-menu {
    background: var(--bva-white);
    border-top: 3px solid var(--bva-cyan);
    box-shadow: var(--bva-shadow);
    border-radius: 0 0 var(--bva-radius) var(--bva-radius);
}

.main-header-menu .sub-menu a {
    color: var(--bva-grey-dark);
    padding: 0.6em 1.2em;
    font-size: 0.9rem;
}

.main-header-menu .sub-menu a:hover {
    background: var(--bva-cyan-light);
    color: var(--bva-cyan-dark);
}

/* Externe link indicator (voor Marathon/Shorttrack) */
.menu-item.bva-external-link > a::after {
    content: ' ↗';
    font-size: 0.75em;
    opacity: 0.6;
}

/* ==========================================================================
   Links & Knoppen
   ========================================================================== */
a {
    color: var(--bva-cyan-dark);
    transition: color var(--bva-transition);
}

a:hover {
    color: var(--bva-cyan);
}

/* Primaire knop */
.wp-block-button__link,
.ast-custom-button,
button,
input[type="submit"],
.bva-btn {
    background-color: var(--bva-cyan);
    color: var(--bva-white);
    border: none;
    border-radius: var(--bva-radius);
    padding: 0.7em 1.5em;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color var(--bva-transition), box-shadow var(--bva-transition);
    cursor: pointer;
}

.wp-block-button__link:hover,
.ast-custom-button:hover,
button:hover,
input[type="submit"]:hover,
.bva-btn:hover {
    background-color: var(--bva-cyan-dark);
    box-shadow: var(--bva-shadow-hover);
    color: var(--bva-white);
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link,
.bva-btn--outline {
    background: transparent;
    border: 2px solid var(--bva-cyan);
    color: var(--bva-cyan);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.bva-btn--outline:hover {
    background: var(--bva-cyan);
    color: var(--bva-white);
}

/* ==========================================================================
   Pagina Content
   ========================================================================== */
.entry-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* Verbeterde tabel styling */
.entry-content table,
.bva-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.entry-content table th,
.bva-table th {
    background: var(--bva-cyan);
    color: var(--bva-white);
    padding: 0.75em 1em;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.entry-content table td,
.bva-table td {
    padding: 0.65em 1em;
    border-bottom: 1px solid #e5e5e5;
}

.entry-content table tr:hover td,
.bva-table tr:hover td {
    background: var(--bva-cyan-light);
}

/* ==========================================================================
   Cards (voor verenigingen, baanselectie, etc.)
   ========================================================================== */
.bva-card {
    background: var(--bva-white);
    border-radius: var(--bva-radius);
    box-shadow: var(--bva-shadow);
    padding: 1.5em;
    transition: box-shadow var(--bva-transition), transform var(--bva-transition);
}

.bva-card:hover {
    box-shadow: var(--bva-shadow-hover);
    transform: translateY(-2px);
}

.bva-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bva-black);
    margin-bottom: 0.5em;
}

.bva-card__meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75em;
}

.bva-card__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1em;
}

/* Card grid */
.bva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

/* ==========================================================================
   Homepage specifiek
   ========================================================================== */
.bva-hero {
    background: linear-gradient(135deg, var(--bva-cyan) 0%, var(--bva-cyan-dark) 100%);
    color: var(--bva-white);
    padding: 3em 2em;
    border-radius: var(--bva-radius);
    margin-bottom: 2em;
    text-align: center;
}

.bva-hero h1,
.bva-hero h2 {
    color: var(--bva-white);
}

.bva-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0.5em auto;
}

/* Discipline blokken op homepage */
.bva-disciplines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.bva-discipline-card {
    background: var(--bva-white);
    border-radius: var(--bva-radius);
    box-shadow: var(--bva-shadow);
    padding: 2em 1.5em;
    text-align: center;
    transition: box-shadow var(--bva-transition), transform var(--bva-transition);
    text-decoration: none;
    color: var(--bva-black);
    display: block;
}

.bva-discipline-card:hover {
    box-shadow: var(--bva-shadow-hover);
    transform: translateY(-3px);
    color: var(--bva-black);
}

.bva-discipline-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

.bva-discipline-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.bva-discipline-card__desc {
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   Nieuws / Blog
   ========================================================================== */
.bva-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
}

.bva-news-item {
    background: var(--bva-white);
    border-radius: var(--bva-radius);
    box-shadow: var(--bva-shadow);
    overflow: hidden;
    transition: box-shadow var(--bva-transition);
}

.bva-news-item:hover {
    box-shadow: var(--bva-shadow-hover);
}

.bva-news-item__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bva-news-item__content {
    padding: 1.25em;
}

.bva-news-item__category {
    display: inline-block;
    background: var(--bva-cyan-light);
    color: var(--bva-cyan-dark);
    padding: 0.2em 0.7em;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5em;
}

.bva-news-item__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.bva-news-item__date {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer,
.ast-footer-overlay {
    background: var(--bva-black);
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
    color: var(--bva-cyan);
}

.site-footer a:hover {
    color: var(--bva-white);
}

.ast-small-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Formulieren
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    border: 1px solid #ddd;
    border-radius: var(--bva-radius);
    padding: 0.6em 0.9em;
    transition: border-color var(--bva-transition), box-shadow var(--bva-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--bva-cyan);
    box-shadow: 0 0 0 3px rgba(4, 171, 228, 0.15);
    outline: none;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */
.bva-text-cyan { color: var(--bva-cyan); }
.bva-text-dark { color: var(--bva-black); }
.bva-bg-cyan { background-color: var(--bva-cyan); }
.bva-bg-light { background-color: var(--bva-grey-light); }
.bva-bg-cyan-light { background-color: var(--bva-cyan-light); }

.bva-section {
    padding: 3em 0;
}

.bva-section--grey {
    background: var(--bva-grey-light);
    padding: 3em 2em;
    border-radius: var(--bva-radius);
    margin: 2em 0;
}

/* Schaatsstreep accent */
.bva-accent-line {
    width: 60px;
    height: 3px;
    background: var(--bva-cyan);
    border: none;
    margin: 0.75em 0 1.5em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }

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

    .bva-disciplines {
        grid-template-columns: 1fr 1fr;
    }

    .bva-hero {
        padding: 2em 1.5em;
    }

    .bva-news-grid {
        grid-template-columns: 1fr;
    }

    .bva-section--grey {
        padding: 2em 1em;
    }

    .entry-content table {
        font-size: 0.85rem;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 0.5em 0.6em;
    }
}

@media (max-width: 480px) {
    .bva-disciplines {
        grid-template-columns: 1fr;
    }

    .bva-card__logo {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .main-navigation,
    .ast-above-header,
    .ast-below-header {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   Nieuws Filter Knoppen
   ========================================================================== */
.bva-nieuws-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.5em;
}

.bva-filter-btn {
    display: inline-block;
    padding: 0.45em 1.1em;
    border: 2px solid var(--bva-cyan);
    border-radius: 50px;
    color: var(--bva-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--bva-transition), color var(--bva-transition);
}

.bva-filter-btn:hover {
    background: var(--bva-cyan-light);
    color: var(--bva-cyan-dark);
}

.bva-filter-btn--active,
.bva-filter-btn--active:hover {
    background: var(--bva-cyan);
    color: var(--bva-white);
}

.bva-news-item__title a {
    color: var(--bva-black);
    text-decoration: none;
}

.bva-news-item__title a:hover {
    color: var(--bva-cyan);
}

.bva-news-item__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75em;
}

.bva-nieuws-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2em;
}
