@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
    --bg-base: #050507;
    --card-surface: rgba(18, 18, 24, 0.65);
    --card-hover: rgba(25, 25, 34, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --accent-red: #ff3355;
    --accent-red-glow: rgba(255, 51, 85, 0.5);
    --accent-cyan: #00f0ff;
    --accent-purple: #8b5cf6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
}

/* --- EPIC BACKGROUND --- */
.bg-texture {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -3;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -20%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(255, 51, 85, 0.12), transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* --- MODERN FLOATING NAVBAR --- */
.glass-header {
    position: fixed;
    top: 1.5rem; 
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 100px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: var(--bg-base);
    background: #fff;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.mobile-menu-btn { display: none; }

/* --- MAIN CONTAINER --- */
#app-content {
    margin-top: 120px;
    padding: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.slide-in { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in { animation: fadeIn 0.8s ease forwards; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

/* Typography Enhancements */
h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* --- PREMIUM CARDS --- */
.glass-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    background: var(--card-hover);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 30px 60px rgba(0,0,0,0.5);
}

.glass-card:hover::before { opacity: 1; }

/* --- HERO DEBT COUNTER --- */
.hero-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.counter-container {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 51, 85, 0.03) 0%, rgba(10,10,15,0.8) 100%);
    border: 1px solid rgba(255, 51, 85, 0.2);
    box-shadow: 0 0 80px rgba(255, 51, 85, 0.05) inset, 0 20px 50px rgba(0,0,0,0.5);
}

.debt-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.pulse-dot {
    width: 10px; height: 10px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 85, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255, 51, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 85, 0); }
}

.debt-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 6.5vw, 6.5rem);
    white-space: nowrap;
    font-weight: 800;
    color: #ff1122; /* Ostra, fiksna in trdna tiskarska barva s 100% opacity in brez preliva */
    animation: bleed-anim 2.5s infinite alternate ease-in-out;
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -2px;
}

@keyframes bleed-anim {
    0% {
        text-shadow: 0px 0px 5px rgba(255, 20, 20, 0.4), 
                     0px 2px 2px rgba(150, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0px 5px 12px rgba(255, 0, 0, 0.6), 
                     0px 25px 8px rgba(150, 0, 0, 0.4),
                     0px 45px 20px rgba(80, 0, 0, 0.2);
    }
}

@keyframes bleed-anim {
    0% {
        text-shadow: 0px 0px 5px rgba(255, 20, 20, 0.4), 
                     0px 2px 2px rgba(150, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0px 5px 12px rgba(255, 0, 0, 0.6), 
                     0px 25px 8px rgba(150, 0, 0, 0.4),
                     0px 45px 20px rgba(80, 0, 0, 0.2);
    }
}

.debt-rate {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: #fff;
    background: rgba(255, 51, 85, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 51, 85, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-card h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ABSURDS LIST --- */
.absurd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.absurd-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.absurd-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-subtle);
}

.absurd-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.abs-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.4rem 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.absurd-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.absurd-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.abs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.cost-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abs-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-red);
}

/* --- ABOUT SECTION --- */
.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-text strong {
    color: #fff;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    .debt-value { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    
    /* Responsive NavBar */
    .glass-header { 
        padding: 0.5rem; 
        border-radius: 20px; 
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-links {
        width: 100%;
        justify-content: space-evenly;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }
    
    .about-content { grid-template-columns: 1fr; }
    #app-content { margin-top: 150px; padding: 1rem; }
}
@media (max-width: 500px) {
    h1 { font-size: 1.8rem; }
    .debt-value { font-size: clamp(1.4rem, 7.5vw, 2.1rem); letter-spacing: -0.5px; white-space: nowrap; }
    .nav-btn { font-size: 0.85rem; padding: 0.4rem 0.6rem; }
    .glass-card { padding: 1.2rem; }
    .counter-container { padding: 2rem 1rem; }
}

/* KRPAN POPUP TOAST */
.krpan-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 10, 15, 0.95);
    backdrop-filter: blur(15px);border: 1px solid rgba(255, 60, 60, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 20px rgba(255,60,60,0.15);
    z-index: 9999;
    width: 90%;
    max-width: 360px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    opacity: 1;
}

.krpan-popup.hide {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.krpan-popup-avatar {
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(255,60,60,0.2), transparent);
    min-width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,60,60,0.4);
    box-shadow: 0 0 10px rgba(255,60,60,0.2) inset;
}

.krpan-popup-text {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.5;
    font-style: italic;
}

.krpan-popup-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}
.krpan-popup-close:hover {
    color: #ff3c3c;
}

/* BLOOD DRIP EFFECT */
.blood-drop {
    position: absolute;
    bottom: 25%;
    background: #ff0015;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 5px #ff0015, inset 0 -2px 3px rgba(100,0,0,0.5);
    opacity: 0.9;
    animation: dripDrop 3s cubic-bezier(0.5, 0, 1, 1) forwards;
    z-index: 2;
    pointer-events: none;
}

@keyframes dripDrop {
    0% { transform: translateY(0) scaleY(1); opacity: 1; }
    10% { transform: translateY(10px) scaleY(1.3); opacity: 0.9; }
    90% { transform: translateY(180px) scaleY(0.4); opacity: 0.4; }
    100% { transform: translateY(220px) scaleY(0); opacity: 0; }
}
