/* ===========================
   GLOBAL RESET & BASE
   - osnovni reset i CSS varijable
=========================== */

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

html, body {
    margin: 0;
    padding: 0;
}

/* Bazne promenljive (fallback) */
:root {
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.4);

    /* default (biće override-ovano temama) */
    --bg-body: #050816;
    --bg-elevated: #0b0f1a;
    --bg-soft: #111827;
    --topbar-bg: #050816;
    --border-subtle: #1f2937;

    --text-primary: #f9fafb;
    --text-muted: #9ca3af;
    --text-soft: #6b7280;

    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.1);

    --danger: #f97373;
    --success: #22c55e;
    --warning: #facc15;

    --status-online: #22c55e;
    --status-offline: #6b7280;
    --status-hidden: #a855f7;
    --status-afk: #f97316;

    --chip-bg: rgba(15,23,42,0.8);
}

/* ===========================
   TEME
   body class="theme-dark|theme-light|theme-ocean"
=========================== */

body.theme-dark {
    --bg-body: #050816;
    --bg-elevated: #0b0f1a;
    --bg-soft: #111827;
    --topbar-bg: #020617;
    --border-subtle: #1f2937;

    --text-primary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-soft: #6b7280;

    --accent: #38bdf8;
    --accent-soft: rgba(56,189,248,0.1);

    --chip-bg: rgba(15,23,42,0.9);
}

body.theme-light {
    --bg-body: #f3f4f6;
    --bg-elevated: #ffffff;
    --bg-soft: #e5e7eb;
    --topbar-bg: #ffffff;
    --border-subtle: #d1d5db;

    --text-primary: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;

    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);

    --chip-bg: #f9fafb;
}

body.theme-ocean {
    --bg-body: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
    --bg-elevated: rgba(15,23,42,0.9);
    --bg-soft: rgba(15,23,42,0.8);
    --topbar-bg: rgba(15,23,42,0.96);
    --border-subtle: rgba(148,163,184,0.4);

    --text-primary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-soft: #6b7280;

    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.12);

    --chip-bg: rgba(15,23,42,0.9);
}

/* ===========================
   BODY & GLOBAL LAYOUT
=========================== */

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
}

/* Links – bez linije, samo shine na hover */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
    text-decoration: none;
    color: #e0f2fe;
    text-shadow: 0 0 6px rgba(34,211,238,0.6);
}

/* Glavni layout (ispod headera) */
.layout-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-main {
    flex: 1;

    /* centriran “glavni stub” ispod headera + tagline-a */
    max-width: 1120px;
    width: 100%;
    margin: 82px auto 24px;      /* 82px gore zbog header+tagline, auto centriranje, 24px dole */

    /* unutrašnji padding levo/desno + malo dole */
    padding: 16px 16px 32px;
}

/* ===========================
   TOPBAR (gornji crni bar)
   - ovo je onaj uzan bar iznad svega, ako ga koristiš
=========================== */

.topbar {
    background: var(--topbar-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.topbar__brand {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===========================
   BUTTONS (globalno)
=========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-primary);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* varijante */
.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #020617;
    box-shadow: 0 8px 18px rgba(56,189,248,0.25);
}
.btn--primary:hover {
    box-shadow: 0 10px 24px rgba(56,189,248,0.35);
}

.btn--ghost {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-muted);
}
.btn--ghost:hover {
    background: rgba(148,163,184,0.1);
}

.btn--soft {
    background: var(--accent-soft);
    border-color: transparent;
}
.btn--soft:hover {
    background: rgba(56,189,248,0.18);
}

