/* =========================================
   DIAMOND UI V3.1 (FINAL FIX + LOGO)
   ========================================= */

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --glass-header: rgba(15, 23, 42, 0.95);
}

/* --- 1. GLOBALUS FONAS --- */
body, html {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
}

/* --- 2. HEADER (MENIU JUOSTA) FIX --- */
/* Naudojame !important atsargiai, kad nesugadintume pločio */
.site-header {
    background-color: var(--glass-header) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* SVARBU: Header konteineris turi išlaikyti plotį */
.site-header .ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Meniu spalvos */
.main-header-menu .menu-item a {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
}
.main-header-menu .menu-item a:hover,
.main-header-menu .current-menu-item a {
    color: var(--accent) !important;
}
.main-header-bar { background-color: transparent !important; }

/* --- 3. TURINIO PLOTIS (TIK SINGLE POST) --- */
.single-renginys .site-content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.ast-separate-container .ast-article-single, 
.ast-separate-container .ast-article-post {
    background-color: transparent !important;
    border: none !important;
}

/* --- 4. MOBILUS MENIU (FIX) --- */
.ast-mobile-header-wrap .ast-mobile-header-content,
.ast-builder-menu-mobile .main-header-menu {
    background-color: #ffffff !important;
}
.ast-builder-menu-mobile .main-header-menu .menu-item .menu-link {
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}
.ast-mobile-menu-trigger-fill, .ast-icon-svg {
    fill: #ffffff !important;
}

/* --- 5. BOOKING WIDGET (Su Logo) --- */
.rt-booking-cta {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo stilius (jei naudojamas img tagas viduje) */
.rt-booking-cta img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: 15px;
    display: block;
}

/* --- 6. ĮVESTIES LAUKELIAI (INPUTS) --- */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
}
input:focus { border-color: var(--accent) !important; outline: none; }

/* --- 7. ANTRAŠTĖS --- */
h1, h2, h3, h4, h5, h6 { color: var(--text-main) !important; }
.entry-content a { color: var(--accent); text-decoration: none; }

/* --- 8. FOOTER --- */
.site-footer {
    background-color: #020617 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted) !important;
}

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
    .single-renginys .rt-single-container {
        padding: 20px 15px !important;
    }
    
    .rt-booking-cta {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Logo centravimas mobiliam */
    .rt-booking-cta img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .rt-btn-book { width: 100%; display: block; }
}

/* --- 10. MOBILE LOGO FIX --- */
@media (max-width: 921px) {
    .site-header .site-logo-img img,
    .ast-mobile-header-wrap .site-logo-img img {
        max-width: 120px !important; /* Sumažintas logo plotis */
        height: auto !important;
    }
    
    .site-branding {
        max-width: 120px !important;
    }
}
