﻿/* ═══════════════════════════════════════════════════════════════════════════
   GASTRO MAPA — Master CSS
   Autor: GastroMapa Dev Team
   Opis: Kompletan custom CSS za sve stranice aplikacije
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. CSS VARIJABLE (Design Tokens) ─────────────────────────────────── */
:root {
    /* Primarne boje */
    --gm-primary: #FF4757; /* Gastro crvena */
    --gm-primary-dark: #CC0000;
    --gm-primary-light: #FF8FAB;
    --gm-secondary: #2ED573; /* Sveža zelena */
    --gm-accent: #FFD700; /* Zlatna (VIP) */
    --gm-accent-dark: #FFA500;
    /* Neutralne boje */
    --gm-dark: #0D0D0D;
    --gm-dark-2: #1A1A2E;
    --gm-dark-3: #16213E;
    --gm-card-bg: #1E1E2E;
    --gm-border: rgba(255, 255, 255, 0.08);
    --gm-text: #E8E8F0;
    --gm-text-muted: #8B8BA7;
    /* Nav pozadina (tema-aware) */
    --gm-nav-bg: rgba(13, 13, 13, 0.85);
    --gm-nav-bg-scrolled: rgba(13, 13, 13, 0.97);
    /* Svetli mod */
    --gm-light-bg: #F8F9FA;
    --gm-light-card: #FFFFFF;
    --gm-light-border: #E9ECEF;
    /* Tipografija */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    /* Senke */
    --gm-shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --gm-shadow-md: 0 8px 32px rgba(0,0,0,0.25);
    --gm-shadow-lg: 0 16px 64px rgba(0,0,0,0.35);
    --gm-shadow-glow: 0 0 32px rgba(255, 71, 87, 0.3);
    /* Radijusi */
    --gm-radius-sm: 8px;
    --gm-radius-md: 16px;
    --gm-radius-lg: 24px;
    --gm-radius-xl: 32px;
    --gm-radius-pill: 999px;
    /* Tranzicije */
    --gm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gm-transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Nav visina */
    --nav-height: 72px;
}

/* ─── LIGHT MODE OVERRIDES ──────────────────────────────────────────────── */
html[data-theme="light"] {
    --gm-dark: #F4F5F7;
    --gm-dark-2: #FFFFFF;
    --gm-dark-3: #EAECEF;
    --gm-card-bg: #FFFFFF;
    --gm-border: rgba(0, 0, 0, 0.09);
    --gm-text: #1A1A2E;
    --gm-text-muted: #5C6370;
    --gm-nav-bg: rgba(255, 255, 255, 0.88);
    --gm-nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --gm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --gm-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
    --gm-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.14);
    --gm-shadow-glow: 0 0 32px rgba(255, 71, 87, 0.18);
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.gastro-body {
    font-family: var(--font-body);
    background-color: var(--gm-dark);
    color: var(--gm-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── 3. NAVIGACIJA ─────────────────────────────────────────────────────── */
.gastro-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--gm-nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gm-border);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .gastro-nav.scrolled {
        background: var(--gm-nav-bg-scrolled);
        box-shadow: var(--gm-shadow-md);
    }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 24px;
}

/* Logo */
.gastro-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gm-text);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
}

.gastro-logo strong {
    color: var(--gm-primary);
}

/* Nav linkovi */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--gm-radius-pill);
    color: var(--gm-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--gm-transition);
    position: relative;
    text-decoration: none;
}

    .nav-link-item:hover,
    .nav-link-item.active {
        color: var(--gm-text);
        background: rgba(255, 71, 87, 0.12);
    }

    .nav-link-item.active {
        color: var(--gm-primary);
    }

.nav-badge {
    background: var(--gm-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--gm-radius-pill);
    letter-spacing: 0.05em;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Nav desni deo */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-btn-ghost {
    padding: 8px 20px;
    border-radius: var(--gm-radius-pill);
    border: 1px solid var(--gm-border);
    color: var(--gm-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--gm-transition);
    cursor: pointer;
    background: transparent;
    text-decoration: none;
}

    .nav-btn-ghost:hover {
        border-color: var(--gm-primary);
        color: var(--gm-primary);
    }

.nav-btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--gm-radius-pill);
    background: linear-gradient(135deg, var(--gm-primary), var(--gm-accent-dark));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--gm-transition-bounce);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.3);
}

    .nav-btn-primary:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 8px 24px rgba(255, 71, 87, 0.45);
    }

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gm-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px 5px 5px;
    border-radius: 50px;
    transition: background 0.2s ease;
}

    .nav-avatar-btn:hover {
        background: rgba(255, 255, 255, 0.07);
    }

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gm-primary), var(--gm-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .nav-avatar-btn:hover .nav-avatar {
        transform: scale(1.06);
        box-shadow: 0 4px 14px rgba(255, 71, 87, 0.5);
    }

.nav-username {
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Theme toggle */
.nav-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gm-text-muted);
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.35s ease;
    flex-shrink: 0;
}

    .nav-theme-toggle:hover {
        background: rgba(255, 71, 87, 0.10);
        color: var(--gm-primary);
        transform: rotate(22deg) scale(1.1);
    }

