/* Modern Dark Mode Theme for GOGS.nl */
/* Brand Colors: #e6a756 (gold), #08143a (dark blue) */

:root {
    --primary-gold: #e6a756;
    --primary-dark: #08143a;
    --dark-bg: #0a0f1f;
    --dark-surface: #141b2d;
    --dark-text: #e0e0e0;
    --dark-text-muted: #a0a0a0;
    --gold-hover: #d49645;
    --dark-border: #1e2a47;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    background-image: url('../img/BACKGROUND.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--dark-text);
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 15, 31, 0.85), rgba(8, 20, 58, 0.9));
    z-index: -1;
}

/* Navigation Styles */
.navbar {
    background-color: var(--dark-surface) !important;
    border-bottom: 2px solid var(--primary-gold);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    color: var(--primary-gold) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--gold-hover) !important;
    transform: scale(1.05);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(230, 167, 86, 0.3));
}

.navbar-toggler {
    border-color: var(--primary-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(230, 167, 86, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background-color: var(--dark-surface);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: var(--dark-text) !important;
    font-family: 'Audiowide', cursive;
    font-size: 1rem;
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-gold);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 167, 86, 0.3);
}

/* Dropdown Styles */
.dropdown-toggle {
    color: var(--primary-gold) !important;
    font-family: 'Audiowide', cursive;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: var(--primary-gold);
    color: var(--primary-dark) !important;
}

.dropdown-menu {
    background-color: var(--dark-surface);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
}

/* Top Header Bar - Time & Location Widget */
.top-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    background: rgba(8, 20, 58, 0.98);
    border-bottom: 1px solid rgba(230, 167, 86, 0.3);
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 0.9rem;
}

.top-header-bar .header-time {
    color: var(--primary-gold);
    font-family: 'Audiowide', cursive;
}

.top-header-bar .location-widget {
    margin: 0;
}

body.has-top-header {
    padding-top: 38px;
}

.navbar.fixed-top {
    top: 38px;
}

/* 3D Logo Spin Animation - index pages */
.site-heading-lower .logo-spin {
    animation: logo-spin-y 8s linear infinite;
    display: inline-block;
    transform-style: preserve-3d;
}

@keyframes logo-spin-y {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Site Heading */
.site-heading {
    margin: 2rem 0;
    padding: 1rem;
}

.site-heading-lower {
    font-family: 'Audiowide', cursive;
    font-size: 4rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-heading-lower img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(230, 167, 86, 0.4));
}

/* Section Styles */
.page-section {
    padding: 5rem 0;
    position: relative;
}

/* Section gradients for visual separation */
.page-section:nth-of-type(odd) {
    background: linear-gradient(180deg, rgba(10, 15, 31, 0.3) 0%, transparent 50%, rgba(8, 20, 58, 0.2) 100%);
}

.page-section:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(8, 20, 58, 0.2) 0%, transparent 50%, rgba(10, 15, 31, 0.3) 100%);
}

/* Location Widget */
.location-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-gold);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(230, 167, 86, 0.3);
    background: rgba(8, 20, 58, 0.5);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.location-widget.loading {
    opacity: 0.7;
    min-width: 120px;
}

.location-widget.error {
    opacity: 0.8;
}

/* AOS - Animate On Scroll overrides (800ms, subtle) */
[data-aos] {
    pointer-events: auto;
    will-change: transform;
    backface-visibility: hidden;
}

[data-aos="fade-up"] {
    transform: translateY(30px) translateZ(0);
}

.aos-animate[data-aos="fade-up"] {
    transform: translateY(0) translateZ(0);
}

.section-heading {
    font-family: 'Audiowide', cursive;
}

.section-heading-upper {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-heading-lower {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    text-transform: capitalize;
}

/* Intro Section */
.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.intro-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.intro-text {
    background-color: rgba(20, 27, 45, 0.95);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.intro-text p {
    color: var(--dark-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-dark);
    font-family: 'Audiowide', cursive;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(230, 167, 86, 0.3);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 167, 86, 0.4);
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(230, 167, 86, 0.95), rgba(212, 150, 69, 0.95));
    border-top: 3px solid var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
}

