/* =====================================================================
   MojaKafa — Design tokens
   ===================================================================== */
:root {
    /* Boje */
    --color-bg: #FAF6F0;
    --color-bg-alt: #F1E7D8;
    --color-surface: #FFFFFF;
    --color-text: #2B1B12;
    --color-text-muted: #6E5C4E;
    --color-brand: #3D2418;
    --color-brand-hover: #2A1710;
    --color-accent-gold: #E0A030;
    --color-border: #ECE1D2;

    /* Tipografija */
    --font-body: 'Manrope', -apple-system, "Segoe UI", sans-serif;
    --fs-xs: 0.8rem;
    --fs-sm: 0.9rem;
    --fs-base: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.75rem;

    /* Razmak / oblik */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 2px 10px rgba(43, 27, 18, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(43, 27, 18, 0.12);
    --container-width: 1160px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    transition: background-color .2s ease, color .2s ease;
}

a { color: inherit; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.utility-bar { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.site-header nav.main-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-lg); text-decoration: none; color: var(--color-brand); white-space: nowrap; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--color-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; flex-wrap: nowrap; }
.nav-links li { margin: 0 12px; }
.nav-links a { text-decoration: none; color: var(--color-text); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.nav-links a:hover { color: var(--color-brand); }
.nav-contact-link { text-decoration: none; color: var(--color-text); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; flex-shrink: 0; }
.nav-contact-link:hover { color: var(--color-brand); }
.nav-actions { display: flex; align-items: center; white-space: nowrap; }
.nav-actions > * { margin-left: 12px; }
.utility-bar-inner { display: flex; align-items: center; justify-content: flex-end; padding: 6px 24px; }
.utility-bar-inner > * { margin-left: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; border: none; cursor: pointer; white-space: nowrap; }
.btn-sm { padding: 6px 14px; font-size: var(--fs-xs); }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-brand); }

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
    padding: 80px 0;
    background:
        linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,.32)),
        url('/assets/images/mojakafa_bckg.jpg') right center / cover no-repeat;
    min-height: 460px;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 2.35rem; font-weight: 800; line-height: 1.15; margin: 0 0 16px; max-width: 640px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero p.lead { font-size: var(--fs-lg); color: #fff; max-width: 560px; margin: 0 0 28px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.search-bar { display: flex; max-width: 560px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.search-bar input { flex: 1; border: none; padding: 14px 18px; font-size: var(--fs-base); font-family: var(--font-body); outline: none; background: transparent; }
.search-bar button { background: var(--color-brand); color: #fff; border: none; padding: 0 22px; cursor: pointer; font-weight: 700; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat { font-size: var(--fs-sm); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-stat strong { display: block; font-size: var(--fs-lg); font-weight: 800; color: #fff; }

/* --------------------------------------------------------------------
   Sekcije / kartice
   -------------------------------------------------------------------- */
.section { padding: 40px 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: var(--fs-xl); font-weight: 800; margin: 0; }
.section-header a.see-all { font-size: var(--fs-sm); font-weight: 700; color: var(--color-brand); text-decoration: none; }

.coffee-grid, .top-rated-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.coffee-card, .rank-card {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 16px; position: relative; transition: box-shadow .15s ease, transform .15s ease;
}
.coffee-card:hover, .rank-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.coffee-card a, .rank-card a { text-decoration: none; color: inherit; display: block; }
.rank-badge {
    position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--color-brand); color: #fff; font-size: var(--fs-xs); font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.coffee-thumb { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-sm); background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 12px; }
.coffee-card h3, .rank-card h3 { font-size: var(--fs-base); margin: 4px 0 2px; }
.coffee-card .manufacturer, .rank-card .manufacturer { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0 0 8px; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; }
.rating-line .stars { color: var(--color-accent-gold); }
.rating-line .count { color: var(--color-text-muted); font-weight: 500; }
.price-tag { margin-top: 8px; font-weight: 800; color: var(--color-brand); }

/* Ukus / priprema ikonice */
.icon-grid-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.icon-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px; margin-top: 16px; }
.icon-item { text-align: center; text-decoration: none; color: var(--color-text); font-size: var(--fs-xs); font-weight: 600; }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 8px; }