.theme-icon-dark {
    display: none;
}

html[data-theme="light"] .theme-icon-light {
    display: none;
}

html[data-theme="light"] .theme-icon-dark {
    display: block;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gm-text);
        border-radius: 2px;
        transition: var(--gm-transition);
    }

/* ─── 4. MAIN CONTENT AREA ──────────────────────────────────────────────── */
.gastro-main {
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

/* ─── 5. KARTICE (Universal Card System) ────────────────────────────────── */
.gm-card {
    background: var(--gm-card-bg);
    border-radius: var(--gm-radius-lg);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    transition: var(--gm-transition);
    position: relative;
}

    .gm-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--gm-shadow-lg);
        border-color: rgba(255, 71, 87, 0.2);
    }

.gm-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gm-card:hover .gm-card-image {
    transform: scale(1.05);
}

.gm-card-body {
    padding: 20px;
}

.gm-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-text);
    margin-bottom: 6px;
}

.gm-card-subtitle {
    color: var(--gm-text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* Kategorija badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--gm-radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cat-restaurant {
    background: rgba(255, 71, 87, 0.15);
    color: var(--gm-primary);
}

.cat-cafe {
    background: rgba(139, 69, 19, 0.2);
    color: #CD853F;
}

.cat-bar {
    background: rgba(46, 213, 115, 0.15);
    color: var(--gm-secondary);
}

.cat-fastfood {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gm-accent);
}

.cat-bakery {
    background: rgba(255, 143, 171, 0.15);
    color: var(--gm-primary-light);
}

/* Rating prikaz */
.gm-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .gm-rating .stars {
        color: var(--gm-accent);
        font-size: 0.85rem;
    }

    .gm-rating .score {
        font-weight: 700;
        color: var(--gm-accent);
        font-size: 0.95rem;
    }

    .gm-rating .count {
        color: var(--gm-text-muted);
        font-size: 0.8rem;
    }

/* Tag ikone */
.venue-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.venue-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--gm-radius-pill);
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    border: 1px solid var(--gm-border);
}

/* ─── 6. DUGMAD ─────────────────────────────────────────────────────────── */
.btn-gastro-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gm-primary), #ff6b35);
    color: white;
    border: none;
    border-radius: var(--gm-radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gm-transition-bounce);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.35);
    text-decoration: none;
}

    .btn-gastro-primary:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
        color: white;
    }

    .btn-gastro-primary:active {
        transform: scale(0.97);
    }

.btn-gastro-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: transparent;
    color: var(--gm-text);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gm-transition);
    text-decoration: none;
}

    .btn-gastro-secondary:hover {
        border-color: var(--gm-primary);
        color: var(--gm-primary);
        background: rgba(255, 71, 87, 0.05);
    }

.btn-gastro-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gm-accent), var(--gm-accent-dark));
    color: #0D0D0D;
    border: none;
    border-radius: var(--gm-radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--gm-transition-bounce);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

    .btn-gastro-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
        color: #0D0D0D;
    }

/* ─── BOOTSTRAP MODAL — DARK THEME OVERRIDE ─────────────────────────────── */
.modal-content {
    background: var(--gm-card-bg);
    color: var(--gm-text);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-lg);
}

.modal-header {
    border-bottom-color: var(--gm-border);
}

.modal-footer {
    border-top-color: var(--gm-border);
}

.modal-title {
    color: var(--gm-text);
    font-weight: 700;
}

.modal-backdrop {
    --bs-backdrop-opacity: 0.6;
}

/* ─── GM BUTTON SYSTEM (admin/owner/profil stranice) ────────────────────── */
.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--gm-radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gm-transition);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: var(--font-body);
}

.gm-btn-primary {
    background: linear-gradient(135deg, var(--gm-primary), #ff6b35);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.3);
}

    .gm-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(255, 71, 87, 0.45);
        color: #fff !important;
    }

