/**
 * 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%, #025f80 100%);
    color: var(--bva-white);
    padding: 4em 2.5em 3.5em;
    border-radius: var(--bva-radius);
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bva-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.bva-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

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

.bva-hero__title {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.3em;
}

.bva-hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 1.5em;
    line-height: 1.6;
}

.bva-hero__buttons {
    margin-top: 1em;
}

.bva-hero__btn .wp-block-button__link {
    padding: 0.8em 2em;
    font-size: 1rem;
}

.bva-hero__btn--outline .wp-block-button__link {
    border-color: rgba(255,255,255,0.6) !important;
    color: var(--bva-white) !important;
}

.bva-hero__btn--outline .wp-block-button__link:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: var(--bva-white) !important;
}

/* Stats bar */
.bva-stats-bar {
    background: var(--bva-white);
    border-radius: var(--bva-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: -2em auto 2em;
    padding: 1.5em 2em;
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.bva-stats {
    margin: 0 !important;
}

.bva-stat {
    text-align: center;
    padding: 0.5em 0;
}

.bva-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bva-cyan);
    line-height: 1.1;
    margin-bottom: 0.1em;
}

.bva-stat__label {
    font-size: 0.82rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Section headings */
.bva-section {
    padding: 3em 0;
}

.bva-section__heading {
    text-align: center;
    position: relative;
    margin-bottom: 0.4em;
}

.bva-section__heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--bva-cyan);
    margin: 0.5em auto 0;
    border-radius: 2px;
}

.bva-section__intro {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2em;
    font-size: 1.05rem;
}

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

/* Discipline blokken op homepage */
.bva-disciplines-grid {
    gap: 1.5em;
}

.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;
    border: 1px solid rgba(0,0,0,0.04);
}

.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;
    margin-bottom: 1em;
    line-height: 1.5;
}

/* CTA split */
.bva-cta-split {
    align-items: center;
}

/* Latest posts enhancement */
.bva-latest-posts.wp-block-latest-posts {
    gap: 1.5em;
}

.bva-latest-posts.wp-block-latest-posts li {
    background: var(--bva-white);
    border-radius: var(--bva-radius);
    box-shadow: var(--bva-shadow);
    padding: 1.5em;
    transition: box-shadow var(--bva-transition);
}

.bva-latest-posts.wp-block-latest-posts li:hover {
    box-shadow: var(--bva-shadow-hover);
}

/* ==========================================================================
   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--grey {
    background: var(--bva-grey-light);
    padding: 3em 2em;
    border-radius: var(--bva-radius);
    margin: 1em 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 .wp-block-column {
        flex-basis: 48% !important;
    }

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

    .bva-hero__title {
        font-size: 2rem;
    }

    .bva-hero__subtitle {
        font-size: 1rem;
    }

    .bva-stats-bar {
        margin-top: -1.5em;
        padding: 1em 1.25em;
    }

    .bva-stat__number {
        font-size: 1.5rem;
    }

    .bva-stat__label {
        font-size: 0.7rem;
    }

    .bva-cta-split .wp-block-column {
        flex-basis: 100% !important;
    }

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

    .bva-section--grey,
    .bva-section--highlight {
        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 .wp-block-column {
        flex-basis: 100% !important;
    }

    .bva-stats .wp-block-column {
        flex-basis: 48% !important;
    }

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

    .bva-hero__title {
        font-size: 1.65rem;
    }
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   Nieuwsbrief / MailPoet
   ========================================================================== */
.bva-nieuwsbrief {
    background: linear-gradient(135deg, var(--bva-cyan) 0%, var(--bva-cyan-dark) 100%);
    border-radius: var(--bva-radius);
    padding: 2.5em 2em;
    margin: 2em 0;
    text-align: center;
    color: var(--bva-white);
}

.bva-nieuwsbrief__inner {
    max-width: 560px;
    margin: 0 auto;
}

.bva-nieuwsbrief__titel {
    color: var(--bva-white);
    font-size: 1.5rem;
    margin-bottom: 0.3em;
}

.bva-nieuwsbrief__tekst {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1.25em;
}

.bva-nieuwsbrief__field {
    display: flex;
    gap: 0.5em;
    max-width: 460px;
    margin: 0 auto;
}

.bva-nieuwsbrief__input {
    flex: 1;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: var(--bva-radius) !important;
    padding: 0.7em 1em !important;
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    color: var(--bva-white);
}

.bva-nieuwsbrief__input::placeholder {
    color: rgba(255,255,255,0.7);
}

.bva-nieuwsbrief__input:focus {
    border-color: var(--bva-white) !important;
    background: rgba(255,255,255,0.25);
    box-shadow: none !important;
}

.bva-nieuwsbrief__button {
    background: var(--bva-white) !important;
    color: var(--bva-cyan-dark) !important;
    border: none !important;
    border-radius: var(--bva-radius) !important;
    padding: 0.7em 1.8em !important;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--bva-transition), transform var(--bva-transition);
}

.bva-nieuwsbrief__button:hover {
    background: var(--bva-grey-light) !important;
    transform: translateY(-1px);
}

.bva-nieuwsbrief__privacy {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.75em;
}

.bva-nieuwsbrief__message {
    padding: 0.75em 1em;
    border-radius: var(--bva-radius);
    margin-bottom: 1em;
    font-weight: 500;
}

.bva-nieuwsbrief__message--success {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
}

.bva-nieuwsbrief__message--error {
    background: rgba(220,50,50,0.2);
    border: 1px solid rgba(220,50,50,0.4);
}

.bva-nieuwsbrief__message--info {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

/* MailPoet native form overrides (BVA branding) */
.mailpoet_form .mailpoet_submit {
    background-color: var(--bva-cyan) !important;
    border-radius: var(--bva-radius) !important;
}

.mailpoet_form .mailpoet_submit:hover {
    background-color: var(--bva-cyan-dark) !important;
}

@media (max-width: 480px) {
    .bva-nieuwsbrief__field {
        flex-direction: column;
    }

    .bva-nieuwsbrief__button {
        width: 100%;
    }

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