/* Top liste */
.toplist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.toplist-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.toplist-icon { font-size: 1.4rem; }
.toplist-card strong { display: block; font-size: var(--fs-sm); }
.toplist-card span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Recenzije */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.review-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--color-brand); }
.review-meta { font-size: var(--fs-xs); color: var(--color-text-muted); }
.review-card h4 { margin: 0 0 6px; font-size: var(--fs-base); }
.review-card p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0 0 10px; }
.review-coffee-tag { font-size: var(--fs-xs); font-weight: 700; color: var(--color-brand); }

/* Stats traka */
.stats-bar { background: var(--color-brand); color: #fff; border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin: 40px 0; }
.stats-bar .stat { text-align: center; }
.stats-bar .stat strong { display: block; font-size: var(--fs-xl); font-weight: 800; }
.stats-bar .stat span { font-size: var(--fs-xs); opacity: .85; }

/* --------------------------------------------------------------------
   Ostale stranice (baza kafa, vodič, proizvođači...)
   -------------------------------------------------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.guide-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; background: var(--color-surface); }
.guide-card a { text-decoration: none; color: inherit; }
.guide-category { font-size: var(--fs-xs); text-transform: uppercase; color: var(--color-accent-gold); font-weight: 700; }
.guide-cover { width: 100%; border-radius: var(--radius-md); margin: 16px 0; }
.guide-content { line-height: 1.7; }
.guide-content img { max-width: 100%; border-radius: 8px; }
.ai-summary { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 16px; margin: 16px 0; }
.coffee-info ul, .taste-notes ul, .prep-methods ul { list-style: none; padding: 0; }
.coffee-info li { padding: 4px 0; border-bottom: 1px solid var(--color-border); }
.manufacturer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.manufacturer-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; background: var(--color-surface); }
.manufacturer-card a { text-decoration: none; color: inherit; }
.manufacturer-header { margin-bottom: 24px; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer { padding: 32px 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; color: var(--color-text-muted); }
.footer-copyright-notice { font-size: var(--fs-xs); color: var(--color-text-muted); max-width: 720px; line-height: 1.5; margin: 6px 0 14px; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-brand); margin: 2.5px auto; }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; width: 100%; flex-direction: column; align-items: flex-start;
        gap: 4px; padding: 12px 0;
    }
    body.nav-open .nav-links { display: flex; }
    .site-header nav.main-nav { flex-wrap: wrap; }
    .nav-links a { padding: 8px 0; width: 100%; }
    .utility-bar-inner { justify-content: center; flex-wrap: wrap; }
    .utility-bar-inner > * { margin: 4px 8px; }
    .icon-grid-panels { grid-template-columns: 1fr; }
    .hero h1 { font-size: var(--fs-2xl); }
    .hero { background: var(--color-bg); min-height: auto; padding: 40px 0; }
    .hero h1, .hero p.lead, .hero-stat, .hero-stat strong { color: var(--color-text); text-shadow: none; }
    .hero p.lead { color: var(--color-text-muted); }
}

/* --------------------------------------------------------------------
   Coffee detail — breadcrumbs, hero, tabs, radar, ocene, gde kupiti
   -------------------------------------------------------------------- */
.breadcrumbs { font-size: var(--fs-xs); color: var(--color-text-muted); margin: 20px 0; }
.breadcrumbs a { text-decoration: none; color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-brand); }
.breadcrumbs span { margin: 0 6px; }