.cta-inner {
    background-color: rgba(20, 27, 45, 0.95);
    border: 2px solid var(--primary-gold);
    padding: 3.5rem 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cta-inner .section-heading-upper {
    color: var(--primary-gold);
}

.cta-inner .section-heading-lower {
    color: var(--dark-text);
}

.cta-inner p {
    color: var(--dark-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--dark-surface);
    border-top: 2px solid var(--primary-gold);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    color: var(--primary-gold);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Styles */
.form-control {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--dark-surface);
    border-color: var(--primary-gold);
    color: var(--dark-text);
    box-shadow: 0 0 0 0.2rem rgba(230, 167, 86, 0.25);
}

.form-control::placeholder {
    color: var(--dark-text-muted);
}

.input-group-text {
    background-color: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--primary-gold);
}

label {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.required-input {
    color: var(--primary-gold);
}

/* Modal Styles */
.modal-content {
    background-color: var(--dark-surface);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--dark-border);
}

.modal-title {
    color: var(--primary-gold);
    font-family: 'Audiowide', cursive;
}

.modal-body {
    color: var(--dark-text);
}

.close {
    color: var(--dark-text);
    opacity: 0.8;
}

.close:hover {
    color: var(--primary-gold);
    opacity: 1;
}

/* About Section */
.about-heading-img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bg-faded {
    background-color: rgba(20, 27, 45, 0.95) !important;
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Product Section */
.product-item {
    margin-bottom: 3rem;
}

/* Gallery Section */
.gallery-section .gallery-item {
    border: 2px solid var(--primary-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-section .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(230, 167, 86, 0.3);
}

.gallery-section .gallery-item img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item-img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    height: auto;
}

/* Contact Page Specific */
.jumbotron {
    background-color: transparent;
    padding: 1.5rem;
    border-radius: 8px;
}

.jumbotron a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.jumbotron a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

.static-map img {
    border-radius: 8px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .site-heading-lower {
        font-size: 2.5rem;
    }
    
    .site-heading-lower img {
        height: 50px;
    }
    
    .intro {
        flex-direction: column;
    }
    
    .intro-text {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .site-heading-lower {
        font-size: 2rem;
    }
    
    .section-heading-lower {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .location-widget {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .page-section {
        padding: 3.5rem 0;
    }
}

/* Utility Classes */
.text-gold {
    color: var(--primary-gold) !important;
}

.bg-dark-surface {
    background-color: var(--dark-surface) !important;
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

/* 3D Vrtnja Logotipa */
.logo-3d-spin {
    animation: spin3D 8s linear infinite;
    perspective: 1000px;
    display: inline-block;
}

@keyframes spin3D {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Poboljšanje sjene i kontrasta za logo */
.logo-3d-spin:hover {
    animation-play-state: paused; /* Vrtnja stane kad se pređe mišem */
    filter: drop-shadow(0 0 10px #e6a756);
    transition: filter 0.3s ease;
}/* Animacija za rotaciju loga */
.logo-spin, .logo-3d-spin {
    animation: spin3D 10s linear infinite;
    display: inline-block;
    perspective: 1000px;
}

@keyframes spin3D {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Dodatni efekt sjaja dok se vrti (opcionalno) */
.logo-spin:hover {
    filter: drop-shadow(0 0 10px #e6a756);
    transition: filter 0.3s ease;
}
/* Osigurava da modal ne blokira interakciju */
.modal-open {
    overflow: hidden;
}
.modal {
    background: rgba(0, 0, 0, 0.5); /* Lagano zatamnjenje pozadine */
}
.modal-backdrop {
    display: none !important; /* Ovo rješava "zaleđeni" ekran u 99% slučajeva */
}
#contactModal {
    pointer-events: auto !important;
}
/* Prisilno dopuštanje klikova unutar modala */
.modal-backdrop {
    display: none !important;
}
.modal {
    background: rgba(0, 0, 0, 0.7);
    pointer-events: auto !important;
}
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}