.gm-btn-secondary {
    background: transparent;
    color: var(--gm-text);
    border-color: var(--gm-border);
}

    .gm-btn-secondary:hover {
        border-color: var(--gm-primary);
        color: var(--gm-primary);
        background: rgba(255, 71, 87, 0.05);
    }

.gm-btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* FAB (Floating Action Button) */
.gm-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gm-primary), var(--gm-accent-dark));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.5);
    transition: var(--gm-transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    text-decoration: none;
}

    .gm-fab:hover {
        transform: scale(1.15) rotate(90deg);
        box-shadow: 0 12px 40px rgba(255, 71, 87, 0.6);
        color: white;
    }

/* ─── 7. LIKE / HEART ANIMACIJA ─────────────────────────────────────────── */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gm-text-muted);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--gm-radius-pill);
    transition: var(--gm-transition);
}

    .like-btn:hover {
        color: var(--gm-primary);
        background: rgba(255,71,87,0.08);
    }

    .like-btn.liked {
        color: var(--gm-primary);
    }

    .like-btn .heart-icon {
        display: inline-block;
        transition: var(--gm-transition-bounce);
    }

    .like-btn.liked .heart-icon {
        animation: heartBeat 0.4s var(--gm-transition-bounce);
    }

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* ─── 8. HAPPY HOUR BANNER ──────────────────────────────────────────────── */
.happy-hour-bar {
    background: linear-gradient(135deg, #FF4757, #CC0000);
    color: white;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

    .happy-hour-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        animation: shimmer-hh 2.5s infinite;
    }

@keyframes shimmer-hh {
    from {
        left: -100%;
    }

    to {
        left: 200%;
    }
}

.happy-hour-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.happy-hour-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    background: rgba(0,0,0,0.3);
    padding: 4px 16px;
    border-radius: var(--gm-radius-sm);
    letter-spacing: 0.1em;
}

/* ─── 9. GASTRO METAR (Progress Bars) ──────────────────────────────────── */
.gastro-metar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metar-item label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.metar-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--gm-radius-pill);
    overflow: hidden;
}

.metar-bar-fill {
    height: 100%;
    border-radius: var(--gm-radius-pill);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%; /* Animira se JS-om */
}

.metar-noise .metar-bar-fill {
    background: linear-gradient(90deg, #FF6B35, #FF4757);
}

.metar-light .metar-bar-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.metar-portion .metar-bar-fill {
    background: linear-gradient(90deg, #2ED573, #00C851);
}

/* ─── 10. GASTRO ZID (Sticky Notes) ────────────────────────────────────── */
.gastro-wall {
    background: linear-gradient(rgba(100,60,20,0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(100,60,20,0.15) 1px, transparent 1px), #2C1810;
    background-size: 40px 40px, 40px 40px;
    border-radius: var(--gm-radius-lg);
    padding: 32px;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

    .gastro-wall::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at top left, rgba(139,69,19,0.3) 0%, transparent 60%);
        pointer-events: none;
    }

.wall-notes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.sticky-note {
    width: 160px;
    min-height: 130px;
    padding: 14px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.5;
    box-shadow: 3px 4px 12px rgba(0,0,0,0.4), inset 0 -2px 4px rgba(0,0,0,0.1);
    transition: var(--gm-transition-bounce);
    cursor: default;
    position: relative;
}

    .sticky-note::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 8px;
        background: rgba(0,0,0,0.2);
        border-radius: 0 0 4px 4px;
    }

    .sticky-note:hover {
        transform: scale(1.08) rotate(0deg) !important;
        z-index: 10;
        box-shadow: 5px 8px 24px rgba(0,0,0,0.6);
    }

    .sticky-note .note-author {
        font-weight: 700;
        margin-bottom: 6px;
        font-size: 0.72rem;
        opacity: 0.8;
        color: rgba(0,0,0,0.6);
    }

    .sticky-note .note-text {
        color: rgba(0,0,0,0.75);
    }

/* Add Note forma */
.wall-add-note {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* ─── 11. OFFER / KUPON KARTICE ─────────────────────────────────────────── */
.offer-card {
    background: var(--gm-card-bg);
    border-radius: var(--gm-radius-lg);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    transition: var(--gm-transition);
    position: relative;
}

    .offer-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(255,71,87,0.2);
        border-color: rgba(255,71,87,0.3);
    }

/* Tip oznaka */
.offer-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: var(--gm-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.type-discount {
    background: var(--gm-primary);
    color: white;
}

.type-buyonegetone {
    background: var(--gm-secondary);
    color: #0D0D0D;
}

.type-happyhour {
    background: var(--gm-accent);
    color: #0D0D0D;
}

.type-exclusive {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Progres preostale količine */
.offer-quantity-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--gm-radius-pill);
    overflow: hidden;
    margin: 12px 0 4px;
}

html[data-theme="light"] .offer-quantity-bar {
    background: rgba(0, 0, 0, 0.1);
}

.offer-quantity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gm-secondary), #00C851);
    border-radius: var(--gm-radius-pill);
    transition: width 1s ease;
}