.coffee-hero { display: grid; grid-template-columns: 340px 1fr; gap: 32px; margin-bottom: 28px; }
.coffee-gallery .gallery-main {
    aspect-ratio: 1/1; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.manufacturer-link { font-weight: 700; color: var(--color-brand); text-decoration: none; font-size: var(--fs-sm); }
.coffee-hero-info h1 { font-size: var(--fs-2xl); margin: 6px 0 12px; }
.rating-line-lg { font-size: var(--fs-lg); margin-bottom: 18px; }
.rating-line-lg .stars { font-size: var(--fs-xl); }

.quick-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.quick-badge {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    padding: 10px 16px; min-width: 130px;
}
.quick-badge strong { display: block; font-size: var(--fs-sm); }
.quick-badge span { font-size: var(--fs-xs); color: var(--color-text-muted); }

.ai-summary strong { display: block; margin-bottom: 6px; color: var(--color-brand); }
.ai-summary p { margin: 0; }

.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; }
.hero-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }
.share-wrap { position: relative; }
.share-menu {
    display: none;
    position: absolute; top: 110%; left: 0; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-card-hover); padding: 8px; flex-direction: column;
    min-width: 140px; z-index: 5;
}
.share-menu.open { display: flex; }
.share-menu a { padding: 8px 10px; text-decoration: none; color: var(--color-text); font-size: var(--fs-sm); border-radius: 6px; }
.share-menu a:hover { background: var(--color-bg-alt); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); margin: 32px 0 24px; overflow-x: auto; }
.tab-btn {
    background: none; border: none; padding: 12px 18px; font-weight: 700; font-size: var(--fs-sm);
    color: var(--color-text-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-btn.active { color: var(--color-brand); border-bottom-color: var(--color-brand); }

.pregled-grid, .ocene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.ocene-grid { grid-template-columns: 320px 1fr; }
.panel-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; }
.panel-card h2 { font-size: var(--fs-base); margin: 0 0 16px; }
.sub-heading { font-size: var(--fs-sm); margin: 18px 0 10px; }

.radar-chart { width: 100%; height: auto; }
.radar-ring { fill: none; stroke: var(--color-border); stroke-width: 1; }
.radar-shape { fill: var(--color-accent-gold); fill-opacity: .35; stroke: var(--color-accent-gold); stroke-width: 2; }
.radar-label { font-size: 10px; fill: var(--color-text); font-weight: 700; }
.radar-value { font-size: 9px; fill: var(--color-text-muted); }

.taste-note-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--color-bg-alt); padding: 6px 12px; border-radius: 20px; font-size: var(--fs-xs); font-weight: 600; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--color-text-muted); }

.prep-icon-row { display: flex; gap: 10px; }
.prep-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.score-summary { text-align: center; }
.score-big { font-size: 3rem; font-weight: 800; color: var(--color-brand); line-height: 1; }
.score-summary .stars { color: var(--color-accent-gold); font-size: var(--fs-lg); margin: 6px 0; }
.distribution { margin-top: 18px; text-align: left; }
.dist-row { display: grid; grid-template-columns: 32px 1fr 36px; align-items: center; gap: 8px; font-size: var(--fs-xs); margin-bottom: 6px; }
.dist-bar { background: var(--color-bg-alt); border-radius: 6px; height: 8px; overflow: hidden; }
.dist-fill { background: var(--color-accent-gold); height: 100%; }

