/* ==========================================================================
   REALBLIK NEWSLETTER
   ========================================================================== */
.newsletter-box {
    background: #121212;
    /* Črno ozadje, kot tvoji stebri */
    padding: 50px;
    border-radius: 30px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.custom-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #444 !important;
    color: white !important;
    padding: 12px 20px;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #f1c40f !important;
    box-shadow: none;
}

.custom-input::placeholder {
    color: #888;
}


/* ==========================================================================
   REALBLIK FORUM - ULTIMATE CONSOLIDATED CSS (2026)
   Desktop & Mobile & High Contrast & Compact Layout
   ========================================================================== */
:root {
    --gold: #ffd700;
    --gold-dark: #b89b00;
    --gold-alpha: rgba(255, 215, 0, 0.1);
    --bg-black: #050505;
    --card-bg: #111111;
    --input-bg: #1a1a1a;
    --border-color: #333333;
    --text-pure: #ffffff;
    --text-readable: #eeeeee;
    --text-muted: #cccccc;
    --transition: 0.25s ease-in-out;
}

.form-control,
.form-select,
textarea {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 10px !important;
}

.form-control::placeholder {
    color: #777 !important;
}

.form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15) !important;
}

/* 3. GUMBI */
.btn-gold {
    background-color: var(--gold) !important;
    color: #000 !important;
    font-weight: 750 !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none !important;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
}

.reply-btn-custom {
    background-color: var(--gold-alpha) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: 6px 16px !important;
    border-radius: 8px;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
}

.reply-btn-custom:hover {
    background-color: var(--gold) !important;
    color: #000 !important;
}

/* 4. KATEGORIJE SIDEBAR (Desktop) */
.category-sidebar {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.cat-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 5px;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cat-btn:hover,
.cat-btn.active {
    color: var(--gold);
    padding-left: 10px;
}

/* 5. THREAD KARTICE (Kompaktna postavitev) */
.thread-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.thread-card:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.thread-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
}

.badge-cat {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
}

/* STATS BOX (Views & Replies) */
.stat-item {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--gold);
    margin-right: 5px;
}

/* META (Author & Date) */
.thread-meta {
    font-size: 0.8rem;
    color: #bbbbbb !important;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.thread-meta .author-name {
    color: var(--gold) !important;
    font-weight: 600;
}

.thread-meta .post-date {
    color: #ffffff !important;
    opacity: 0.7;
}

/* 6. DETAIL STRAN */
.main-post {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.main-post .content {
    color: var(--text-readable) !important;
    line-height: 1.8;
    font-size: 1.1rem;
}

.reply-card {
    background: #0d0d0d;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
}

.reply-content {
    color: var(--text-readable);
    font-size: 1rem;
    line-height: 1.6;
}

/* 7. MODAL FIX */
.modal-content {
    background-color: #111 !important;
    border: 1px solid var(--gold) !important;
    color: #fff !important;
}

.modal-header,
.modal-footer {
    border-color: var(--border-color) !important;
}

.btn-close-white {
    filter: invert(1) brightness(200%);
}

/* 8. POMOŽNI RAZREDI */
.text-gold {
    color: var(--gold) !important;
}

.text-readable-muted {
    color: var(--text-muted) !important;
}

.text-readable-content {
    color: var(--text-readable) !important;
}

/* =========================================
   122. GLOBALNE NASTAVITVE (Skupno vsem podstarni kategorij)
   ========================================= */
:root {
    --transition-smooth: all 0.3s ease;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

.hero-title {
    padding: 60px 0 40px;
    text-align: center;
    background: white;
    margin-bottom: 2rem;
}

/* Črne kategorije na vrhu */
.category-box {
    background: #121212;
    color: white !important;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid #333;
    text-decoration: none;
    display: block;
    height: 100%;
}

.category-box:hover {
    transform: translateY(-10px);
}

.category-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.category-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vsebinske sekcije */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}

/* Pod-kartice (Info cards) */
.info-sub-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 12px;
    height: 100%;
    position: relative;
    transition: var(--transition-smooth);
}

