/* =====================================================================
   podeli.info - stilovi

   Ideja izgleda: prodavnica. Akcije su žute cenovne etikete na rafu,
   kategorije su table iznad prolaza, glasanje je termometar.
   Informacije ("Čuo/la sam") izgledaju kao cedulje na oglasnoj tabli.

   Sadržaj fajla:
     1. Boje i osnovna podešavanja
     2. Zaglavlje i navigacija
     3. Početna: uvod, velika etiketa, kategorije, alatke
     4. Lista akcija (raf)
     5. Lista informacija (tabla)
     6. Bočna kolona
     7. Stranica objave i komentari
     8. Forme
     9. Ostale stranice (pravila, tabele, moderacija)
    10. Podnožje
    11. Telefon
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Boje i osnovna podešavanja
   --------------------------------------------------------------------- */
:root {
    --ink:    #14213D;  /* tamnoplava, kao uniforma u radnji */
    --tag:    #FFD400;  /* žuta akcijska etiketa */
    --tag-edge: #C9A800;
    --red:    #D90429;  /* crvena nalepnica, stara cena, "vrelo" */
    --cold:   #2563EB;  /* plava za "hladno" */
    --ok:     #15803D;  /* zelena za potvrđene informacije */
    --shelf:  #C9CED6;  /* metalna ivica rafa */
    --floor:  #EEF0F3;  /* pod prodavnice - pozadina */
    --paper:  #FFFFFF;
    --muted:  #4A5468;
    --line:   #D5D9E0;
    --radius: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--floor);
    color: var(--ink);
    font: 16px/1.5 Barlow, system-ui, sans-serif;
}

a {
    color: var(--ink);
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--cold);
    outline-offset: 2px;
}

/* Elementi sa atributom hidden su uvek sakriveni, i kad imaju display u CSS-u */
[hidden] {
    display: none !important;
}

/* Tekst vidljiv samo čitačima ekrana */
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    padding-bottom: 56px;
}

.inline {
    display: inline;
}

.muted {
    color: var(--muted);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

/* Zajednička dugmad */
.btn-primary,
.btn-yellow,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
}

.btn-primary,
.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-yellow {
    background: var(--tag);
    color: var(--ink);
}

.btn-primary[disabled] {
    background: #9AA3B2;
    cursor: not-allowed;
}

.link-btn {
    border: 0;
    background: none;
    padding: 10px 0;
    min-height: 44px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-btn.danger {
    color: var(--red);
}

/* Poruke posle radnje */
.flash {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 600;
}

.flash-ok {
    background: #DCFCE7;
    color: #14532D;
}

.flash-error {
    background: #FEE2E2;
    color: #7F1D1D;
}

.notice-box {
    background: #FFF7CC;
    border: 1px solid #E8D46A;
    padding: 12px 16px;
    border-radius: var(--radius);
}


/* ---------------------------------------------------------------------
   2. Zaglavlje i navigacija
   --------------------------------------------------------------------- */
.site-header {
    background: var(--ink);
    color: #fff;
}

.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.logo b {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
}

.search {
    flex: 1 1 240px;
    min-width: 0;
}

.search input {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.hlink {
    color: #DDE3EE;
    background: none;
    border: 0;
    padding: 10px 0;
    font-weight: 600;
    text-decoration: none;
}

.hlink:hover {
    color: #fff;
    text-decoration: underline;
}

.post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius);
    background: var(--tag);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Fokus na skrivenom input-u kamere prikazujemo na dugmetu */
#quick-camera:focus-visible + .post-btn,
.post-btn:focus-within {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Dva dela sajta: Akcije / Čuo/la sam */
.sections {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sections .wrap {
    display: flex;
    gap: 4px;
    overflow-x: auto;       /* na uskom ekranu meni se pomera prstom */
    scrollbar-width: none;
}

.sections a {
    flex: none;
    white-space: nowrap;
}

.sections a {
    padding: 12px 16px 10px;
    color: #C8D0E0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 21px;
    text-decoration: none;
    border-bottom: 4px solid transparent;
}

.sections a:hover {
    color: #fff;
}

.sections a[aria-current="page"] {
    color: #fff;
    border-bottom-color: var(--tag);
}


/* ---------------------------------------------------------------------
   3. Početna: kategorije, uvod, velika etiketa, alatke
   --------------------------------------------------------------------- */

/* Izbor mesta iznad kategorija */
.place-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-top: 18px;
}

.place-bar > label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
}

.place-bar .combo {
    flex: 0 1 360px;
}

.place-bar select {
    min-height: 46px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 0 10px;
    background: #fff;
}

/* Pretraživ izbor (combobox) */
.combo {
    position: relative;
    width: 100%;
}

.combo-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 40px 10px 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A5468' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") no-repeat right 12px center;
}