/* veličine */
.btn--xs {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* ===========================
   GLOBAL AVATAR + STATUS DOT
   - koristi se za header, liste, notifikacije...
   - HTML: <div class="rfbw-avatar rfbw-avatar--md"><img...><span class="rfbw-status-dot rfbw-status-dot--online"></span></div>
=========================== */

.rfbw-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: visible; /* status tačka može malo da "izađe" */
    background: radial-gradient(circle at 30% 20%, #38bdf8, #6366f1);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
    flex-shrink: 0;
}

/* veličine avatara, po potrebi dodaješ klasu */
.rfbw-avatar--sm {
    width: 28px;
    height: 28px;
}

.rfbw-avatar--md {
    width: 34px;
    height: 34px;
}

.rfbw-avatar--lg {
    width: 40px;
    height: 40px;
}

.rfbw-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.rfbw-avatar__initial {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* status tačkica koja leži NA avataru */
.rfbw-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #020617; /* tamni ring da se odvaja od avatara */
}

/* boje uz varijable */
.rfbw-status-dot--online {
    background: var(--status-online);
}

.rfbw-status-dot--offline {
    background: var(--status-offline);
}

.rfbw-status-dot--hidden {
    background: var(--status-hidden);
}

.rfbw-status-dot--afk {
    background: var(--status-afk);
}

/* ===========================
   STATUS INDICATOR (tekstualni)
   - npr. "● Online" kao labela, bez avatara
=========================== */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.80rem;
    color: var(--text-muted);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--status-offline);
    box-shadow: 0 0 0 2px rgba(15,23,42,0.9);
}

.status-dot--online {
    background: var(--status-online);
    box-shadow: 0 0 8px rgba(34,197,94,0.8);
}

.status-dot--offline {
    background: var(--status-offline);
}

.status-dot--hidden {
    background: var(--status-hidden);
    box-shadow: 0 0 8px rgba(168,85,247,0.7);
}

.status-dot--afk {
    background: var(--status-afk);
    box-shadow: 0 0 8px rgba(249,115,22,0.7);
}

.status-label {
    text-transform: capitalize;
}

/* ===========================
   CARDS / CONTAINERS (globalne kartice)
=========================== */

.card {
    background: var(--bg-elevated);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
}

/* mekši “unutrašnji” card, koristi istu bazu, samo nijansu drugačiju pozadinu */
.card--soft {
    background: var(--bg-soft);
}

/* Vertikalni ritam – razmak između kartica u istom stubu */
.card + .card {
    margin-top: 10px;  /* ako želiš malo više, stavi 12px */
}


/* ===========================
   FORMS (globalno)
=========================== */

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.input--error {
    border-color: var(--danger);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-soft);
}

/* Errors */
.field-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 2px;
}

/* ===========================
   BADGE / CHIP (globalni mali bedževi)
=========================== */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-subtle);
    color: var(--text-soft);
    background: var(--chip-bg);
}

/* ===========================
   UTILS (pomoćne klase)
=========================== */

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* layout helper za auth forme
   → login/register kartice centrirane ispod headera */
.auth-shell {
    min-height: calc(100vh - 48px); /* 48px = topbar */
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 24px; /* ovde podešavaš razmak od headera */
}

/* ===========================
   HEADER / NAV (logo, meni, login/register, hamburger)
=========================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    /* 🌊 Ocean gradient */
    background: radial-gradient(
        circle at center,
        rgba(34, 211, 238, 0.22) 0%,
        rgba(15, 23, 42, 0.70) 40%,
        rgba(10, 16, 32, 0.95) 85%,
        rgba(6, 10, 22, 1) 100%
    );

    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* traka ispod headera – tagline */
.site-header__tagline {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 9998;

    background: radial-gradient(
        circle at center,
        #0e253d 0%,        /* vrlo suptilna ocean sredina */
        #0b1628 45%,       /* prirodan prelaz */
        #070d19 80%,       /* tamnije */
        #050815 100%       /* gotovo crno na bokovima */
    );

    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.site-logo__mark {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #22d3ee, #6366f1);
    box-shadow: 0 0 16px rgba(56,189,248,0.85);
    position: relative;
    overflow: hidden;
}

/* unutrašnja kugla – “globe” */
.site-logo__globe {
    width: 85%;
    height: 85%;
    border-radius: 999px;
    border: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.7), transparent 55%),
        radial-gradient(circle at 80% 120%, rgba(15,23,42,0.9), transparent 65%),
        linear-gradient(0deg, rgba(148,163,184,0.15) 48%, transparent 52%),
        linear-gradient(90deg, rgba(148,163,184,0.15) 48%, transparent 52%);
    position: relative;
    box-shadow: inset 0 0 8px rgba(15,23,42,0.8);
}