/* Tajmer na kartici */
.offer-timer {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gm-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .offer-timer.urgent {
        animation: flicker 1s infinite;
    }

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ─── 12. QR KOD MODAL ──────────────────────────────────────────────────── */
.qr-modal-content {
    text-align: center;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: var(--gm-radius-md);
    display: inline-block;
    margin: 16px 0;
}

.qr-coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: rgba(255,71,87,0.1);
    border: 1px dashed var(--gm-primary);
    border-radius: var(--gm-radius-sm);
    padding: 10px 20px;
    color: var(--gm-primary);
    display: inline-block;
    margin: 12px 0;
}

/* ─── 13. VIP KARTICA ANIMACIJA ─────────────────────────────────────────── */
@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(-90deg) scale(0.5);
    }

    60% {
        opacity: 1;
        transform: perspective(600px) rotateY(10deg) scale(1.05);
    }

    80% {
        transform: perspective(600px) rotateY(-5deg) scale(1);
    }

    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg) scale(1);
    }
}

.vip-card {
    width: 340px;
    height: 210px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,215,0,0.15);
    animation: cardReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 1px solid rgba(255,215,0,0.2);
}

    .vip-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(ellipse at center, rgba(255,215,0,0.06) 0%, transparent 70%);
        animation: cardGlow 3s ease-in-out infinite alternate;
    }

@keyframes cardGlow {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.vip-card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 6px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

    .vip-card-chip::before {
        content: '';
        position: absolute;
        inset: 4px;
        border: 1px solid rgba(0,0,0,0.2);
        border-radius: 3px;
    }

.vip-card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(255,215,0,0.9);
    font-weight: 700;
}

.vip-card-number {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.vip-card-holder {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.vip-card-subtitle {
    font-size: 0.65rem;
    color: rgba(255,215,0,0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 2px;
}

/* ─── 14. COMMUNITY POST FEED ───────────────────────────────────────────── */
.community-post {
    background: var(--gm-card-bg);
    border-radius: var(--gm-radius-lg);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    transition: var(--gm-transition);
    margin-bottom: 24px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 12px;
    position: relative;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gm-primary), var(--gm-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
}

.post-username {
    font-weight: 600;
    font-size: 0.9rem;
}

.post-time {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

/* Instagram-stil slajder */
.post-slider {
    position: relative;
    overflow: hidden;
}

.post-slides {
    display: flex;
    transition: transform 0.4s ease;
}

.post-slide {
    min-width: 100%;
    aspect-ratio: 4/3;
    background: #111;
}

    .post-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: var(--gm-transition);
    cursor: pointer;
}

    .slider-dot.active {
        background: white;
        transform: scale(1.3);
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--gm-transition);
    z-index: 2;
}

    .slider-arrow:hover {
        background: rgba(0,0,0,0.8);
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--gm-border);
}

.post-actions-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-actions-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Report dugme — hover-reveal u headeru posta */
.post-report-hover {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    transition: color 0.2s, opacity 0.2s, background 0.2s;
    opacity: 0;
    border-radius: 6px;
    line-height: 1;
}

.community-post:hover .post-report-hover {
    opacity: 1;
}

@media (hover: none) {
    .post-report-hover { opacity: 0.3; }
}

.post-report-hover:hover {
    color: rgba(255,71,87,0.8) !important;
    background: rgba(255,71,87,0.08);
}

.post-report-hover.reported {
    opacity: 1 !important;
    color: rgba(255,71,87,0.4) !important;
    cursor: default;
}

/* Share dugme */
.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gm-text-muted);
    font-size: 1rem;
    transition: var(--gm-transition-bounce);
    padding: 6px 7px;
    display: flex;
    align-items: center;
    border-radius: 6px;
}

.share-btn:hover {
    color: var(--gm-primary);
    transform: scale(1.15);
}

