/* ==============================
   CONFIGURACIÓN GENERAL Y TONALIDAD CLARA
   ============================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: #f7f4ee; /* Tonalidad clara, cálida y discreta */
    color: #2c241d;
    overflow-x: hidden;
}

/* ==============================
   BOTÓN HAMBURGUESA (Adaptado a fondo claro)
   ============================== */
.menu-btn {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: rgba(44, 36, 29, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.menu-btn:hover {
    background: rgba(44, 36, 29, 1);
}

.menu-btn:active {
    transform: scale(0.95);
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fdfbf7;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==============================
   MENÚ LATERAL
   ============================== */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: rgba(36, 29, 24, 0.98);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
}

.side-menu.open {
    transform: translateX(0);
}

.menu-title {
    padding: 0 25px 20px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #f1f5f9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-links {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.menu-link {
    display: block;
    padding: 16px 25px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 32px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ==============================
   CONTENIDO Y TARJETA DEL BUSCADOR
   ============================== */
.main-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.search-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #e3dec3;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 36, 29, 0.06);
    padding: 40px 35px;
}

.search-card h1 {
    margin: 0 0 8px 0;
    font-size: clamp(24px, 4vw, 30px);
    color: #211b16;
    text-align: center;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.subtitle {
    margin: 0 0 35px 0;
    text-align: center;
    color: #6c5d53;
    font-size: 15px;
}

/* Selectores en parrilla */
.selectors-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.select-group label {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c5d53;
}

.select-group select {
    width: 100%;
    padding: 12px 14px;
    font-family: Georgia, serif;
    font-size: 15px;
    color: #2c241d;
    background-color: #faf8f5;
    border: 1px solid #dcd4c7;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.select-group select:focus {
    border-color: #8c7355;
    box-shadow: 0 0 0 3px rgba(140, 115, 85, 0.12);
}

.select-group select:disabled {
    background-color: #f0ede6;
    color: #aaa297;
    cursor: not-allowed;
}

/* Área de resultados */
.result-container {
    margin-top: 25px;
    padding: 30px;
    background-color: #faf6f0;
    border-left: 4px solid #8c7355;
    border-radius: 0 8px 8px 0;
    animation: fadeIn 0.3s ease-in-out;
}

.result-container.hidden {
    display: none;
}

.reference-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c5d53;
    margin-bottom: 12px;
}

.greek-text {
    margin: 0;
    font-size: clamp(20px, 2.5vw, 25px);
    line-height: 1.7;
    color: #1a1411;
}

.loading-msg {
    text-align: center;
    color: #6c5d53;
    font-style: italic;
    margin-top: 20px;
    font-size: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   RESPONSIVO MÓVILES
   ============================== */
@media (max-width: 650px) {
    .search-card {
        padding: 25px 18px;
    }

    .selectors-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .menu-btn {
        top: 14px;
        left: 14px;
        width: 44px;
        height: 44px;
    }
}