/* Fail: header_style.css */
/* See fail sisaldab kõiki saidi-üleseid stiile: päis, jalus, fondid, nupud, küpsisebänner jne. */
/* See EI SISALDA spetsiifilisi lehe stiile nagu kaardivõrgustik või üksiku kaardi vaade. */

/* ========================================================== */
/* === ÜLDISED STIILID (BODY, FONDID, LINGID) === */
/* ========================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #2e2e2e;
    background-color: #fcfcfc;
}

a {
  color: #e7c4a4;
  text-decoration: underline;
}

a:hover,
a:focus {
  text-decoration: none;
}

/* ========================================================== */
/* === PÕHILINE PAIGUTUS (LAYOUT) === */
/* ========================================================== */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================== */
/* === PÄIS JA NAVIGATSIOON === */
/* ========================================================== */

.page-header {
    padding: 20px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

}

.logo-image {
    max-height: 50px;
    display: block;
}

.breadcrumbs {
    margin: 20px 0;
    font-size: 0.9em;
    color: #777;
}

.breadcrumbs a {
    color: #e7c4a4;
    text-decoration: none;
}

/* === OTSING === */
.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
}

.search-input {
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    outline: none;
    background-color: transparent;
    width: 200px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 250px;
}

.search-button {
    background-color: #e7c4a4;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #c2966c;
}

/* ========================================================== */
/* === JALUS === */
/* ========================================================== */

footer.page-footer {
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    background-color: #f1f1f1;
}

/* ========================================================== */
/* === KORDUVKASUTATAVAD KOMPONENDID (NUPUD, VORMID) === */
/* ========================================================== */

/* Üldine sisestusväli */
input[type="text"], input[type="email"], input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Oluline, et padding ei ajaks laiust sassi */
}

/* Peamine nupp (CTA) */
.cta-button, .submit-btn {
    display: inline-block;
    background-color: #e7c4a4;
    color: white !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 25px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover, .submit-btn:hover {
    background-color: #c2966c;
}

/* Teisejärguline nupp */
.secondary-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    color: #e7c4a4;
    border: 2px solid #e7c4a4;
    text-decoration: none;
}

.secondary-btn:hover {
    background-color: #e7c4a4;
    color: #fff;
}

/* Vormi teavitused */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none; /* Vaikimisi peidus */
}
.status-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.status-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ========================================================== */
/* === KÜPSISEBÄNNER (COOKIE BANNER) === */
/* ========================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
}
.cookie-banner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-banner-content p { margin: 0; font-size: 0.9em; line-height: 1.5; }
.cookie-banner-content a { color: #7aade2; font-weight: bold; }
.cookie-banner-actions button {
    background-color: #e7c4a4;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.cookie-banner-actions button:hover { background-color: #c2966c; }

/* ========================================================== */
/* === RESPONSIVE STIILID (@media reeglid) === */
/* ========================================================== */

@media (max-width: 768px) {
    .header-container {
        gap: 15px;
    }
    .search-area {
        width: 100%;
        order: 3; /* Paneb otsingu logo ja menüü alla */
    }
    .search-input,
    .search-input:focus {
        width: 100%;
    }
    
    .cookie-banner-wrapper {
        flex-direction: column;
        text-align: center;
    }
}