.combo-input:focus {
    border-color: var(--ink);
    outline: none;
}

.combo-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(20, 33, 61, 0.25);
}

.combo-option {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

.combo-option small {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.combo-option[aria-selected="true"] {
    background: var(--ink);
    color: #fff;
}

.combo-option[aria-selected="true"] small {
    color: #C8D0E0;
}

.combo-empty {
    padding: 10px 12px;
    color: var(--muted);
}

.place-link {
    color: inherit;
}

/* Kategorije kao table iznad prolaza */
.aisles {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 4px;
    scrollbar-width: thin;
}

.aisles a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 14px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}

.aisles a[aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px 48px;
    padding: 32px 0 28px;
}

.hero-text {
    flex: 1 1 420px;
    min-width: 0;
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(44px, 7vw, 80px);
    line-height: 0.92;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    max-width: 12ch;
}

.hero p {
    margin: 0;
    font-size: 18px;
    color: var(--muted);
    max-width: 48ch;
}

/* Velika etiketa sa najvrelijom akcijom */
.bigtag {
    flex: 0 1 380px;
    position: relative;
    display: block;
    background: var(--tag);
    padding: 22px 26px 20px 40px;
    border-radius: 6px;
    box-shadow: 0 3px 0 var(--tag-edge);
    transform: rotate(-2deg);
    text-decoration: none;
}

/* Rupica za kačenje etikete */
.bigtag::before,
.tag::before {
    content: "";
    position: absolute;
    top: 50%;
    border-radius: 50%;
    background: var(--floor);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bigtag::before {
    left: 14px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
}

.bigtag .what {
    display: block;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 10px;
    padding-right: 40px;
    max-width: 26ch;
}

.bigtag .was,
.tag .was {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--red);
    text-decoration: line-through;
    line-height: 1;
}

.bigtag .was {
    font-size: 24px;
    text-decoration-thickness: 3px;
}

.bigtag .now {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 92px;
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.bigtag .now small {
    font-size: 26px;
    line-height: 1.3;
}

.bigtag .where {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Crvena okrugla nalepnica sa procentom */
.sticker,
.tag .pct {
    position: absolute;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
}

.sticker {
    right: -18px;
    top: -22px;
    width: 86px;
    height: 86px;
    font-size: 30px;
    transform: rotate(10deg);
}

.layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.list-col {
    flex: 999 1 600px;
    min-width: 0;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 6px;
}

.sorts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
}

.sorts > span {
    font-weight: 600;
    color: var(--muted);
}

.sort {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.sort[aria-current="true"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.city-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.city-filter select {
    height: 40px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0 8px;
}

.search-note {
    margin: 8px 0;
}

.empty {
    padding: 32px 0;
    font-size: 18px;
}

.pager {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    font-weight: 600;
}


/* ---------------------------------------------------------------------
   4. Lista akcija (raf)
   --------------------------------------------------------------------- */
.shelf,
.board {
    list-style: none;
    margin: 0;
    padding: 0;
}

.row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px 22px;
    padding: 22px 0 28px;
}

/* Ivica police ispod svakog reda */
.row::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: 0;
    height: 10px;
    background: var(--shelf);
    border-bottom: 3px solid #AEB4BE;
    border-radius: 2px;
}

/* Termometar */
.thermo {
    flex: 0 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tbtn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--shelf);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbtn.up[aria-pressed="true"] {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.tbtn.down[aria-pressed="true"] {
    background: var(--cold);
    border-color: var(--cold);
    color: #fff;
}

.tube {
    width: 12px;
    height: 56px;
    border-radius: 6px;
    background: #DDE1E7;
    position: relative;
    overflow: hidden;
}

.tube i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
}

.tube i.hot  { background: var(--red); }
.tube i.mild { background: #F59E0B; }
.tube i.cold { background: var(--cold); }

.deg {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
}

.deg.hot  { color: var(--red); }
.deg.cold { color: var(--cold); }

/* Opis akcije */
.info {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    gap: 14px;
    align-items: center;
}

.thumb {
    flex: none;
}

.thumb img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(20, 33, 61, 0.25);
}

.info-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.where {
    font-size: 15px;
    color: var(--muted);
}

.where strong {
    color: var(--ink);
    font-weight: 600;
}

.row h2,
.notice h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.row h2 a,
.notice h2 a {
    text-decoration: none;
}

.row h2 a:hover,
.notice h2 a:hover {
    text-decoration: underline;
}

.by {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
}

.by a {
    font-weight: 600;
}

/* Žuta etiketa sa cenom */
.tag {
    flex: 0 0 190px;
    position: relative;
    align-self: center;
    background: var(--tag);
    border-radius: var(--radius);
    padding: 12px 16px 12px 30px;
    box-shadow: 0 2px 0 var(--tag-edge);
}

.tag::before {
    left: 10px;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
}

.tag .was {
    font-size: 18px;
    text-decoration-thickness: 2px;
}

.tag .now {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 46px;
    line-height: 0.95;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.tag .now small {
    font-size: 18px;
    margin-left: 3px;
}

.tag .pct {
    right: -10px;
    top: -14px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    transform: rotate(8deg);
}


/* ---------------------------------------------------------------------
   5. Lista informacija (oglasna tabla)
   --------------------------------------------------------------------- */
.board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

.notice {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    background: var(--paper);
    padding: 18px 20px;
    border-radius: 2px;
    box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(20, 33, 61, 0.06);
}

/* Vreme objave - bitno kod saobraćaja i gužvi */
.notice-time {
    flex: 0 0 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.notice-time .clock {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
}

.notice-time .day {
    font-size: 14px;
    color: var(--muted);
}

.notice-body {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.notice-meta .cat {
    font-weight: 700;
}

.notice-meta .confirmed {
    color: var(--ok);
    font-weight: 700;
}

.notice .place {
    margin: 0;
    font-weight: 600;
}

.notice-votes {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* Dugmad Potvrđujem / Više ne važi (i Vrelo / Hladno na stranici objave) */
.vbtn {
    min-height: 44px;
    min-width: 150px;
    padding: 0 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.vbtn.yes[aria-pressed="true"] {
    background: var(--ok);
    border-color: var(--ok);
    color: #fff;
}

.vbtn.no[aria-pressed="true"] {
    background: var(--muted);
    border-color: var(--muted);
    color: #fff;
}

.vbtn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ---------------------------------------------------------------------
   6. Bočna kolona
   --------------------------------------------------------------------- */
.side {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 12px;
}

.join {
    background: var(--ink);
    color: #fff;
    padding: 22px;
    border-radius: 6px;
}

.join h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    margin: 0 0 8px;
}

.join p {
    margin: 0 0 16px;
    color: #C8D0E0;
}

.join .btn-yellow {
    width: 100%;
}

.side-rules {
    padding: 0 4px;
    color: var(--muted);
}

.side-rules h2 {
    font-size: 17px;
    color: var(--ink);
    margin: 0 0 6px;
}

.side-rules ul {
    margin: 0 0 8px;
    padding-left: 18px;
}


/* ---------------------------------------------------------------------
   7. Stranica objave i komentari
   --------------------------------------------------------------------- */
.crumbs {
    margin: 20px 0 12px;
    color: var(--muted);
}

.detail {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    align-items: flex-start;
    background: var(--paper);
    padding: 28px;
    border-radius: 6px;
}

.detail-photo {
    flex: 1 1 340px;
    margin: 0;
}

.detail-photo img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: var(--floor);
    border-radius: var(--radius);
}

.detail-main {
    flex: 1 1 360px;
    min-width: 0;
}

.detail-main h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4.5vw, 46px);
    line-height: 1;
    margin: 6px 0 20px;
}

.tag-large {
    display: inline-block;
    margin: 4px 0 20px;
    padding-right: 34px;
}

.tag-large .now {
    font-size: 64px;
}

.detail-body {
    margin-bottom: 16px;
    max-width: 62ch;
}

.facts {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
}

.facts strong {
    color: var(--ink);
}

.detail-votes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.report {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.report summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--muted);
}

.report fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}

.report legend {
    font-weight: 700;
    margin-bottom: 6px;
}

.radio {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 40px;
}

.report input[type="text"],
.report input:not([type]) {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 44px;
    margin: 6px 0 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 0 10px;
}

.comments {
    max-width: 760px;
    padding-top: 32px;
}

.comments h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 30px;
    margin: 0 0 12px;
}