.store-list { display: flex; flex-direction: column; }
.store-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); gap: 16px; }
.store-row:last-child { border-bottom: none; }
.store-row-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.store-name { font-weight: 700; }
.best-price-badge { display: inline-block; background: #DCF3E4; color: #1A7F37; font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: 10px; width: fit-content; }
.store-row-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

.review-list { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }

@media (max-width: 900px) {
    .coffee-hero { grid-template-columns: 1fr; }
    .pregled-grid { grid-template-columns: 1fr; }
    .ocene-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------
   Baza kafa — filteri i pretraga
   -------------------------------------------------------------------- */
.result-count { color: var(--color-text-muted); font-size: var(--fs-sm); margin: -8px 0 20px; }
.search-bar-inline { max-width: 480px; margin-bottom: 16px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip {
    background: var(--color-bg-alt); color: var(--color-text); text-decoration: none; font-size: var(--fs-xs);
    font-weight: 600; padding: 6px 12px; border-radius: 20px;
}
.filter-chip-clear { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }

.listing-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.filter-sidebar { position: sticky; top: 90px; }
.filter-group { margin-bottom: 24px; }
.filter-group summary {
    font-size: var(--fs-sm); font-weight: 700; margin: 0; padding: 4px 0 10px; cursor: pointer;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: '+'; color: var(--color-text-muted); font-weight: 400; font-size: var(--fs-base); }
.filter-group[open] summary::after { content: '−'; }
.filter-group:not(:last-child) { border-bottom: 1px solid var(--color-border); margin-bottom: 14px; padding-bottom: 4px; }
.filter-group ul { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; }
.filter-group li { margin-bottom: 4px; }
.filter-group a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--color-text-muted); font-size: var(--fs-sm); }
.filter-group a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.filter-group a.active { background: var(--color-brand); color: #fff; font-weight: 700; }

.price-filter-form { padding-top: 4px; }
.price-slider-wrap { position: relative; height: 28px; margin: 10px 0 4px; }
.price-slider-track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: var(--color-border); border-radius: 2px; transform: translateY(-50%); }
.price-slider-range { position: absolute; height: 4px; background: var(--color-brand); border-radius: 2px; }
.price-range-input {
    position: absolute; width: 100%; top: 50%; left: 0; transform: translateY(-50%);
    -webkit-appearance: none; appearance: none; background: transparent; margin: 0; pointer-events: none;
}
.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--color-brand);
    cursor: pointer; pointer-events: auto; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--color-border);
}
.price-range-input::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; background: var(--color-brand); border: 2px solid #fff;
    cursor: pointer; pointer-events: auto; box-shadow: 0 0 0 1px var(--color-border);
}
.price-range-input::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; height: 4px; }
.price-range-input::-moz-range-track { background: transparent; height: 4px; }
.price-slider-values { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: 10px; }
.price-filter-form .btn-sm { width: 100%; }

.sort-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sort-row a { text-decoration: none; color: var(--color-text-muted); font-size: var(--fs-sm); font-weight: 600; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.sort-row a.active { color: var(--color-brand); border-bottom-color: var(--color-brand); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.empty-state p { margin-bottom: 16px; }

.filter-toggle-btn {
    display: none; align-items: center; gap: 8px; background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px 16px;
    font-weight: 700; font-size: var(--fs-sm); cursor: pointer; margin-bottom: 16px;
}

@media (max-width: 900px) {
    .listing-layout { grid-template-columns: 1fr; }
    .filter-toggle-btn { display: flex; }
    .filter-sidebar {
        display: none; position: static; flex-direction: column; gap: 4px;
        background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
        padding: 16px; margin-bottom: 20px;
    }
    .filter-sidebar.open { display: flex; }
    .filter-group { min-width: auto; }
}

/* --------------------------------------------------------------------
   Auth (magic link)
   -------------------------------------------------------------------- */
.nav-user { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.auth-page { display: flex; justify-content: center; padding: 60px 0; }
.auth-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 40px; max-width: 420px; width: 100%; text-align: center; }
.auth-card h1 { font-size: var(--fs-xl); margin: 0 0 12px; }
.auth-card p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input { padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--fs-base); font-family: var(--font-body); }
.auth-error { color: #B3261E; }
.auth-hint { font-size: var(--fs-xs); margin-top: 16px; }

/* --------------------------------------------------------------------
   Review form
   -------------------------------------------------------------------- */
.review-form-page { max-width: 640px; margin: 0 auto; }
.lead-muted { color: var(--color-text-muted); margin-bottom: 24px; }
.auth-error-box { background: #FDECEA; border: 1px solid #F5C6C0; color: #B3261E; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: var(--fs-sm); }
.review-form { display: flex; flex-direction: column; gap: 22px; }
.rating-field-label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 8px; }

/* CSS-only 1-10 rating — radio inputi + sibling selektori, bez JS */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label {
    cursor: pointer; width: 28px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-muted);
    background: var(--color-bg-alt); border-radius: 6px; transition: background .1s, color .1s;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    background: var(--color-accent-gold); color: #fff;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: var(--fs-sm); }
.form-field input[type="text"], .form-field select, .form-field textarea {
    padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: var(--fs-base); resize: vertical;
}
.form-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-row { display: flex; gap: 20px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--fs-sm); cursor: pointer; }
.btn-lg { padding: 14px 28px; font-size: var(--fs-base); align-self: flex-start; }

.flash-message { background: var(--color-bg-alt); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: var(--fs-sm); font-weight: 600; }

@media (max-width: 600px) {
    .form-field-row { grid-template-columns: 1fr; }
    .star-input label { width: 24px; height: 28px; }
}

/* --------------------------------------------------------------------
   Stvarne slike kafa (zamena za emoji placeholder kad postoji image_main)
   -------------------------------------------------------------------- */
.coffee-thumb-img {
    width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-sm); object-fit: cover; margin-bottom: 12px; display: block;
}
.gallery-main-img {
    width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); object-fit: contain; display: block;
    border: 1px solid var(--color-border); background: #FFFFFF; padding: 24px; box-sizing: border-box;
}

