/* =====================================================
   MAIN STYLES - Gastronomy Tourism Presentation
   ===================================================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-color: #2C3E50;
    --primary-light: #34495E;
    --primary-dark: #1A252F;
    
    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-gold-light: #F4D03F;
    --accent-red: #C0392B;
    --accent-green: #27AE60;
    --accent-blue: #3498DB;
    
    /* Croatia Colors */
    --croatia-red: #FF0000;
    --croatia-blue: #0000FF;
    --croatia-white: #FFFFFF;
    
    /* Russia Colors */
    --russia-red: #D52B1E;
    --russia-blue: #0039A6;
    --russia-white: #FFFFFF;
    
    /* Neutral Colors */
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A2E;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --text-muted: #7F8C8D;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #4CA1AF 100%);
    --gradient-warm: linear-gradient(135deg, #D4AF37 0%, #C0392B 100%);
    --gradient-cool: linear-gradient(135deg, #3498DB 0%, #2C3E50 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-loader: 500;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold);
}

/* Lists */
ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-accent {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-light);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.slide-counter {
    color: var(--text-light);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--bg-dark);
    z-index: var(--z-modal);
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.25rem;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background: var(--accent-red);
}

.slide-menu {
    list-style: none;
    margin: 0;
    padding: var(--spacing-md);
}

.slide-menu li {
    margin-bottom: var(--spacing-xs);
}

.slide-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.slide-menu a:hover,
.slide-menu a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-warm);
    width: 0%;
    transition: width var(--transition-normal);
}

/* Footer */
.presentation-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: var(--z-fixed);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-center {
    text-align: center;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-gold); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--primary-color); }
.bg-dark { background-color: var(--bg-dark); }
.bg-light { background-color: var(--bg-light); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Selection */
::selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ========== RESPONSIVE NAVIGATION ========== */
@media (max-width: 768px) {
    .main-nav {
        padding: 0 var(--spacing-md);
        height: 50px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        font-size: 1.75rem;
    }
    
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .slide-counter {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .sidebar-header {
        padding: var(--spacing-md);
    }
    
    .sidebar-header h3 {
        font-size: 1.1rem;
    }
    
    .slide-menu a {
        font-size: 0.85rem;
        padding: var(--spacing-sm);
    }
    
    .presentation-footer {
        height: 34px;
        font-size: 0.7rem;
        padding: 0 var(--spacing-md);
    }
    
    .footer-center {
        display: none;
    }
    
    .progress-bar {
        bottom: 34px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 0 var(--spacing-sm);
        height: 46px;
    }
    
    .nav-controls {
        gap: var(--spacing-sm);
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .slide-counter {
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    .presentation-footer {
        height: 30px;
        font-size: 0.65rem;
    }
    
    .footer-left, .footer-right {
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .progress-bar {
        bottom: 30px;
        height: 3px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .main-nav {
        height: 40px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .presentation-footer {
        height: 26px;
        font-size: 0.6rem;
    }
    
    .progress-bar {
        bottom: 26px;
        height: 2px;
    }
}