.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gm-text-muted);
    font-size: 1.1rem;
    transition: var(--gm-transition-bounce);
    padding: 6px 7px;
}

    .bookmark-btn:hover {
        color: var(--gm-accent);
        transform: scale(1.2);
    }

    .bookmark-btn.saved {
        color: var(--gm-accent);
    }

/* Featured post (deep link share) */
.post-featured {
    border-color: var(--gm-primary) !important;
    box-shadow: 0 0 0 2px rgba(255,71,87,0.15), 0 8px 32px rgba(255,71,87,0.1);
}

.post-featured-badge {
    background: linear-gradient(90deg, var(--gm-primary), var(--gm-accent-dark, #cc3344));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 14px;
    letter-spacing: 0.5px;
    display: block;
    border-radius: 0 0 10px 0;
    width: fit-content;
}

/* ─── 15. MAPA STRANICA ─────────────────────────────────────────────────── */
.map-page {
    height: calc(100vh - var(--nav-height));
    display: flex;
    overflow: hidden;
}

/* TikTok Feed */
.tiktok-feed {
    width: 380px;
    min-width: 380px;
    height: 100%;
    overflow-y: auto;
    background: var(--gm-dark-2);
    border-right: 1px solid var(--gm-border);
    scrollbar-width: thin;
    scrollbar-color: var(--gm-primary) transparent;
}

.tiktok-feed-header {
    padding: 20px 16px 12px;
    position: sticky;
    top: 0;
    background: var(--gm-dark-2);
    z-index: 10;
    border-bottom: 1px solid var(--gm-border);
}

.tiktok-video-item {
    position: relative;
    aspect-ratio: 9/16;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    transition: var(--gm-transition);
}

    .tiktok-video-item:hover .tt-play-overlay {
        opacity: 1;
    }

.tt-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--gm-transition);
    font-size: 3rem;
    color: white;
}

.tt-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.tt-venue {
    font-weight: 700;
    font-size: 0.95rem;
}

.tt-influencer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Leaflet mapa */
.map-container {
    flex: 1;
    position: relative;
    z-index: 1; /* kreira stacking context — izoluje Leaflet panes od spoljnih elemenata */
}

#leafletMap {
    width: 100%;
    height: 100%;
}

/* Gastro Rulet btn */
.rulet-btn {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, var(--gm-primary), #ff6b35);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--gm-radius-pill);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255,71,87,0.5);
    transition: var(--gm-transition-bounce);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .rulet-btn:hover {
        transform: translateX(-50%) translateY(-4px) scale(1.05);
        box-shadow: 0 12px 40px rgba(255,71,87,0.7);
    }

/* Mapa filteri */
.map-filters {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.map-filter-btn {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #444;
    padding: 7px 16px;
    border-radius: var(--gm-radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gm-transition);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

    .map-filter-btn:hover {
        background: rgba(255, 255, 255, 0.98);
        border-color: var(--gm-primary);
        color: var(--gm-primary);
        box-shadow: 0 4px 16px rgba(255, 71, 87, 0.2);
    }

    .map-filter-btn.active {
        background: var(--gm-primary);
        border-color: var(--gm-primary);
        color: white;
        box-shadow: 0 4px 16px rgba(255, 71, 87, 0.4);
    }

/* Locate dugme — gore desno */
.map-locate-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #444;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    transition: all 0.2s ease;
}

    .map-locate-btn:hover {
        background: var(--gm-primary);
        border-color: var(--gm-primary);
        color: #fff;
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
    }

    .map-locate-btn.locating {
        border-color: var(--gm-primary);
        color: var(--gm-primary);
        animation: locate-pulse 1.2s ease-in-out infinite;
    }

@keyframes locate-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
}

/* Zoom kontrole — dole desno */
.map-zoom-controls {
    position: absolute;
    bottom: 88px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.map-zoom-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-bottom: none;
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}

    .map-zoom-btn:last-child {
        border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    }

    .map-zoom-btn:hover {
        background: var(--gm-primary);
        color: #fff;
        border-color: var(--gm-primary);
    }

/* Leaflet-ov default zoom sakriti */
.leaflet-control-zoom {
    display: none !important;
}

/* ─── 16. TAJNI MENI (Easter Egg) ───────────────────────────────────────── */
.secret-key {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--gm-transition);
    opacity: 0.3;
    z-index: 400;
}

    .secret-key:hover {
        opacity: 1;
        background: rgba(255,215,0,0.15);
        transform: scale(1.1) rotate(-15deg);
        border-color: var(--gm-accent);
    }