.info-sub-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-sub-card h6 {
    font-weight: 700;
    margin-bottom: 10px;
}

.info-sub-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Dodatki (Linki, Tag-i, Formule) */
.link-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list a {
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.link-list a:hover {
    text-decoration: underline;
}

.tag {
    display: inline-block;
    background: #eee;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 4px;
    color: #555;
}

.formula-box {
    background: #eef2f7;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
}

/* =========================================
   2. SPECIFIČNI STILI PO STRANEH
   ========================================= */

/* --- A) OPERATIVNI STROŠKI --- */
.theme-operativni {
    background-color: #f4f7f6;
}

.theme-operativni .hero-title {
    border-bottom: 3px solid #3498db;
}

.theme-operativni .category-box:hover {
    border-color: #3498db;
    background: #1e1e1e;
}

.theme-operativni .category-box i {
    color: #3498db;
}

.theme-operativni .content-section {
    border-left: 8px solid #121212;
}

.theme-operativni .section-energetika {
    border-left-color: #f1c40f;
}

.theme-operativni .section-fiksni {
    border-left-color: #3498db;
}

.theme-operativni .section-vzdrzevanje {
    border-left-color: #2ecc71;
}

.theme-operativni .section-davki {
    border-left-color: #e74c3c;
}

.theme-operativni .info-sub-card:hover {
    border-color: #3498db;
}

/* --- B) FINANCIRANJE --- */
.theme-financiranje {
    background-color: #f1f5f9;
}

.theme-financiranje .hero-title {
    border-bottom: 3px solid #e2b13c;
}

.theme-financiranje .category-box {
    background: #0f172a;
    border-color: #334155;
}

.theme-financiranje .category-box:hover {
    border-color: #e2b13c;
    background: #1e293b;
}

.theme-financiranje .category-box i {
    color: #e2b13c;
}

.theme-financiranje .content-section {
    border-top: 5px solid #0f172a;
}

.theme-financiranje .section-kredit {
    border-top-color: #3b82f6;
}

.theme-financiranje .section-stroski {
    border-top-color: #64748b;
}

.theme-financiranje .section-refinanciranje {
    border-top-color: #10b981;
}

.theme-financiranje .info-sub-card:hover {
    border-color: #e2b13c;
}

/* --- C) INVESTICIJE --- */
.theme-investicije {
    background-color: #f4f7f6;
}

.theme-investicije .hero-title {
    border-bottom: 3px solid #27ae60;
}

.theme-investicije .category-box:hover {
    border-color: #27ae60;
    background: #2c3e50;
}

.theme-investicije .category-box i {
    color: #27ae60;
}

.theme-investicije .content-section {
    border-left: 10px solid #2c3e50;
}

.theme-investicije .section-adaptacije {
    border-left-color: #e67e22;
}

.theme-investicije .section-energetika {
    border-left-color: #27ae60;
}

.theme-investicije .section-oprema {
    border-left-color: #3498db;
}

.theme-investicije .info-sub-card:hover {
    border-color: #27ae60;
}

/* --- D) DONOS --- */
.theme-donos {
    background-color: #f8f9fa;
}

.theme-donos .hero-title {
    border-bottom: 3px solid #f1c40f;
}

.theme-donos .category-box:hover {
    border-color: #f1c40f;
    background: #1a2a6c;
}

.theme-donos .category-box i {
    color: #f1c40f;
}

.theme-donos .content-section {
    border-right: 8px solid #1a2a6c;
}

.theme-donos .section-najem {
    border-right-color: #3498db;
}

.theme-donos .section-davki {
    border-right-color: #9b59b6;
}

.theme-donos .section-roi {
    border-right-color: #f1c40f;
}

.theme-donos .info-sub-card:hover {
    border-color: #1a2a6c;
}

.theme-donos .formula-box {
    color: #1a2a6c;
}

/* ==========================================================================
   RESPONSIVE / MOBILE OPTIMIZACIJA
   ========================================================================== */

@media (max-width: 991px) {

    /* Horizontalne kategorije */
    #categoryFilters {
        display: flex !important;
        overflow-x: auto;
        padding: 5px 0 15px 0;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #categoryFilters::-webkit-scrollbar {
        display: none;
    }

    .category-sidebar {
        background: transparent !important;
        border: none;
        padding: 0 !important;
    }

    .cat-btn {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 30px;
        padding: 8px 16px;
        width: auto;
        text-align: center;
    }

    .cat-btn.active {
        background: var(--gold-alpha);
        border-color: var(--gold);
    }

    /* Kompaktnost na mobilnih napravah */
    .thread-card {
        padding: 15px;
        margin-bottom: 10px;
    }

    .thread-title {
        font-size: 1.05rem;
    }

    .thread-meta {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-post {
        padding: 20px !important;
    }

    .main-post h1 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .btn-gold {
        width: 100%;
        margin-top: 10px;
    }

    .search-box {
        width: 100%;
    }
}

/* ==========================================================================
   20. Grid Posts INDEX stran
   ========================================================================== */
.eco-node-link {
    text-decoration: none !important;
}

.eco-node-card {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eco-node-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    filter: brightness(1);
    /* Če so ikone zlate, jih pustimo, sicer lahko uporabiš filter za barvo */
    transition: transform 0.3s ease;
}

.eco-node-card span {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover učinek - zlata obroba in povečava ikone */
.eco-node-link:hover .eco-node-card {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.15);
    transform: translateY(-5px);
}

.eco-node-link:hover img {
    transform: scale(1.1);
}

/* Prilagoditev za mobilne naprave (manjši napisi) */
@media (max-width: 576px) {
    .eco-node-card {
        padding: 15px 5px;
    }

    .eco-node-card span {
        font-size: 0.7rem;
    }

    .eco-node-card img {
        width: 30px;
        height: 30px;
    }
}

.custom-search {
    border-radius: 30px;
    padding: 12px 25px 12px 50px;
    border: 2px solid #333;
    background: #f8f9fa;
    transition: all 0.3s;
    font-size: 1rem;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

.custom-search:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    outline: none;
}

/* Filtri in Kategorije */
.filter-btn {
    border: 1px solid #333;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: #000 !important;
    color: #ffd700 !important;
    border-color: #ffd700 !important;
}

/* Kartica objave */
.post-card-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.post-card-wrapper:hover {
    transform: translateY(-8px);
}

.custom-card {
    background-color: #000 !important;
    border-radius: 20px;
    border: 1px solid #222;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Slika (samo če obstaja) */
.post-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Tagi */
.posts-tag {
    background-color: #fff;
    color: #000;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.posts-title {
    color: #ffffff !important;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.3;
    font-size: 1.25rem;
}

/* Opis - svetlejša siva za boljšo berljivost na črni */
.posts-description {
    color: #e0e0e0 !important;
    /* Veliko svetlejša od prejšnje #aaa */
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kategorija (nad naslovom) - Zlata */
.category-label {
    color: #ffd700 !important;
    /* Svetleča zlata */
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Čas branja - Nevtralno bela/siva */
.reading-time {
    color: #cccccc !important;
    font-size: 0.7rem;
}

/* Gumb Preberi več - Močna zlata */
.read-more {
    color: #ffd700 !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: auto;
    display: inline-block;
    padding-top: 15px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ffffff !important;
    /* Ob prehodu z miško postane bel */
}

/* Mobilne prilagoditve */
@media (max-width: 768px) {
    .posts-title {
        font-size: 1.1rem;
    }

    .custom-search {
        font-size: 0.9rem;
    }

    #categoryFilters {
        overflow-x: auto;
        white-space: nowrap;
        display: block !important;
        padding-bottom: 10px;
    }

    .filter-btn {
        display: inline-block;
    }
}






/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
    background-color: #000000;
    color: #ffffff;
}

.footer-logo {
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
}

.footer-link,
.legal-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: 0.2s;
}

.footer-link:hover {
    opacity: 1;
}

#plavajoci-pas {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #1a1a1a;
    color: white;
    z-index: 9999;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pas-vsebina {
    padding: 15px 25px;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.sprejmiPiskotke {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}