:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --primary: #818cf8; /* Kontrast üçün bir az daha açıq rəng (köhnə: #6366f1) */
    --accent: #f43f5e;
    --text-white: #f8fafc;
    --text-muted: #cbd5e1; /* Yazıların oxunması üçün yeni boz rəng */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background-color: var(--bg); color: var(--text-white); overflow-x: hidden; width: 100%; }

/* Header */
header {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 22px; font-weight: 800; color: var(--text-white); text-decoration: none; }
.logo span { color: var(--primary); }

/* Menyu Düyməsi */
.homebar-trigger {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #1e293b;
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 30px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    overflow-y: auto; /* Uzun menyularda skrol olması üçün */
}
.side-menu.active { right: 0; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 2500;
    backdrop-filter: blur(5px);
}
.menu-overlay.active { display: block; }

.side-menu ul { list-style: none; margin-top: 40px; display: block !important; opacity: 1 !important; visibility: visible !important; }
.side-menu li { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; display: block !important; width: 100% !important; }
.side-menu a { color: #ffffff !important; text-decoration: none; font-size: 18px; font-weight: 600; transition: 0.3s; display: block !important; }
.side-menu a:hover { color: var(--primary) !important; transform: translateX(5px); }

/* Grid Sistemi */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; /* Badge-lərin düzgün yerləşməsi üçün */
}

.post-card p {
    color: var(--text-muted); /* Oxunaqlı boz tonu */
    line-height: 1.6;
}

/* Slideshow */
.slideshow-container {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}
.slide {
    width: 100%;
    height: 100%;
    display: none;
    background-size: cover;
    background-position: center;
    padding: 40px;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slide-active { display: flex !important; opacity: 1; }
.slide-content { position: relative; z-index: 2; color: #ffffff; }

/* Kontrastı artırılmış Nişanlar (Badge) */
.badge-vip {
    background: #fbbf24; /* Daha tünd qızılı */
    color: #000;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
}
.badge-new {
    background: #0ea5e9; /* Daha tünd göy (Kontrast üçün) */
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Bölmə Başlıqları */
.section-title {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin: 40px 0 20px 0;
    font-size: 24px;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Axtarış */
.search-trigger {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}
.search-trigger:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* Responsive */
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }
    .side-menu { width: 85%; }
    .slideshow-container { height: 300px; }
}


/* Axtarış Overlay Fonu */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95); /* Tünd şık fon */
    backdrop-filter: blur(20px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.search-overlay.active {
    display: flex !important;
}

/* Axtarış Formu Konteyneri */
.search-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Giriş Sahəsi (Input) */
.search-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    outline: none;
    transition: 0.3s;
    margin-bottom: 15px;
    text-align: center;
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Axtar Düyməsi */
.search-container button[type="submit"] {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-container button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* Bağla Düyməsi */
.search-close {
    margin-top: 25px;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: none;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-close:hover {
    color: var(--accent);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}