/* mali “shine” koji se pomera */
.site-logo__globe::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 120%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0, transparent 60%);
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
    animation: logo-shine 3.8s ease-in-out infinite;
}

@keyframes logo-shine {
    0%   { transform: translate3d(-40%, -20%, 0); opacity: 0; }
    25%  { opacity: 0.7; }
    50%  { transform: translate3d(40%, 10%, 0); opacity: 0; }
    100% { transform: translate3d(-40%, -20%, 0); opacity: 0; }
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.site-logo__line1 {
    font-size: 0.60rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-soft);
}

.site-logo__line2 {
    font-size: 0.60rem;
    font-weight: 600;
}

/* Desktop nav */

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
}

.site-nav__link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav__link:hover {
    background: rgba(148,163,184,0.12);
    color: var(--text-primary);
}

.site-nav__link--active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Mobile toggle (hamburger) */

.site-nav-toggle {
    display: none;
    position: relative;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.site-nav-toggle__bar {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-muted);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-nav-toggle--open .site-nav-toggle__bar:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.site-nav-toggle--open .site-nav-toggle__bar:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* badge na hamburgeru (notifikacije) */
.site-nav-toggle__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    /* sve ostalo (boja, veličina, font, senka) dolazi iz .rfbw-badge */
}

.site-nav-toggle__badge--empty {
    display: none!important;
}

/* ===========================
   NOTIFICATION BADGES
   - friends / header avatar / profile / hamburger
=========================== */

/* GLOBAL core za sve badge-ove (brojevi i tačke) */
.rfbw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.9);
}

/* CRVENI – privatne notifikacije (avatar, myprofile) */
.rfbw-badge--red {
    background: var(--danger);
}

/* PLAVI – activity (timeline, chat, challenges, hamburger…) */
.rfbw-badge--blue {
    background: #3b82f6;
}

/* VARIJANTA “TAČKA” (dot) – koristi istu boju, samo bez broja */
.rfbw-badge--dot {
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
}

/* Crveni pulsirajući badge NA AVATARU – koristi globalni .rfbw-badge + samo pozicija i animacija */
.header-avatar__notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    transform-origin: center center;
    animation: rfbwNotifPulse 1.4s ease-in-out infinite;
}

/* Badge pored "Notifications" naslova na My Profile – samo razmak */
.profile-notif-badge {
    margin-left: 6px;
    vertical-align: middle;
}

/* Badge pored linkova u glavnom / mobilnom meniju – mali razmak levo */
.site-nav__link-badge,
.site-nav-mobile__link-badge {
    margin-left: 4px;
}

/* Klasa za pulsiranje crvenih i plavih badge-ova */
.rfbw-badge--pulse {
    animation: rfbwNotifPulse 1.4s ease-in-out infinite;
    transform-origin: center center;
}

/* Pulsiranje za notifikacije (avatar, možeš koristiti i za druge) */
@keyframes rfbwNotifPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.0);
    }
}

/* Mobile nav container */

.site-nav-mobile {
    display: none;
    position: fixed;
    top: 82px;              /* 48px header + ~34px tagline */
    left: 0;
    right: 0;
    z-index: 9997;

    flex-direction: column;
    padding: 8px 16px 12px;
    max-width: 1120px;
    margin: 0 auto;

    /* NOVO: pozadina i odvajanje od sadržaja ispod */
    background: rgba(15, 23, 42, 0.97);                  /* skoro full dark, bez čitanja ispod */
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);  /* tanka linija kao "kraj" menija */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);         /* da deluje kao panel koji izlazi */
    backdrop-filter: blur(6px);
}



