/* ==========================================================================
   GLAVNI STILOVI - RESTORAN RIVA VRSAR
   ========================================================================== */

html, body { 
    overflow-x: hidden; 
    width: 100%; 
    position: relative; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #f4ece1; 
    color: #0e2a3d; 
    scroll-behavior: smooth; 
    padding-bottom: 70px; 
}

h1, h2, h3, .menu-title { 
    font-family: 'Cormorant Garamond', serif; 
    font-weight: 600; 
}

/* ==========================================================================
   NAVIGACIJA (NAVBAR)
   ========================================================================== */

.navbar-brand { 
    font-family: 'Dancing Script', cursive; 
    font-size: clamp(1.5rem, 5vw, 2.2rem); 
    color: #b34a2e !important; 
    letter-spacing: 0;
}

.navbar { 
    background: rgba(255, 255, 255, 0.7) !important; 
    backdrop-filter: blur(10px); 
    padding: 15px 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    z-index: 1030;
}

@media (max-width: 768px) {
    .navbar .container { flex-direction: column; text-align: center; }
    .navbar-brand { margin-bottom: 10px; margin-right: 0; }
    .navbar-nav { width: 100%; justify-content: center !important; }
}

/* ==========================================================================
   HERO SLIDER S KEN BURNS EFEKTOM (CINEMATIC ZOOM)
   ========================================================================== */

.hero-carousel, .carousel-inner, .carousel-item { 
    height: 100vh; 
    width: 100%; 
    overflow: hidden; 
}

.hero-slide-bg {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transform: scale(1);
    transition: transform 6000ms ease-in-out; 
}

.carousel-item.active .hero-slide-bg {
    transform: scale(1.1);
}

.hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(14,42,61,0.3), rgba(179,74,46,0.4));
    z-index: 1;
}

.hero-overlay-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.hero-text-wrapper {
    text-align: center;
    color: white;
    padding: 0 15px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 12px;
    color: #f4ece1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-title { 
    font-family: 'Syne', sans-serif;
    font-weight: 800; 
    font-size: clamp(3.5rem, 12vw, 8rem); 
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px; 
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* ==========================================================================
   SEKCIJE & RAZMAKNUTI DIZAJN (SLIKA - TEKST)
   ========================================================================== */

.section-padding { padding: 80px 0; }

@media (min-width: 769px) {
    .custom-row-spacing {
        --bs-gutter-x: 6rem; 
    }
    .custom-padding-img {
        padding-right: 3rem !important;
    }
    .custom-padding-text {
        padding-left: 4rem !important; 
    }
    .order-md-2.custom-padding-img {
        padding-left: 3rem !important;
        padding-right: 0rem !important;
    }
    .order-md-1.custom-padding-text {
        padding-right: 4rem !important; 
        padding-left: 0rem !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .custom-padding-text {
        padding-left: 2rem !important;
    }
    .order-md-1.custom-padding-text {
        padding-right: 2rem !important;
    }
}

.menu-preview-container { cursor: pointer; position: relative; transition: transform 0.4s ease; }
.menu-preview-container:hover { transform: translateY(-10px); }

.menu-overlay { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); 
    z-index: 9999; 
    padding: 50px 15px; 
    overflow-y: auto; 
}

.parchment-paper { 
    background-color: #f9f4e8; 
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 40px 20px; 
    box-shadow: 0 0 50px rgba(0,0,0,0.5); 
    border: 1px solid #dcd1ba; 
    position: relative; 
}

.close-menu { 
    position: fixed; 
    top: 15px; right: 20px; 
    color: white; 
    font-size: 2.5rem; 
    cursor: pointer; 
    z-index: 10001; 
}

/* ==========================================================================
   WINEBAR SEKCIJA
   ========================================================================== */

.winebar-section { background-color: #2b1111; color: #f4ece1; position: relative; overflow: hidden; }
.winebar-content { position: relative; z-index: 2; }
.winebar-accent { color: #b34a2e; font-family: 'Dancing Script', cursive; font-size: 2rem; }

/* ==========================================================================
   FOOTER & MINIMALISTIČKI STICKY PANEL S GUMBIMA
   ========================================================================== */

.footer { 
    background-color: #0e2a3d; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cpath d='M0 180 Q100 150 200 180 T400 180' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3Cpath d='M0 100 Q100 70 200 100 T400 100' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    color: #f4ece1; 
    padding: 80px 0; 
    box-shadow: inset 0 10px 15px -10px rgba(0,0,0,0.5);
    width: 100%;
}

.sticky-reserve {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(14, 42, 61, 0.92); 
    backdrop-filter: blur(8px);
    padding: 10px 0; 
    z-index: 9998;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    width: 100%;
}

.reserve-btn {
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px; 
    transition: all 0.3s ease;
    background: transparent;
}

.btn-call { 
    border: 1px solid rgba(244, 236, 225, 0.4); 
    color: #f4ece1; 
}
.btn-call:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 236, 225, 0.8);
    color: white;
}

.btn-whatsapp { 
    border: 1px solid rgba(37, 211, 102, 0.4); 
    color: #f4ece1; 
}
.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.8);
    color: white;
}