.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.comment-list li {
    background: var(--paper);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius);
}

.comment-list p {
    margin: 0;
}

.comment-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px !important;
}

.comment-meta strong {
    color: var(--ink);
}

.comment-form textarea {
    display: block;
    width: 100%;
    margin: 6px 0 12px;
}


/* ---------------------------------------------------------------------
   8. Forme
   --------------------------------------------------------------------- */
.form-page {
    max-width: 720px;
    padding-top: 28px;
}

.form-page.narrow {
    max-width: 480px;
}

.form-page.wide {
    max-width: none;
}

.form-page h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1;
    margin: 0 0 16px;
}

.form-page h2 {
    font-size: 22px;
    margin: 28px 0 10px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 60ch;
}

.alt {
    margin-top: 24px;
    line-height: 1.9;
}

.field {
    margin-bottom: 20px;
}

.field label,
.field .label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.field em {
    font-style: normal;
    font-weight: 500;
    color: var(--muted);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
textarea:focus {
    border-color: var(--ink);
    outline: none;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.hint {
    font-size: 14px;
    color: var(--muted);
    margin: 6px 0 0;
}

.field-error {
    color: #B91C1C;
    font-weight: 600;
    font-size: 15px;
    margin: 6px 0 0;
}

.check {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500 !important;
}

.check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: none;
}

/* Prijava preko Google / Facebook naloga */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: var(--radius);
    border: 2px solid var(--line);
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--ink);
}