.site-nav-mobile--open {
    display: flex;
}

.site-nav-mobile__link {
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.site-nav-mobile__link:hover {
    background: rgba(148,163,184,0.12);
    color: var(--text-primary);
}

.site-nav-mobile__link--active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* Auth links u headeru (Login / Register) */

.auth-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.60rem;
}

.auth-nav__link {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-nav__link:hover {
    color: var(--accent);
}

.auth-nav__link--highlight {
    color: var(--accent);
}

.auth-nav__divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
}

/* Header leve/desne grupe */

.site-header__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

/* Linkovi pored username-a */

.header-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.header-link:hover {
    color: var(--accent);
}

.header-username {
    font-size: 0.82rem;
    color: var(--text-primary);
}

/* toggle za status u headeru kao link */

.status-toggle-link {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-soft);
    cursor: pointer;
    transform: translateY(1px);
    
}

.status-toggle-link:hover {
    color: var(--accent);
}

/* header user container (avatar + logout) */

.site-header__user-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive – mobilni header */

@media (max-width: 768px) {
    .site-header__inner {
        padding-inline: 14px;
    }

    .site-nav {
        display: none;
    }

    .site-nav-toggle {
        display: inline-flex;
    }
}

/* Na najmanjim – prilagođavanje logo teksta / kugle */

