/* --- ÜMUMİ RESET VƏ TƏMƏL --- */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0; padding: 0; background-color: #f4f7f6;
    display: flex; flex-direction: column; min-height: 100vh;
    color: #334155;
}

/* --- HEADER (HƏR ZAMAN ÖNDƏ) --- */
header {
    background-color: #004a99;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 99999 !important; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LOGO DİZAYNI --- */
.logo { display: flex; align-items: center; }
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}
.logo a:hover { transform: scale(1.05); background: transparent !important; }
.logo-img { height: 38px; width: auto; display: block; object-fit: contain; }
.logo h1 { 
    color: white; margin: 0; font-size: 22px; text-transform: none; 
    font-weight: 700; letter-spacing: -0.5px; height: 38px;
    display: flex; align-items: center;
}
.logo span { color: #3b82f6; font-weight: 800; }

/* --- NAVİQASİYA (VAHİD DİZAYN) --- */
nav#mainNav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
nav#mainNav ul li a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600; font-size: 14px; padding: 0 15px;
    border-radius: 6px; transition: 0.3s; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; border: none !important; gap: 8px;
}
nav#mainNav ul li a:hover { background: rgba(255, 255, 255, 0.15) !important; }

/* Bildiriş Sistemi */
.notif-bell-wrapper { position: relative; font-size: 20px !important; padding: 0 10px !important; }
.notif-badge-custom {
    position: absolute; top: 2px; right: 2px; background: #ef4444; color: white;
    font-size: 10px; padding: 2px 5px; border-radius: 50%; border: 2px solid #004a99;
    font-weight: 800; line-height: 1;
}
.logout-txt { color: rgba(255, 255, 255, 0.7) !important; }
.logout-txt:hover { color: white !important; }

/* --- HAMBURGER --- */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger span { width: 26px; height: 3px; background: white; border-radius: 2px; transition: 0.3s; }

/* --- LAYOUT (3 SÜTUNLU) --- */
.container {
    display: flex; flex-direction: row; max-width: 1400px;
    margin: 25px auto; gap: 20px; padding: 0 20px; width: 100%;
    align-items: flex-start; position: relative; z-index: 1;
}
.sidebar-left, .sidebar-right, .main-content {
    background: white; padding: 25px; border-radius: 12px;
    border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.sidebar-left, .sidebar-right { flex: 1; min-width: 260px; }
.main-content { flex: 3; min-width: 0; }

/* --- SÜRƏTLİ AXTARIŞ (YENİ SİMMETRİK DİZAYN) --- */
.sidebar-left input, .sidebar-right input, 
.sidebar-left .form-control, .sidebar-right .form-control {
    width: 100% !important; 
    height: 42px;
    padding: 10px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: 0.2s;
    outline: none;
}

.sidebar-left button, .sidebar-right button,
.sidebar-left .btn-primary, .sidebar-right .btn-primary {
    width: 100% !important; 
    height: 42px;
    background-color: #1e293b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-left button:hover, .sidebar-right button:hover {
    background-color: #0f172a;
    transform: translateY(-1px);
}

/* --- MƏQALƏ KARTI (ANA SƏHİFƏ ÜÇÜN) --- */
.article-card {
    background: white; padding: 25px; border-radius: 16px; border: 1px solid #f1f5f9;
    margin-bottom: 25px; transition: 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.07); border-color: #3b82f6; }
.article-card h3 { margin: 0 0 12px 0; color: #1e293b; font-size: 22px; font-weight: 700; }
.meta-info-new { display: flex; gap: 15px; font-size: 13px; color: #64748b; margin-bottom: 15px; flex-wrap: wrap; }
.summary-text-new { color: #475569; line-height: 1.7; font-size: 15px; margin-bottom: 20px; }

/* --- YENİ: POST.PHP (DETAL SƏHİFƏSİ) STİLLƏRİ --- */
.post-container { 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 50px; 
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    position: relative;
    z-index: 1;
    min-height: 600px; 
}

.post-header-new {
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 30px;
    margin-bottom: 35px;
}

/* Redaktə düyməsi (YENİ ƏLAVƏ) */
.btn-edit-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fef3c7;
    color: #92400e;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #fde68a;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-edit-inline:hover {
    background-color: #fde68a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-module-tag { 
    display: inline-block; 
    background: #eff6ff; 
    color: #2563eb; 
    padding: 7px 18px; 
    border-radius: 50px; 
    font-size: 13px; 
    margin-bottom: 20px; 
    font-weight: 700;
}

.post-title-new { 
    font-size: 2.5rem; 
    color: #0f172a; 
    line-height: 1.2; 
    margin: 0 0 20px 0; 
    font-weight: 800;
}

.post-meta-new {
    display: flex;
    gap: 25px;
    color: #64748b;
    font-size: 14px;
}

.post-content-new { 
    line-height: 1.9; 
    font-size: 18px; 
    color: #334155; 
    margin-top: 30px;
    min-height: 200px;
}

.post-content-new img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 12px;
    margin: 25px 0;
}

.comments-section { 
    margin-top: 50px; 
    background: #f8fafc; 
    padding: 35px; 
    border-radius: 18px; 
}

/* --- FOOTER SİSTEMİ --- */
.main-footer {
    background-color: #1e293b; color: #f8fafc; padding: 60px 0 20px 0;
    margin-top: auto;
    border-top: 4px solid #004a99;
}
.footer-container {
    max-width: 1400px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 0 20px;
}
.footer-column h4 { font-size: 18px; margin-bottom: 20px; color: #3b82f6; font-weight: 700; }
.footer-column h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: #3b82f6; }
.footer-column p { font-size: 14px; line-height: 1.6; color: #94a3b8; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-column ul li a:hover { color: white; padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #64748b; }

/* --- MOBİL RESPONSİVE --- */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    nav#mainNav {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #004a99; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 100000 !important;
    }
    nav#mainNav.open { display: block !important; }
    nav#mainNav ul { flex-direction: column; gap: 10px; }
    nav#mainNav ul li { width: 100%; }
    nav#mainNav ul li a { width: 100%; justify-content: flex-start; }
    .container { flex-direction: column !important; }
    .sidebar-left, .sidebar-right, .main-content { width: 100% !important; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .post-container { padding: 30px 20px; margin: 15px; min-height: auto; }
    .post-title-new { font-size: 1.8rem; }
    /* Mobildə redaktə düyməsi tam genişlikdə olsun */
    .btn-edit-inline { width: 100%; justify-content: center; margin-top: 15px; }
}