/* ─── 17. GASTRO PASOŠ (Bedževi) ───────────────────────────────────────── */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: var(--gm-transition-bounce);
}

.badge-item:hover .badge-icon {
    transform: scale(1.15) rotate(-5deg);
}

.badge-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gm-text-muted);
}

/* ─── 18. ADMIN PANEL ───────────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--gm-dark-2);
    border-right: 1px solid var(--gm-border);
    padding: 24px 0;
}

.admin-sidebar-title {
    padding: 0 20px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gm-text-muted);
    border-bottom: 1px solid var(--gm-border);
    margin-bottom: 8px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--gm-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--gm-transition);
    border-left: 3px solid transparent;
}

    .admin-nav-item:hover,
    .admin-nav-item.active {
        background: rgba(255,71,87,0.08);
        color: var(--gm-primary);
        border-left-color: var(--gm-primary);
    }

.admin-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* Live Preview split */
.admin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.preview-pane {
    position: sticky;
    top: 100px;
    background: var(--gm-card-bg);
    border-radius: var(--gm-radius-lg);
    border: 1px solid var(--gm-border);
    padding: 24px;
}

/* ─── 19. FORM ELEMENTI ─────────────────────────────────────────────────── */
.gm-form-group {
    margin-bottom: 20px;
}

.gm-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gm-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gm-input, .gm-textarea, .gm-select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 12px 16px;
    color: var(--gm-text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--gm-transition);
    outline: none;
}

    .gm-input:focus, .gm-textarea:focus, .gm-select:focus {
        border-color: var(--gm-primary);
        background: rgba(255,71,87,0.04);
        box-shadow: 0 0 0 3px rgba(255,71,87,0.1);
    }

.gm-textarea {
    resize: vertical;
    min-height: 100px;
}

select.gm-input,
.gm-select {
    background: var(--gm-dark-2);
    cursor: pointer;
}

select.gm-input option,
.gm-select option {
    background: var(--gm-dark-2);
    color: var(--gm-text);
}

html[data-theme="light"] select.gm-input,
html[data-theme="light"] .gm-select {
    background: var(--gm-light-card);
}

html[data-theme="light"] select.gm-input option,
html[data-theme="light"] .gm-select option {
    background: var(--gm-light-card);
    color: #1A1A2E;
}

/* ─── 20. COMING SOON PAGE ──────────────────────────────────────────────── */
.coming-soon-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,71,87,0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(255,215,0,0.1) 0%, transparent 40%), var(--gm-dark);
    text-align: center;
    padding: 40px 20px;
    padding-top: calc(var(--nav-height) + 40px);
}

.coming-soon-logo {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
}

    .coming-soon-logo .accent {
        color: var(--gm-primary);
    }

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gm-card-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    padding: 20px 24px;
    min-width: 90px;
}

.countdown-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gm-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gm-text-muted);
    margin-top: 4px;
}

/* Email forma */
.email-form {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
    gap: 0;
    background: var(--gm-card-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-pill);
    padding: 6px;
    transition: var(--gm-transition);
}

    .email-form:focus-within {
        border-color: var(--gm-primary);
        box-shadow: 0 0 0 3px rgba(255,71,87,0.12);
    }

    .email-form input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        padding: 10px 16px;
        color: var(--gm-text);
        font-size: 0.9rem;
    }

    .email-form button {
        background: var(--gm-primary);
        color: white;
        border: none;
        border-radius: var(--gm-radius-pill);
        padding: 10px 22px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--gm-transition);
        white-space: nowrap;
    }

        .email-form button:hover {
            background: var(--gm-primary-dark);
        }

/* ─── 21. LOGIN/REGISTER PAGE ───────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: var(--nav-height);
}

.auth-left {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-left-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,71,87,0.5) 0%, rgba(13,13,13,0.7) 100%);
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--gm-dark-2);
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--gm-text-muted);
    margin-bottom: 32px;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gm-card-bg);
    border-radius: var(--gm-radius-md);
    padding: 16px;
    border: 1px solid var(--gm-border);
    margin-bottom: 24px;
}

.social-proof-avatars {
    display: flex;
}

.sp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gm-dark-2);
    margin-left: -8px;
    background: linear-gradient(135deg, var(--gm-primary), var(--gm-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

    .sp-avatar:first-child {
        margin-left: 0;
    }

/* ─── 22. SEKCIJA NASLOVI ───────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gm-text);
}

    .section-title .accent {
        color: var(--gm-primary);
    }

.section-line {
    flex: 1;
    height: 1px;
    background: var(--gm-border);
}

.section-count {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    background: rgba(255,255,255,0.04);
    padding: 3px 10px;
    border-radius: var(--gm-radius-pill);
    border: 1px solid var(--gm-border);
}

/* ─── 23. LEAFLET CUSTOM STILOVI ────────────────────────────────────────── */
.leaflet-container {
    background: #1a1a2e !important;
}