.social-facebook {
    background: #0866FF;  /* Facebook plava, dovoljno tamna za čitljiv beli tekst */
    border-color: #0866FF;
    color: #fff;
}

.social-facebook:hover {
    background: #0654D6;
    border-color: #0654D6;
}

/* Razdelnik "ili preko email adrese" */
.social-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 6px;
    color: var(--muted);
    font-size: 15px;
}

.social-or::before,
.social-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Klopka za botove - sakrivena od ljudi */
.hp {
    position: absolute;
    left: -10000px;
}

/* Izbor tipa objave */
.type-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.type-switch a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
}

.type-switch a strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    line-height: 1.1;
}

.type-switch a span {
    font-size: 14px;
    color: var(--muted);
}

.type-switch a[aria-pressed="true"] {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
    background: #FFFBE0;
}

.type-fields {
    border: 0;
    padding: 0;
    margin: 0;
}

/* Slika */
.photo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: var(--radius);
    background: var(--tag);
    font-weight: 700 !important;
    cursor: pointer;
    margin: 0 !important;
}

.photo-btn.secondary {
    background: #fff;
    border: 2px solid var(--line);
}

.photo-btn:focus-within {
    outline: 3px solid var(--cold);
    outline-offset: 2px;
}

.photo-preview img {
    max-height: 320px;
    width: auto;
    border-radius: var(--radius);
    border: 4px solid #fff;
    box-shadow: 0 1px 4px rgba(20, 33, 61, 0.25);
}

.geo-btn {
    font-size: 15px;
}

.store-suggestions {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store-suggestions button {
    width: 100%;
    text-align: left;
    min-height: 48px;
    padding: 8px 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.store-suggestions button span {
    color: var(--muted);
    font-size: 14px;
}

.rules-box {
    background: #fff;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.rules-box ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.submit {
    width: 100%;
    min-height: 54px;
    font-size: 18px;
    margin-top: 8px;
}


/* ---------------------------------------------------------------------
   9. Ostale stranice: pravila, tabele, moderacija
   --------------------------------------------------------------------- */
.rules-page {
    max-width: 760px;
    padding-top: 28px;
}

.rules-page h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 52px;
    line-height: 1;
    margin: 0 0 16px;
}

.rules-page h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 30px;
    margin: 40px 0 10px;
    scroll-margin-top: 16px;
}

.rules-page h3 {
    font-size: 19px;
    margin: 24px 0 8px;
}

/* Liste sa običnom crticom ispred (crtica je deo teksta) */
.dash {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash li {
    margin-bottom: 8px;
    padding-left: 14px;
    text-indent: -14px;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 14px 18px;
    background: #fff;
    border-radius: var(--radius);
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table thead th {
    background: var(--ink);
    color: #fff;
}

.admin-list {
    list-style: none;
    padding: 0;
}

.admin-list li {
    background: #fff;
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: var(--radius);
}

.admin-list p {
    margin: 0 0 6px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-small {
    min-height: 40px;
    padding: 0 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-weight: 600;
}

.btn-small.ok {
    background: var(--ok);
    border-color: var(--ok);
    color: #fff;
}

.btn-small.danger {
    color: var(--red);
}


/* ---------------------------------------------------------------------
   9a. Meni naloga u zaglavlju (padajući)
   --------------------------------------------------------------------- */
.account-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    color: #fff;
    font-weight: 700;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

/* Strelica posle imena */
.account-menu summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.account-menu ul {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(20, 33, 61, 0.25);
}

.account-menu a,
.account-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
}

.account-menu a:hover,
.account-menu button:hover {
    background: var(--floor);
}


/* ---------------------------------------------------------------------
   9b. Moj nalog i javni profil
   --------------------------------------------------------------------- */
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--line);
}

