/* ==========================================
   STYLING VOOR WOORDENLIJST & ZOEKPAGINA
   ========================================== */

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 20px; 
    background-color: #f0f4f8; 
}

/* === STICKY HEADER & ZOEKSTRUCTUUR === */
.sticky-header,
.search-container { 
    position: sticky; 
    top: 0; 
    background: #108aff; 
    padding: 10px 15px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    margin-bottom: 20px; 
    z-index: 1000; 
}

/* Werkt veilig op zowel #wordSearch als op #recipeSearch van zoeken.html */
.sticky-header input[type="text"] { 
    width: 100%; 
    padding: 8px 12px; 
    border: none; 
    border-radius: 4px; 
    font-size: 15px; 
    box-sizing: border-box; 
    outline: none;
}

/* === A-Z NAVIGATIEBALK === */
.az-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    justify-content: center;
}

.az-bar button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.az-bar button:hover,
.az-bar button.active {
    background-color: #ffffff;
    color: #108aff;
    border-color: #ffffff;
}

/* === KOPTEKSTEN === */
h1 { 
    color: #108aff; 
    text-align: center; 
    text-transform: uppercase; 
}

h2, h3 { 
    border-bottom: 3px solid #108aff; 
    color: #108aff; 
    padding-bottom: 5px; 
    margin-top: 0; 
}

/* === GRID LAYOUT & CARDS === */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 15px; 
}

.card { 
    background: white; 
    padding: 15px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

/* === TABELLEN IN CARDS === */
table { 
    width: 100%; 
    border-collapse: collapse; 
}

th, td { 
    padding: 4px 8px; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
    font-size: 0.9em; 
}

th { 
    color: #108aff; 
    width: 45%; 
}

/* === GEEN RESULTATEN MELDING === */
.no-results { 
    display: none; 
    text-align: center; 
    padding: 50px; 
    font-size: 1.2em; 
    color: #666; 
}