.row { margin-right: 0; margin-left: 0; }
.container, .container-fluid { padding-right: 15px; padding-left: 15px; }

/* ==========================================================================
   ADMIN KONTROLE
   ========================================================================== */

#admin-panel { 
    background: #1e293b; 
    color: #f8fafc; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    margin-top: 50px; 
}

#admin-panel h5 { 
    color: #f1f5f9; 
    font-weight: 600; 
    border-bottom: 1px solid #334155; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}

.admin-thumb-container { 
    position: relative; 
    height: 100px; 
    overflow: hidden; 
    border-radius: 6px; 
    margin-bottom: 10px; 
}

.admin-thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.btn-delete-img { 
    position: absolute; 
    top: 5px; right: 5px; 
    background: rgba(239, 68, 68, 0.9); 
    color: white; 
    padding: 2px 6px; 
    font-size: 0.75rem; 
    border: none; 
    border-radius: 4px; 
    transition: background 0.2s;
    z-index: 20;
}

.btn-delete-img:hover { background: #ef4444; }

/* ==========================================================================
   FIKSNA GALERIJA: 2 REDA I FORMALNI 3:2 VODORAVNI FORMAT
   ========================================================================== */

.gallery-wrapper {
    max-height: 530px; 
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.gallery-wrapper.expanded {
    max-height: 6000px !important;
}

.gallery-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2 !important; 
    overflow: hidden;
    background-color: #eee;
}

.gallery-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
    transition: transform 0.4s ease;
}

.gallery-img-container:hover img {
    transform: scale(1.04);
}

@media (max-width: 767.98px) {
    .gallery-wrapper {
        max-height: 270px !important; 
    }
}

.btn-view-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    border: 1px solid #0e2a3d;
    color: #0e2a3d;
    background: transparent;
    padding: 11px 32px;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 25px;
}

.btn-view-more:hover {
    background: #0e2a3d;
    color: white;
}

/* ==========================================================================
   SIMETRIJA IZNAD GALERIJE (KONAČNO PORAVNANJE)
   ========================================================================== */

@media (min-width: 769px) {
    .custom-padding-img, 
    .order-md-2.custom-padding-img {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .custom-padding-text,
    .order-md-1.custom-padding-text {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.custom-padding-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ==========================================================================
   MINIMALISTIČKI SELEKTOR JEZIKA U NAVIGACIJI
   ========================================================================== */

.lang-selector {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.lang-link {
    color: #0e2a3d !important;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-link:hover {
    opacity: 0.9;
}

.lang-link.active {
    opacity: 1;
    font-weight: 600;
    color: #b34a2e !important;
}

.lang-divider {
    color: #0e2a3d;
    opacity: 0.2;
}

@media (min-width: 769px) {
    .border-start {
        border-left: 1px solid rgba(14, 42, 61, 0.15) !important;
    }
}

/* ==========================================================================
   EFEKT TEČNOG SKROLA (FADE-IN-UP)
   ========================================================================== */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-fade.appear {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade.scroll-delay {
    transition-delay: 0.15s;
}