@media (max-width: 480px) {
    .site-header__inner {
        padding-inline: 10px;
    }

    .site-logo__line1 {
        font-size: 0.55rem;
        letter-spacing: 0.12em;
    }

    .site-logo__line2 {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .site-logo__mark {
        width: 20px;
        height: 20px;
        background: radial-gradient(circle at 30% 0%, #22d3ee, #6366f1);
        box-shadow:
            0 0 10px rgba(56,189,248,0.9),
            0 0 22px rgba(56,189,248,1),
            0 0 40px rgba(37,99,235,0.95);
    }

    .site-logo__globe {
        box-shadow: inset 0 0 10px rgba(15,23,42,0.7);
    }

    .site-logo__globe::after {
        opacity: 0.75;
    }
}

/* ===========================
   USER BAR (donji red nakon logina)
=========================== */

.user-bar {
    max-width: 1120px;
    margin: 4px auto 0;
    padding: 6px 16px 8px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    font-size: 0.82rem;
}

/* okvir boja prema statusu na user pill */
.user-pill--online {
    border-color: var(--status-online);
    box-shadow: 0 0 12px rgba(34,197,94,0.4);
}

.user-pill--offline {
    border-color: var(--status-offline);
}

.user-pill--hidden {
    border-color: var(--status-hidden);
    box-shadow: 0 0 12px rgba(168,85,247,0.3);
}

.user-pill--afk {
    border-color: var(--status-afk);
    box-shadow: 0 0 12px rgba(249,115,22,0.3);
}

/* avatar unutar user bara (za sada poseban stil;
   kasnije se može prebaciti na .rfbw-avatar) */
.user-pill__avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #22c55e, #16a34a);
    font-size: 0.78rem;
    font-weight: 600;
    color: #022c22;
    box-shadow: 0 0 10px rgba(34,197,94,0.7);
}

.user-pill__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-pill__line1 {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-pill__line2 {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.user-pill__status-label {
    color: var(--text-primary);
}

.user-pill__note {
    margin-left: 6px;
    color: var(--text-muted);
}

.user-pill__settings {
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-soft);
    padding: 4px 7px;
    font-size: 0.8rem;
    cursor: pointer;
}

.user-pill__settings:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* malo skuplje na mobilnom */
@media (max-width: 600px) {
    .user-bar {
        padding-inline: 12px;
    }

    .user-pill {
        padding: 6px 9px;
        gap: 8px;
    }

    .user-pill__line1 {
        font-size: 0.78rem;
    }

    .user-pill__line2 {
        font-size: 0.75rem;
    }

    .site-header__user-compact {
        gap: 6px;
    }
}

/* ===========================
   TAGLINE STRIP – simple, elegant
=========================== */

.tagline {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2px 12px 3px; /* sužena traka */
}

.tagline__btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

.tagline__text {
    font-size: 0.68rem;
    color: #f3f4f6;
    text-align: center;
    letter-spacing: 0.01em;
    opacity: 0.92;

    text-shadow:
        0 0 4px rgba(248,250,252,0.35),
        0 0 10px rgba(34,211,238,0.45);

    animation: tagline-text-glow 7s ease-in-out infinite;
}

/* breathing shine */
@keyframes tagline-text-glow {
    0% {
        text-shadow:
            0 0 2px rgba(248,250,252,0.25),
            0 0 6px rgba(15,23,42,0.8);
    }
    40% {
        text-shadow:
            0 0 6px rgba(248,250,252,0.55),
            0 0 14px rgba(34,211,238,0.6);
    }
    100% {
        text-shadow:
            0 0 2px rgba(248,250,252,0.25),
            0 0 6px rgba(15,23,42,0.8);
    }
}

.tagline__btn:hover .tagline__text {
    opacity: 1;
    text-shadow:
        0 0 8px rgba(248,250,252,0.7),
        0 0 18px rgba(34,211,238,0.75);
}

/* MOBILE OPTIMIZATION for tagline */
@media (max-width: 480px) {
    .tagline {
        padding: 2px 10px 2px;
    }

    .tagline__text {
        font-size: 0.56rem;
        line-height: 1.25;
        white-space: nowrap;
    }
}

/* ===========================
   AUTH PAGES – Login & Register
=========================== */

/* Kartice */

.login-card,
.register-card {
    width: 100%;
    margin: 0 auto;
}

.login-card {
    max-width: 420px;
}

.register-card {
    max-width: 520px;
}

/* Naslovi / podnaslovi */

.login-title,
.register-title {
    margin: 4px 0 4px;
    font-size: 1.4rem;
}

.login-subtitle,
.register-subtitle {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Alert blokovi na auth stranicama */

.login-alert,
.register-alert {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.login-alert--error,
.register-alert--error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

/* Social / Google login dugme */

.login-social,
.register-social {
    margin-bottom: 16px;
}

.auth-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.1s ease,
        box-shadow 0.16s ease,
        opacity 0.16s ease;
}

.auth-google-btn:hover {
    background: rgba(15,23,42,0.9);
    border-color: rgba(148,163,184,0.7);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
    text-decoration: none;
}

.auth-google-btn--disabled {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.auth-google-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 0 6px rgba(15,23,42,0.45);
}

.auth-google-text {
    font-size: 0.9rem;
}

/* Divider (login/register) */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
    opacity: 0.6;
}

/* Login meta (forgot password) */

.auth-meta-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    margin-bottom: 8px;
}

.auth-link-small {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.auth-link-small:hover {
    color: var(--accent);
}

/* Footer – login/register */

.auth-footer-note,
.register-footer-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.auth-link,
.register-link {
    color: var(--accent);
    margin-left: 4px;
}

.auth-link:hover,
.register-link:hover {
    text-decoration: underline;
}

/* Login & Register submit dugmad */

.login-submit,
.register-submit {
    width: 100%;
}

.login-submit {
    margin-top: 4px;
}

.register-submit {
    margin-top: 24px;
}

/* Register – specifične stvari */

.section-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin: 12px 0 6px;
}

.account-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.account-option {
    position: relative;
    border-radius: 10px;
    padding: 10px 10px 9px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease;
}

.account-option:hover {
    transform: translateY(-1px);
    border-color: var(--accent-soft);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.55);
}

.account-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-option.active {
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(56, 189, 248, 0.45);
}

