/* =============================
   PALETA: redroom
   ============================= */
:root {
    --bg-body:        #050007;
    --bg-header:      #19000a;
    --bg-card:        #1e050d;
    --bg-elevated:    #24060f;
    --bg-chip:        #320814;

    --border-subtle:  #4b1220;

    --accent-main:    #ff1744;   /* krv crvena */
    --accent-alt:     #ff9100;
    --accent-soft:    #ff5252;

    --text-main:      #ffeef0;
    --text-muted:     #ffb3c1;

    --pill-bg:        #3b1019;
    --pill-hover:     #ff1744;
    --pill-text:      #ffeef0;

    --chip-bg:        #4b1521;
    --chip-bg-hover:  #ff1744;

    --btn-bg:         #ff1744;
    --btn-bg-hover:   #ff4b6e;
    --btn-text:       #050007;

    --badge-ok-bg:    #0b7a2f;
    --badge-ok-text:  #caffd9;
    --badge-bad-bg:   #7a0b2f;
    --badge-bad-text: #ffd4df;

    --pagination-bg:        #2b0b14;
    --pagination-border:    #4b1220;
    --pagination-active-bg: #ff1744;
    --pagination-active-tx: #050007;
}

/* =============================
   GLOBAL
   ============================= */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    transition: all 0.2s ease-in-out;
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #3a0012 0, var(--bg-body) 55%);
    color: var(--text-main);
}

h1, h2, h3 {
    text-align: left;
    color: var(--accent-main);
    padding-left: 20px;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--accent-main);
}
a:hover {
    color: #ffffff;
}

/* Layout */
.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding-right: 10px;
    max-width: 1380px;
    margin: 0 auto;
}

.sidebar {
    width: 260px;
    background: var(--bg-elevated);
    padding: 20px;
    box-shadow: 2px 0 14px rgba(0,0,0,0.6);
    border-right: 1px solid var(--border-subtle);
}

.content-area {
    flex: 1;
    padding: 20px;
    padding-bottom: 60px;
}

/* =============================
   HEADER
   ============================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #19000a, #3b000f, #19000a);
    padding: 10px 20px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.7);
    border-bottom: 2px solid var(--accent-main);
}

.header-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Logo */
.fancy-logo {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 26px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: 1px;
}
.fancy-logo .xxx {
    color: var(--accent-main);
    text-shadow: 0 0 6px rgba(255, 23, 68, 0.9);
    margin-right: 4px;
}
.fancy-logo .force {
    color: var(--accent-soft);
    text-shadow: 0 0 6px rgba(255, 82, 82, 0.9);
}

/* Search form u headeru */
.search-form {
    display: flex;
    align-items: center;
    background: #2b050d;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    flex: 1;
    max-width: 360px;
}
.search-form input {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    width: 100%;
}
.search-form input::placeholder {
    color: var(--text-muted);
}
.search-form button {
    background: var(--btn-bg);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--btn-text);
    font-weight: 600;
    border-left: 1px solid rgba(0,0,0,0.4);
}
.search-form button:hover {
    background: var(--btn-bg-hover);
}

/* NAV meni */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn, .dropbtn {
    background: #310811;
    color: var(--text-main);
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.menu-btn:hover,
.dropbtn:hover {
    background: var(--accent-main);
    color: #050007;
    transform: translateY(-1px);
}

/* Dropdown kategorije + dodatni meniji možeš tu da vežeš */
.dropdown {
    position: relative;
}
.dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #20030a;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    min-width: 280px;
    padding: 10px;
    z-index: 999;
    max-height: 420px;
    overflow-y: auto;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
}
.dropdown-content.show {
    display: grid;
}
.dropdown-content a {
    color: var(--text-main);
    text-decoration: none;
    background: #330712;
    padding: 7px 9px;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-content a:hover {
    background: var(--chip-bg-hover);
    color: #050007;
}

/* Mobilni burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.nav-toggle span {
    height: 3px;
    width: 24px;
    background: var(--accent-main);
    border-radius: 2px;
}

/* =============================
   VIDEO GRID
   ============================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.video-box {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0,0,0,0.8);
    animation: fadeInUp 0.5s ease both;
    border: 1px solid rgba(255,255,255,0.04);
}
.video-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(255, 23, 68, 0.55);
}

.thumb-wrapper {
    position: relative;
    background: #000;
}
.thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.thumb-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 999px;
}

.video-box .title {
    font-size: 15px;
    font-weight: 600;
    color: #ffe5e9;
    padding: 10px 10px 0;
}
.video-box .meta {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 10px 10px;
}

/* Sidebar kategorije */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.category-box {
    padding: 8px 14px;
    background: var(--pill-bg);
    border-radius: 999px;
    color: var(--pill-text);
    transition: background 0.2s, transform 0.1s;
    font-size: 14px;
}
.category-box:hover {
    background: var(--pill-hover);
    color: #050007;
    font-weight: 600;
    transform: translateY(-1px);
}

/* Tagovi */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.tag-link {
    background: #3b0a14;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.tag-link:hover {
    background: var(--accent-main);
    color: #050007;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--pagination-bg);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid var(--pagination-border);
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s;
}
.pagination a:hover {
    background: var(--accent-main);
    color: var(--pagination-active-tx);
    transform: translateY(-1px);
}
.pagination a.active {
    background: var(--pagination-active-bg);
    color: var(--pagination-active-tx);
    font-weight: bold;
}
.pagination span {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 10px;
    cursor: default;
}

/* Sticky notice bar */
.notice-bar {
    position: sticky;
    bottom: 0;
    width: 100%;
    background: #ff6ec7;
    color: #1a1a1a;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.notice-bar strong {
    color: #000;
}

/* Footer */
footer,
.site-footer {
    text-align: center;
    background: #140208;
    color: #999;
    padding: 20px;
    border-top: 2px solid var(--accent-main);
    margin-top: 40px;
    font-size: 14px;
}

.footer-links a {
    color: var(--accent-main);
    margin: 0 10px;
}
.footer-links a:hover {
    color: #fff;
}

/* Kategorije inline */
.category-list-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px 10px;
}
.category-list-inline .category-box {
    background: var(--pill-bg);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--pill-text);
    font-size: 14px;
}
.category-list-inline .category-box:hover {
    background: var(--pill-hover);
    color: #050007;
    font-weight: bold;
}

/* Ad slot */
.ad-slot {
    width: 300px;
    height: 250px;
    background: #2b050d;
    border: 1px dashed var(--accent-main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: var(--accent-main);
    border-radius: 10px;
}

/* Video Player Container */
.video-player-container {
    width: 100%;
    max-width: 1280px;
    margin: auto;
}

/* Responsive Embed Wrapper */
.responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
.responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Fade animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-grid .video-box {
    opacity: 0;
    transform: translateY(20px);
}
.video-grid .video-box.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease-in-out;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .main-wrapper {
        flex-direction: column;
        padding-right: 0;
    }
    .sidebar {
        width: 100%;
        order: 2;
        box-shadow: none;
        border-right: none;
        border-top: 1px solid var(--border-subtle);
    }
    .content-area {
        order: 1;
        padding: 15px;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .search-form {
        max-width: 100%;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        max-height: none;
        display: none !important;
        grid-template-columns: 1fr !important;
    }
    .dropdown-content.show {
        display: flex !important;
        flex-direction: column;
    }
    .dropdown-content a {
        background: #310811;
        border-bottom: 1px solid var(--border-subtle);
    }
}
