/* ═══════════════════════════════════════════════════════════════════════════
   NO-LIMIT PORTAL — Design Tokens
   ═══════════════════════════════════════════════════════════════════════════
   Baziran na fenix-tokens.css, prilagodjen za javni portal no-limit.world.
   Podrzava dark (default) i light temu.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FONTS (isti kao fenix) ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
    /* Brand */
    --gold:           #c9a84c;
    --gold-hover:     #dbb85a;
    --gold-dim:       rgba(201,168,76,0.12);
    --gold-border:    rgba(201,168,76,0.28);
    --green:          #10b981;
    --red:            #ef4444;
    --blue:           #3b82f6;

    /* Typography */
    --font-sans:      "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-heading:   "Barlow Condensed", var(--font-sans);
    --font-mono:      "JetBrains Mono", "Fira Code", monospace;

    /* Spacing */
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;

    /* Radius */
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;

    /* Transitions */
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME (Default)
   ═══════════════════════════════════════════════════════════════ */
:root, html[data-theme="dark"] {
    --bg:            #0a0a0f;
    --surface:       #111214;
    --surface2:      #181a1d;
    --border:        #252830;
    --border2:       #334155;
    --text:          #e2e8f0;
    --text-dim:      #94a3b8;
    --text-muted:    #64748b;
    --white:         #f0ede8;
    --shadow-card:   0 4px 12px rgba(0,0,0,0.3);
    --shadow-hover:  0 8px 24px rgba(0,0,0,0.4);
    --nav-bg:        #111214;
    --nav-border:    #252830;
    --footer-bg:     #111214;
    --input-bg:      #111214;
    --input-border:  #252830;
    --input-text:    #e2e8f0;
    --toast-bg:      #065f46;
    --code-bg:       #111;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
    --bg:            #f8fafc;
    --surface:       #ffffff;
    --surface2:      #f1f5f9;
    --border:        #e2e8f0;
    --border2:       #cbd5e1;
    --text:          #1e293b;
    --text-dim:      #475569;
    --text-muted:    #94a3b8;
    --white:         #0f172a;
    --shadow-card:   0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover:  0 8px 24px rgba(0,0,0,0.12);
    --nav-bg:        #ffffff;
    --nav-border:    #e2e8f0;
    --footer-bg:     #f1f5f9;
    --input-bg:      #ffffff;
    --input-border:  #e2e8f0;
    --input-text:    #1e293b;
    --toast-bg:      #059669;
    --code-bg:       #f1f5f9;

    /* Gold stays vivid but slightly darker for contrast */
    --gold:          #b8963e;
    --gold-hover:    #a68535;
    --gold-dim:      rgba(184,150,62,0.15);
    --gold-border:   rgba(184,150,62,0.35);
}

/* ═══════════════════════════════════════════════════════════════
   BASE RESET & GLOBALS
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition-base); }
a:hover { color: var(--gold-hover); }

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
.nl-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-base);
}
.nl-nav-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}
.nl-nav-brand span { color: var(--gold); }
.nl-nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nl-nav-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-base);
}
.nl-nav-links a:hover { color: var(--white); }

/* Theme toggle button */
.nl-theme-toggle {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-base);
}
.nl-theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* Language selector */
.nl-lang-select {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: var(--font-sans);
    appearance: none;
    transition: var(--transition-base);
}
.nl-lang-select:hover { border-color: var(--gold); }
.nl-lang-select:focus { outline: none; border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.nl-hero {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.nl-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.nl-hero h1 span { color: var(--gold); }
.nl-hero .nl-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 8px;
}
.nl-hero .nl-founder {
    font-size: 0.85rem;
    color: var(--gold);
    margin-top: 16px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.nl-section {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.nl-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    text-align: center;
}
.nl-section-sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 0.95rem;
}
.nl-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.nl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.nl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-slow);
}
.nl-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.nl-card-icon { font-size: 2rem; margin-bottom: 12px; }
.nl-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.nl-card p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 12px; }
.nl-card-link { font-size: 0.85rem; color: var(--gold); font-weight: 500; }
.nl-card-link i { margin-left: 4px; font-size: 0.7rem; }

/* ═══════════════════════════════════════════════════════════════
   CILJEVI
   ═══════════════════════════════════════════════════════════════ */
.nl-ciljevi { list-style: none; max-width: 700px; margin: 0 auto; }
.nl-ciljevi li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.nl-ciljevi li:last-child { border: none; }
.nl-cilj-num { color: var(--gold); font-weight: 700; font-size: 1.1rem; min-width: 28px; }

/* ═══════════════════════════════════════════════════════════════
   PARTNER / AMBASSADOR CARDS
   ═══════════════════════════════════════════════════════════════ */
.nl-partner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition-base);
}
.nl-partner:hover { border-color: var(--gold-border); }
.nl-partner-flag { font-size: 2rem; }
.nl-partner-name { font-weight: 600; color: var(--white); }
.nl-partner-role { font-size: 0.85rem; color: var(--text-dim); }

.nl-amb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition-base);
}
.nl-amb-card:hover { border-color: var(--gold); }
.nl-amb-name { font-weight: 600; color: var(--white); font-size: 1rem; }
.nl-amb-role { font-size: 0.85rem; color: var(--gold); }
.nl-amb-empty {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition-base);
}
.nl-amb-empty:hover { border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.nl-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-slow);
    cursor: pointer;
    border: none;
    text-align: center;
}
.nl-btn-gold { background: var(--gold); color: #000; }
.nl-btn-gold:hover { background: var(--gold-hover); color: #000; transform: translateY(-1px); }
.nl-btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    margin-left: 12px;
}
.nl-btn-outline:hover { background: var(--gold); color: #000; }

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.nl-input, .nl-select, .nl-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--input-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-base);
}
.nl-input:focus, .nl-select:focus, .nl-textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.nl-textarea { min-height: 120px; resize: vertical; }
.nl-select { appearance: none; cursor: pointer; }
.nl-label { display: block; font-size: 0.9rem; color: var(--gold); margin-bottom: 6px; font-weight: 500; }
.nl-required { color: var(--red); }

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.nl-cta {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.nl-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition-base);
}
.nl-footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.nl-footer a { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.nl-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--toast-bg);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    z-index: 200;
    animation: nlSlideIn 0.3s ease;
}
@keyframes nlSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .nl-nav-links { gap: 10px; }
    .nl-hero { padding: 50px 16px; }
    .nl-section { padding: 40px 16px; }
    .nl-btn-outline { margin-left: 0; margin-top: 8px; }
    .nl-nav-links a { font-size: 0.8rem; }
}