.subnav a {
    padding: 10px 0;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.subnav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.stats div {
    background: #fff;
    padding: 14px 18px;
    border-radius: var(--radius);
    min-width: 140px;
}

.stats dt {
    font-size: 14px;
    color: var(--muted);
}

.stats dd {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.simple-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.settings-block {
    background: #fff;
    padding: 20px 22px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.settings-block h2 {
    margin-top: 0;
}

.danger-zone {
    margin-top: 28px;
    padding: 18px 22px;
    border: 2px solid #F3C4C4;
    border-radius: var(--radius);
    background: #FFF7F7;
}

.danger-zone h2 {
    margin-top: 0;
    font-size: 20px;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: #B91C1C;
    color: #fff;
    font-weight: 700;
}

.profile h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 48px;
    margin: 28px 0 4px;
}

.page-body {
    max-width: 70ch;
}

.page-updated {
    margin-top: 40px;
    font-size: 14px;
}

.small {
    font-size: 14px;
}


/* ---------------------------------------------------------------------
   9c. Admin panel
   --------------------------------------------------------------------- */
.admin {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    align-items: flex-start;
    padding-top: 24px;
}

.admin-nav {
    flex: 1 1 200px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--ink);
    padding: 14px;
    border-radius: 6px;
}

.admin-nav-title {
    margin: 0 0 8px;
    padding: 0 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--tag);
}

.admin-nav a {
    padding: 10px;
    border-radius: var(--radius);
    color: #DDE3EE;
    font-weight: 600;
    text-decoration: none;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav a[aria-current="page"] {
    background: #fff;
    color: var(--ink);
}

.admin-nav .admin-nav-back {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding-top: 14px;
    font-weight: 500;
}

.admin-main {
    flex: 999 1 600px;
    min-width: 0;
}

.admin-main h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    margin: 0 0 12px;
}

.admin-main h2 {
    font-size: 21px;
    margin: 24px 0 10px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 16px 0 8px;
}

.admin-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 14px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid transparent;
}

a.admin-card:hover {
    border-color: var(--ink);
}

.admin-card.alert {
    background: #FFF7CC;
    border-color: #E8D46A;
}

.admin-card-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 38px;
    line-height: 1.05;
}

.admin-card-label {
    font-size: 14px;
    color: var(--muted);
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0 32px;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.admin-filters input,
.admin-filters select {
    min-height: 46px;
    padding: 0 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.admin-filters input {
    flex: 1 1 240px;
}

.admin-form {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    max-width: 760px;
}

.admin-form.wide {
    max-width: none;
}

.admin-section {
    margin-bottom: 28px;
}

.admin-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
}

.admin-section-head h1,
.admin-section-head h2 {
    margin: 0;
}

.admin-section-head .btn-small {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.badge,
.badge-alert {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.badge {
    background: var(--ink);
    color: #fff;
}

.badge-alert {
    background: #FEE2E2;
    color: #7F1D1D;
}

.admin-thumb {
    max-width: 240px;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

textarea.mono {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 15px;
    line-height: 1.55;
}

.format-help {
    margin-top: 8px;
    font-size: 15px;
}

.format-help summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.format-help code,
.hint code {
    background: var(--floor);
    padding: 1px 5px;
    border-radius: 3px;
}

a.btn-small {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}


/* ---------------------------------------------------------------------
   10. Podnožje
   --------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #C8D0E0;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-footer a {
    color: #fff;
}


/* ---------------------------------------------------------------------
   11. Telefon
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
    .logo b {
        font-size: 26px;
    }

    .hlink {
        font-size: 15px;
    }

    .bigtag {
        transform: none;
    }

    .sticker {
        right: -6px;
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .bigtag .what {
        padding-right: 56px;
    }

    /* Akcija: termometar levo, opis desno, etiketa ispod opisa */
    .row {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px 14px;
    }

    .thermo {
        grid-row: span 2;
    }

    .tube {
        height: 40px;
    }

    .row h2 {
        font-size: 18px;
    }

    .thumb img {
        width: 72px;
        height: 72px;
    }

    .info {
        align-items: flex-start;
    }

    .tag {
        justify-self: start;
        min-width: 180px;
    }

    .notice-votes {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .vbtn {
        flex: 1 1 140px;
    }

    .detail {
        padding: 18px;
    }

    .field-row,
    .type-switch {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Meni naloga se otvara udesno, da ne izađe van ekrana */
    .account-menu ul {
        left: 0;
        right: auto;
    }

    .sections a {
        padding: 12px 12px 10px;
        font-size: 19px;
    }

    .admin-nav {
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-nav-title {
        width: 100%;
    }
}