/* --------------------------------------------------------------------
   Top liste
   -------------------------------------------------------------------- */
.toplist-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.toplist-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.pill { text-decoration: none; padding: 8px 16px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--fs-sm); font-weight: 600; }
.pill.active { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.toplist-ranked-grid .rank-card { position: relative; }

/* --------------------------------------------------------------------
   Uporedi kafe
   -------------------------------------------------------------------- */
.compare-picker { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 12px; }
.compare-checkbox-grid { margin-bottom: 16px; max-height: 240px; overflow-y: auto; }
.radar-chart-lg { max-width: 400px; margin: 0 auto; display: block; }
.compare-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.legend-item { font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.compare-table-wrap { overflow-x: auto; margin-top: 24px; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); min-width: 600px; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.compare-table th { background: var(--color-bg-alt); }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
.compare-table a { color: var(--color-brand); text-decoration: none; font-weight: 700; }

/* --------------------------------------------------------------------
   Varijanta kafe / AI pregled postojećih unosa
   -------------------------------------------------------------------- */
.coffee-variant { color: var(--color-text-muted); font-weight: 600; }

.ai-preview-panel { background: #FBF3E9; border: 1px solid #E8CFA8; border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px; }
.ai-preview-panel h2 { margin: 0 0 4px; font-size: var(--fs-base); }
.ai-preview-panel table { margin-top: 14px; }
.ai-diff-changed td:last-child { color: var(--color-brand); font-weight: 700; }
.ai-diff-changed td:nth-child(2) { text-decoration: line-through; color: var(--color-text-muted); }
.ai-preview-actions { display: flex; gap: 10px; margin-top: 16px; }

/* --------------------------------------------------------------------
   Favorites
   -------------------------------------------------------------------- */
.title-row { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.favorite-btn {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 50%;
    width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: var(--color-text-muted);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.favorite-btn.active { color: #C0392B; border-color: #F0C4BE; background: #FDECEA; }
.favorite-btn:hover { border-color: #C0392B; }
a.nav-user { text-decoration: none; }
.vendor-cta-link { color: var(--color-brand) !important; }
.vendor-cta-link:hover { text-decoration: underline; }
.footer-links-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.footer-vendor-btn {
    background: var(--color-brand); color: #fff !important; padding: 8px 16px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 700; font-size: var(--fs-xs);
}
.footer-vendor-btn:hover { background: var(--color-brand-hover); }
.footer-legal-links { margin: 0; }
.footer-right-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-share-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-share-label { font-size: var(--fs-xs); color: var(--color-text-muted); margin-right: 4px; }
.footer-share-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: var(--color-bg-alt);
    color: var(--color-brand); font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
    border: 1px solid var(--color-border); transition: background .15s, color .15s;
}
.footer-share-icon:hover { background: var(--color-brand); color: #fff; }
.footer-visit-counter { font-size: var(--fs-xs); color: var(--color-text-muted); margin: 0; }

/* --------------------------------------------------------------------
   Predloži kafu
   -------------------------------------------------------------------- */
.suggestion-image-box { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 16px; }
.rights-checkbox { align-items: flex-start; margin-top: 12px; font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.5; }
.rights-checkbox input { margin-top: 3px; flex-shrink: 0; }
.status-pending { background: #FDF2D0; color: #8A6D00; }

/* --------------------------------------------------------------------
   Cookie baner
   -------------------------------------------------------------------- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-brand); color: #fff;
    z-index: 100; box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.cookie-banner-inner {
    max-width: var(--container-width); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: var(--fs-sm); }
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-inner form { flex-shrink: 0; }

/* --------------------------------------------------------------------
   Statične / pravne stranice
   -------------------------------------------------------------------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 20px 0 60px; }
.legal-page h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.legal-updated { color: var(--color-text-muted); font-size: var(--fs-xs); margin-bottom: 28px; }
.legal-page h2 { font-size: var(--fs-lg); margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--color-text); line-height: 1.7; font-size: var(--fs-sm); }
.legal-page ul { padding-left: 20px; }

/* --------------------------------------------------------------------
   Predloži kafu — CTA banner na početnoj
   -------------------------------------------------------------------- */
.suggest-banner {
    background: var(--color-brand); color: #fff; border-radius: var(--radius-lg);
    padding: 36px 40px; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.suggest-banner h2 { margin: 0 0 6px; font-size: var(--fs-xl); }
.suggest-banner p { margin: 0; opacity: .85; font-size: var(--fs-sm); }
.suggest-banner .btn-primary { background: #fff; color: var(--color-brand); flex-shrink: 0; }
.suggest-banner .btn-primary:hover { background: var(--color-bg-alt); }

/* --------------------------------------------------------------------
   MojaKafa Shopping — prodavci
   -------------------------------------------------------------------- */
.vendor-hero { max-width: 640px; margin: 40px auto; text-align: center; }
.vendor-hero h1 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.vendor-hero-sub { font-size: var(--fs-lg); color: var(--color-text-muted); margin-bottom: 20px; }
.vendor-free-badge {
    background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 20px; margin: 24px 0;
}
.vendor-free-badge strong { color: var(--color-brand); font-size: var(--fs-lg); letter-spacing: .5px; }
.vendor-free-badge p { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.vendor-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 40px auto; }
.vendor-step { text-align: center; }
.vendor-step span {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 50%; background: var(--color-brand); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.vendor-step h3 { font-size: var(--fs-base); margin: 0 0 6px; }
.vendor-step p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }
.vendor-founding { max-width: 640px; margin: 0 auto 60px; text-align: center; background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 24px; }
.vendor-founding h2 { font-size: var(--fs-lg); margin: 0 0 10px; }
.vendor-founding p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

.vendor-value-banner { background: var(--color-brand); color: #fff; border-radius: var(--radius-lg); padding: 28px 32px; margin: 20px 0 28px; }
.vendor-value-banner h2 { margin: 0 0 16px; font-size: var(--fs-lg); }
.vendor-value-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.vendor-value-stats strong { display: block; font-size: var(--fs-2xl); font-weight: 800; }
.vendor-value-stats span { font-size: var(--fs-xs); opacity: .85; }
.vendor-value-note { margin: 16px 0 0; font-size: var(--fs-xs); opacity: .85; }
.vendor-activity-list { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.vendor-activity-list li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.vendor-activity-list li:last-child { border-bottom: none; }

@media (max-width: 700px) {
    .vendor-steps { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------
   Vendor CTA na product stranicama
   -------------------------------------------------------------------- */
.vendor-inline-cta { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 14px; }
.vendor-inline-cta a { color: var(--color-brand); font-weight: 700; }

/* --------------------------------------------------------------------
   Javna strana prodavca (/prodavac/{slug})
   -------------------------------------------------------------------- */
.vendor-public-header { display: flex; gap: 24px; align-items: flex-start; margin: 20px 0; flex-wrap: wrap; }
.vendor-public-logo { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; border: 1px solid var(--color-border); flex-shrink: 0; }
.vendor-public-logo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--color-bg-alt); }
.vendor-public-info h1 { font-size: var(--fs-xl); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.vendor-public-info p { color: var(--color-text-muted); margin: 0 0 10px; }
.vendor-public-count { font-size: var(--fs-sm); }
.vendor-public-count strong { color: var(--color-brand); }

/* --------------------------------------------------------------------
   Akcije
   -------------------------------------------------------------------- */
.deal-card { position: relative; }
.discount-badge {
    position: absolute; top: 12px; left: 12px; background: #C0392B; color: #fff; font-weight: 800;
    font-size: var(--fs-xs); padding: 4px 10px; border-radius: 20px; z-index: 1;
}
.deal-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.deal-old-price { text-decoration: line-through; color: var(--color-text-muted); font-size: var(--fs-sm); }
.deal-new-price { font-weight: 800; color: #C0392B; font-size: var(--fs-lg); }

/* --------------------------------------------------------------------
   Anonimno (brzo) ocenjivanje — privremena opcija
   -------------------------------------------------------------------- */
.guest-rating-widget {
    background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.guest-rating-label { font-weight: 700; font-size: var(--fs-sm); }
.star-input-guest label { width: 26px; height: 30px; font-size: var(--fs-xs); }
.guest-rating-note { font-size: var(--fs-xs); color: var(--color-text-muted); margin: 0; }
.guest-rating-note a { color: var(--color-brand); font-weight: 700; }

/* =====================================================================
   TAMNA TEMA
   Aktivira se preko [data-theme="dark"] na <html> — pošto ceo sajt već
   koristi CSS promenljive za boje, ovde samo redefinišemo promenljive
   i par mesta gde je boja bila hardkodovana (svetli pastelni bedževi).
   ===================================================================== */
[data-theme="dark"] {
    --color-bg: #000000;
    --color-bg-alt: #161311;
    --color-surface: #121010;
    --color-text: #F2ECE4;
    --color-text-muted: #A69686;
    --color-brand: #7A4A22;
    --color-brand-hover: #96602E;
    --color-accent-gold: #E0A030;
    --color-border: #2E2A26;
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Svetli pastelni bedževi su hardkodovani (ne idu preko promenljivih) — dark varijanta ručno */
[data-theme="dark"] .best-price-badge { background: rgba(26, 127, 55, 0.25); color: #4ADE80; }
[data-theme="dark"] .auth-error-box { background: rgba(179, 38, 30, 0.15); border-color: rgba(179, 38, 30, 0.4); color: #F28B82; }
[data-theme="dark"] .favorite-btn.active { color: #F07A6E; border-color: rgba(192, 57, 43, 0.4); background: rgba(192, 57, 43, 0.15); }
[data-theme="dark"] .status-pending { background: rgba(138, 109, 0, 0.25); color: #E0C34A; }
[data-theme="dark"] .flash-message { background: var(--color-bg-alt); color: var(--color-text); }

/* Dugme za promenu teme */
.theme-toggle-btn {
    background: none; border: 1px solid var(--color-border); border-radius: 50%; width: 32px; height: 32px;
    cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* --------------------------------------------------------------------
   Birač kafe za ponudu prodavca — pretraga sa slikama
   -------------------------------------------------------------------- */
.coffee-picker { position: relative; }
.coffee-picker input[type="text"] { width: 100%; box-sizing: border-box; }
.coffee-picker-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 340px; overflow-y: auto;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card-hover); z-index: 20;
}
.coffee-picker-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; }
.coffee-picker-item:hover { background: var(--color-bg-alt); }
.coffee-picker-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #fff; border: 1px solid var(--color-border); }
.coffee-picker-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--color-bg-alt); }
.coffee-picker-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coffee-picker-info strong { font-size: var(--fs-sm); }
.coffee-picker-info span { font-size: var(--fs-xs); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel-card-link { display: inline-block; margin-top: 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--color-brand); text-decoration: none; }
.panel-card-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------
   Paginacija (Baza kafa)
   -------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; margin-bottom: 20px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-text);
    font-weight: 700; font-size: var(--fs-sm); border: 1px solid var(--color-border); background: var(--color-surface);
    box-shadow: var(--shadow-card); transition: border-color .15s, box-shadow .15s;
}
.page-link:hover { border-color: var(--color-brand); box-shadow: var(--shadow-card-hover); }
.page-link-current { background: var(--color-brand); color: #fff; border-color: var(--color-brand); cursor: default; box-shadow: none; }
.page-link-nav { min-width: auto; padding: 0 18px; }
.page-ellipsis { color: var(--color-text-muted); padding: 0 4px; }