.gm-map-popup .leaflet-popup-content-wrapper {
    background: var(--gm-card-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    box-shadow: var(--gm-shadow-lg);
    color: var(--gm-text);
}

.gm-map-popup .leaflet-popup-tip {
    background: var(--gm-card-bg);
}

.map-popup-content {
    padding: 4px;
    min-width: 180px;
}

.map-popup-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.map-popup-addr {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    margin-bottom: 10px;
}

.map-popup-link {
    display: inline-block;
    background: var(--gm-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--gm-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gm-transition);
}

    .map-popup-link:hover {
        background: var(--gm-primary-dark);
        color: white;
    }

/* ─── 24. SCROLL BAR CUSTOM ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,71,87,0.3);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gm-primary);
    }

/* ─── 25. RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .map-page {
        flex-direction: column;
        height: auto;
    }

    .tiktok-feed {
        width: 100%;
        min-width: 0;
        height: 200px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    /* flex: none sprečava flex-basis:0 da poništi height, calc daje Leaflet-u definitnu visinu */
    .map-container {
        flex: none;
        height: calc(100vh - var(--nav-height) - 200px);
        min-height: 260px;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .admin-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .admin-sidebar {
        display: none;
    }

    .gm-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .wall-notes-grid {
        justify-content: center;
    }

    .sticky-note {
        width: 140px;
    }

    .countdown-grid {
        gap: 8px;
    }

    .countdown-unit {
        padding: 14px 16px;
        min-width: 70px;
    }

    .countdown-num {
        font-size: 2rem;
    }

    .admin-content {
        padding: 16px;
    }
}

/* ─── ADMIN TABELA ──────────────────────────────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

    .admin-table thead tr {
        background: rgba(255,255,255,0.03);
        border-bottom: 1px solid var(--gm-border);
    }

    .admin-table th {
        padding: 12px 16px;
        text-align: left;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--gm-text-muted);
        white-space: nowrap;
    }

    .admin-table td {
        padding: 14px 16px;
        border-bottom: 1px solid var(--gm-border);
        vertical-align: middle;
    }

    .admin-table tbody tr {
        transition: var(--gm-transition);
    }

        .admin-table tbody tr:hover {
            background: rgba(255,255,255,0.02);
        }

        .admin-table tbody tr:last-child td {
            border-bottom: none;
        }


/* ─── BADGE KOLEKCIJA ───────────────────────────────────────────────────── */
.badge-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.badge-collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    cursor: pointer;
    transition: var(--gm-transition-bounce);
}

    .badge-collection-item:hover {
        transform: translateY(-4px) scale(1.05);
    }

.badge-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--gm-transition);
}

.badge-lock-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.85rem;
    background: var(--gm-card-bg);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gm-border);
}

.badge-name-label {
    font-size: 0.72rem;
    font-weight: 600;
    max-width: 90px;
    line-height: 1.3;
}

.badge-collection-item.locked .badge-icon-wrap {
    filter: saturate(0);
}

/* ─── NAV DROPDOWN ──────────────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.nav-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background: rgba(20, 20, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    padding: 6px;
    list-style: none;
    margin: 0;
    box-shadow: var(--gm-shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .nav-dropdown-menu.nav-dropdown-right {
        left: auto;
        right: 0;
    }

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--gm-radius-sm);
    color: var(--gm-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--gm-transition);
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

    .nav-dropdown-item:hover {
        background: rgba(255, 71, 87, 0.1);
        color: var(--gm-text);
    }

    .nav-dropdown-item i {
        width: 16px;
        text-align: center;
    }

.nav-dropdown-header {
    padding: 10px 12px 6px;
}

.nav-dropdown-divider {
    border: none;
    border-top: 1px solid var(--gm-border);
    margin: 4px 6px;
}

/* ─── MOBILE NAV ────────────────────────────────────────────────────────── */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gm-border);
    z-index: 999;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

    .nav-mobile.open {
        display: block;
        transform: translateY(0);
    }

.nav-mobile-inner {
    padding: 12px 16px 24px;
}