.account-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.account-desc {
    font-size: 0.78rem;
    color: var(--text-soft);
}

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

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    margin-top: 4px;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-row span a {
    color: var(--accent);
}

.checkbox-row span a:hover {
    text-decoration: underline;
}

.small-help {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 2px;
}

.group-box {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.5);
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* Password strength */

.password-wrapper {
    position: relative;
}

.toggle-btn {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-soft);
    font-size: 0.8rem;
    cursor: pointer;
}

.strength-bar {
    margin-top: 3px;
    height: 4px;
    border-radius: 2px;
    background: #111827;
    overflow: hidden;
}

.strength-bar-inner {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.strength-hint {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 2px;
}

/* Responsive auth layout */

@media (max-width: 560px) {
    .login-card,
    .register-card {
        max-width: 100%;
    }

    .account-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   FONT SIZE RESPONSIVENESS (globalno)
=========================== */

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

/* Bazni font za desktop/laptop */
body {
    font-size: 16px;
}

/* Tablet + normalan mobilni */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    h2 {
        font-size: clamp(1.1rem, 4.2vw, 1.5rem);
    }

    p,
    .text-muted {
        font-size: clamp(0.82rem, 3.6vw, 0.95rem);
    }

    .btn {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .site-nav-mobile__link {
        font-size: 0.9rem;
    }
}

/* Mali telefoni (stari Android, uži ekrani) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    h2 {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }

    p,
    .text-muted {
        font-size: clamp(0.78rem, 4vw, 0.9rem);
    }

    .btn {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}

/* ===========================
   LOGIN ALERT OVERRIDES (specifično za login)
   - dodatni stilovi za login alert poruke
=========================== */

.login-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.login-alert--error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.login-alert--success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
}


/* GLOBAL: LEVEL + TRUST BADGES */
/* LVL bedž */
.user-level-pill {
    font-size: 0.70rem;
    padding: 1px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-height: 17px;
}

/* PLAVI – LVL */
.user-level-pill--xp {
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.6);
    color: #bfdbfe;
}

/* ZLATNI – TRUST LVL */
.user-level-pill--trust {
    background: rgba(234,179,8,0.12);
    border: 1px solid rgba(234,179,8,0.55);
    color: #facc15;
    font-weight: 600;
}

/* ===========================
   GLOBAL TEXT ACTION LINKS
   - plavi "action" linkovi i sivi secondary linkovi
   - koriste se za: Add friend, Follow, Heart, Edit profile, clear, itd.
=========================== */

.inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Glavni plavi tekst-link (akcije) */
.action-link {
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--accent, #38bdf8);
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition:
        color 0.12s ease,
        transform 0.08s ease,
        opacity 0.08s ease;
}

.action-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
    transition: width 0.12s ease;
}

.action-link:hover {
    color: var(--accent-soft, #7dd3fc);
    transform: translateY(-0.5px);
}

.action-link:hover::after {
    width: 100%;
}

.action-link:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* specifična varijanta za Heart, ako želiš kasnije dodatne efekte */
.action-link--heart {
    color: var(--accent, #38bdf8);
}

/* separator tačkica između akcija */
.action-separator {
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* Sekundarni sivi tekst-link (Block/Report, clear, sitne akcije) */
.secondary-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    transition:
        color 0.12s ease,
        opacity 0.08s ease;
}

.secondary-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
    transition: width 0.12s ease;
}

.secondary-link:hover::after {
    width: 100%;
}

/* “danger” varijanta (Block / Report / Delete / clear u crvenkastom tonu) */
.secondary-link--danger {
    color: #884747ff;
}

.secondary-link--danger:hover {
    color: #fecaca;
}
.card-icon {
    width: 7px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 1px;        /* bliže tekstu */
    margin-left: 3px;
    transform: translateY(0px); /* lepše poravnanje */
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* CRVENI KARTON */
.card-icon--red {
    background: #ff0000ff;
}

/* ŽUTI KARTON */
.card-icon--yellow {
    background: #ffcc00ff;
}

