/* STT Schaatstoto - Master Stylesheet Baseline */

/* 1. BASIS & LAYOUT */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f7f9;
}

main.container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* Stabiele Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Exacte 2/3 vs 1/3 verdeling */
    gap: 25px;
    align-items: start;
}

/* Zorg dat de kolommen onder elkaar klappen op tablets en telefoons */
@media screen and (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* H2H Invite Alert */
.h2h-invite-alert {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 101, 101, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0); }
}
/* 2. HEADER & NAVIGATIE */
header {
    flex-shrink: 0;
    background-color: #003366 !important;
    color: white !important;
    z-index: 1000;
    position: sticky;
    top: 0;
}

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

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

#mainNav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

#mainNav ul li a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

#mainNav ul li a:hover {
    color: #00ffcc !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Rood bolletje bij uitslagen - Hersteld */
.red-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-left: 5px;
    border: 1px solid white;
}

/* 3. DROPFIX: Navigatie Dropdown Contrast */
.dropdown {
    position: relative;
}

#mainNav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff !important;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1001;
}

#mainNav .dropdown:hover .dropdown-content {
    display: block;
}

/* Forceer donkere tekst over de algemene witte !important regel heen */
#mainNav ul li .dropdown-content a {
    color: #333333 !important;
    background-color: #ffffff !important;
    padding: 12px 16px !important;
    display: block !important;
    border-bottom: 1px solid #eeeeee !important;
    text-align: left !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    font-size: 0.9rem !important;
}

#mainNav ul li .dropdown-content a:hover {
    background-color: #f0f4f8 !important;
    color: #003366 !important;
}

/* De speciale styling voor '+ Alle' */
#mainNav ul li .dropdown-content a.all-link {
    background-color: #001a33 !important;
    color: #00ffcc !important;
    border-bottom: none !important;
}

/* 4. FOOTER */
#stt-site-footer {
    flex-shrink: 0;
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 20px 0;
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

#stt-site-footer .sep {
    color: #cbd5e0;
    margin: 0 5px;
}

#stt-site-footer .credit {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* 5. RESPONSIVE */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    #mainNav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #003366;
        padding: 10px 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    #mainNav.nav-active {
        display: block;
    }

    #mainNav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    #mainNav ul li {
        width: 100%;
    }

    #mainNav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #mainNav .dropdown-content {
        position: static;
        display: none;
        background: #002244 !important;
        width: 100%;
        box-shadow: none;
    }

    #mainNav.nav-active .dropdown.mobile-open .dropdown-content {
        display: block;
    }

    #mainNav ul li .dropdown-content a {
        color: #cccccc !important;
        background-color: transparent !important;
        padding-left: 40px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}/* --- Uniforme Nieuws Metadata (Zet dit helemaal onderaan) --- */
.news-meta-bar { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    margin-bottom: 12px; 
    font-size: 0.8rem; 
    color: #64748b !important; /* Forceert de grijze kleur i.p.v. link-blauw */
}

.category-badge { 
    background: #003366 !important; 
    color: white !important;
    padding: 3px 10px; 
    border-radius: 4px; 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 0.65rem; 
    display: inline-block;
}

.meta-item { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    color: #64748b;
}

/* Zorgt dat de titels in de kaarten er niet als standaard links uitzien */
.news-title-link {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

.news-title-link:hover {
    color: #e67e22;
}
/* Specifieke styling voor kleine nieuws-items op de home */
.news-card-small {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: 0.2s;
}

.news-card-small:hover {
    border-color: #e67e22;
    background: #fffaf5;
}

.news-card-small .archive-title {
    font-size: 1rem;
    color: #003366;
    margin: 0;
}
/* Het icoontje */
.stt-tooltip-container {
    display: inline-flex !important;
    position: relative !important;
    background: #3498db;
    color: white !important;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    vertical-align: middle;
}

/* De tekstballon - NU MET FIXED POSITIONING */
.stt-tooltip-text {
    display: none;
    opacity: 0;
    /* 1. Maak de ballon breder */
    width: 350px; /* Was 220px, pas aan naar wens */
    max-width: 90vw; /* Zorg dat hij op mobiel niet buiten het scherm valt */
    
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: fixed; 
    z-index: 99999999 !important; 
    
    /* We halen de 'transform' uit de standaard, die doen we nu per situatie */
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Class voor als de tooltip ONDER het icoon moet (als boven geen plek is) */
.stt-tooltip-text.tooltip-bottom {
    transform: translate(-50%, 20px) !important;
}

/* Standaard (BOVEN het icoon) */
.stt-tooltip-text.tooltip-top {
    transform: translate(-50%, -110%) !important;
}
/* Tonen bij hover */
.stt-tooltip-container:hover .stt-tooltip-text {
    display: block !important;
    opacity: 1 !important;
}

/* Zorg dat de accordion of kaart de tooltip niet afsnijdt */
.dashboard-card, .accordion-content, .card {
    overflow: visible !important;
}
/* De container van het logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Het logo zelf */
.header-logo {
    height: 40px; /* Pas deze hoogte aan zodat het mooi in je bar past */
    width: auto;  /* Behoudt de verhoudingen */
    display: block;
    padding: 5px 0;
}

/* Mobiele aanpassing: iets kleiner op kleine schermen */
@media screen and (max-width: 768px) {
    .header-logo {
        height: 30px;
    }
}