.nav-mobile-item {
    display: block;
    padding: 12px 16px;
    color: var(--gm-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--gm-radius-sm);
    text-decoration: none;
    transition: var(--gm-transition);
}

    .nav-mobile-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--gm-text);
    }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.gm-footer {
    background: var(--gm-dark-2);
    border-top: 1px solid var(--gm-border);
    position: relative;
}

.gm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gm-primary) 0%, var(--gm-accent-dark) 50%, var(--gm-secondary) 100%);
}

.gm-footer-top {
    padding: 64px 0 48px;
}

/* Brand */
.gm-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--gm-text);
    text-decoration: none;
    margin-bottom: 14px;
}

    .gm-footer-logo strong {
        color: var(--gm-primary);
    }

    .gm-footer-logo .logo-emoji {
        font-size: 1.6rem;
    }

.gm-footer-desc {
    font-size: 0.875rem;
    color: var(--gm-text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 300px;
}

/* Social icons */
.gm-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gm-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gm-text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .gm-social-btn:hover {
        border-color: var(--gm-primary);
        background: var(--gm-primary);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 71, 87, 0.35);
    }

/* Column headings */
.gm-footer-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gm-text-muted);
    margin-bottom: 20px;
}

/* Link lists */
.gm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

    .gm-footer-links a {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 0.875rem;
        color: var(--gm-text-muted);
        text-decoration: none;
        transition: color 0.2s ease, gap 0.2s ease;
    }

        .gm-footer-links a i {
            font-size: 0.78rem;
            width: 14px;
            text-align: center;
            opacity: 0.55;
            flex-shrink: 0;
            transition: opacity 0.2s, color 0.2s;
        }

        .gm-footer-links a:hover {
            color: var(--gm-text);
            gap: 13px;
        }

            .gm-footer-links a:hover i {
                opacity: 1;
                color: var(--gm-primary);
            }

/* Newsletter */
.gm-footer-newsletter-text {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.gm-newsletter-form {
    margin-bottom: 20px;
}

.gm-newsletter-row {
    display: flex;
    background: var(--gm-dark-3);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-pill);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

    .gm-newsletter-row:focus-within {
        border-color: var(--gm-primary);
    }

.gm-newsletter-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 11px 18px;
    font-size: 0.875rem;
    color: var(--gm-text);
    font-family: var(--font-body);
    min-width: 0;
}

    .gm-newsletter-input::placeholder {
        color: var(--gm-text-muted);
    }

.gm-newsletter-btn {
    background: var(--gm-primary);
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 0 20px;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

    .gm-newsletter-btn:hover {
        background: var(--gm-primary-dark);
    }

/* Owner highlight box */
.gm-footer-owner-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 71, 87, 0.06);
    border: 1px solid rgba(255, 71, 87, 0.18);
    border-radius: var(--gm-radius-md);
    padding: 14px 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .gm-footer-owner-box:hover {
        background: rgba(255, 71, 87, 0.1);
        border-color: rgba(255, 71, 87, 0.3);
    }

    .gm-footer-owner-box > i {
        font-size: 1.4rem;
        color: var(--gm-primary);
        flex-shrink: 0;
    }

    .gm-footer-owner-box strong {
        display: block;
        font-size: 0.85rem;
        color: var(--gm-text);
        margin-bottom: 3px;
    }

    .gm-footer-owner-box a {
        font-size: 0.8rem;
        color: var(--gm-primary);
        text-decoration: none;
        font-weight: 600;
    }

        .gm-footer-owner-box a:hover {
            text-decoration: underline;
        }

/* Bottom bar */
.gm-footer-bottom {
    border-top: 1px solid var(--gm-border);
    padding: 22px 0;
}

.gm-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.gm-footer-copy {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    margin: 0;
}

.gm-footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .gm-footer-legal a {
        font-size: 0.8rem;
        color: var(--gm-text-muted);
        text-decoration: none;
        transition: color 0.2s;
    }

        .gm-footer-legal a:hover {
            color: var(--gm-primary);
        }

/* Light mode adjustments */
html[data-theme="light"] .gm-newsletter-row {
    background: var(--gm-light-bg);
}

html[data-theme="light"] .gm-footer-owner-box {
    background: rgba(255, 71, 87, 0.04);
}

/* Responsive */
@media (max-width: 767px) {
    .gm-footer-top {
        padding: 48px 0 32px;
    }

    .gm-footer-desc {
        max-width: 100%;
    }

    .gm-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .gm-footer-legal {
        justify-content: center;
    }
}