/**
 * SarkariResult Clone - Main Stylesheet
 * Red Theme - Similar to SarkariResult.com.cm
 */

/* ===============================================
   GLOBAL STYLES
   =============================================== */
:root {
    --primary-red: #dc3545;
    --dark-red: #c82333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

/* ===============================================
   TOP HEADER BAR
   =============================================== */
.top-header {
    background-color: var(--dark-red);
    padding: 8px 0;
    font-size: 14px;
}

.top-header a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-header a:hover {
    opacity: 0.8;
}

/* ===============================================
   MAIN HEADER
   =============================================== */
.main-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-logo {
    font-size: 32px;
    font-weight: bold;
}

.site-logo a {
    transition: transform 0.3s;
    display: inline-block;
}

.site-logo a:hover {
    transform: scale(1.05);
}

.search-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    font-weight: bold;
}

/* ===============================================
   NAVIGATION MENU
   =============================================== */
.navbar-dark {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* ===============================================
   SIDEBAR BOXES
   =============================================== */
.sidebar-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: bold;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #e9ecef;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: block;
    padding: 12px 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background-color: #fff3cd;
    padding-left: 20px;
    color: var(--primary-red);
    font-weight: bold;
}

.category-list i {
    width: 25px;
    color: var(--primary-red);
}

/* ===============================================
   CONTENT BOX
   =============================================== */
.content-box {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 15px 20px;
    margin: -25px -25px 20px -25px;
    border-radius: 8px 8px 0 0;
    font-size: 22px;
    font-weight: bold;
}

/* ===============================================
   POSTS TABLE
   =============================================== */
.posts-table {
    margin-bottom: 0;
}

.posts-table thead {
    background-color: var(--light-gray);
}

.posts-table thead th {
    font-weight: bold;
    color: var(--dark-gray);
    border-bottom: 2px solid var(--primary-red);
}

.posts-table tbody tr {
    transition: background-color 0.2s;
}

.posts-table tbody tr:hover {
    background-color: #fffbf0;
}

.post-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
}

.post-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.post-meta {
    margin-top: 8px;
}

.post-meta .badge {
    margin-right: 5px;
    font-size: 12px;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.last-date {
    color: var(--primary-red);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* ===============================================
   IMPORTANT UPDATES SIDEBAR
   =============================================== */
.important-updates {
    border-left: 4px solid var(--primary-red);
}

.important-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #dee2e6;
}

.important-list li:last-child {
    border-bottom: none;
}

.important-list a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.important-list a:hover {
    color: var(--primary-red);
}

/* ===============================================
   POST DETAIL PAGE
   =============================================== */
.post-detail {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-header {
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.post-title {
    color: var(--dark-gray);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-meta-info {
    font-size: 14px;
}

.post-short-desc {
    margin-bottom: 25px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3 {
    color: var(--primary-red);
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.post-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.post-content table th,
.post-content table td {
    border: 1px solid #dee2e6;
    padding: 10px;
}

.post-content table th {
    background-color: var(--light-gray);
    font-weight: bold;
}

.source-link {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.share-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.related-posts {
    margin-top: 30px;
}

.related-posts h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* ===============================================
   ADVERTISEMENT SPACE
   =============================================== */
.ad-space {
    text-align: center;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 2px dashed #ccc;
    padding: 50px 20px;
    color: #999;
    font-size: 18px;
    font-weight: bold;
}

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1d21 100%);
    color: #f8f9fa;
    padding: 40px 0 0 0;
    margin-top: 50px;
}

.site-footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

.site-footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--primary-red);
}

.site-footer ul {
    padding-left: 0;
}

.site-footer ul li {
    list-style: none;
    padding: 5px 0;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 768px) {
    .site-logo {
        font-size: 24px;
    }
    
    .search-form {
        margin-top: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .post-title {
        font-size: 22px;
    }
    
    .posts-table {
        font-size: 14px;
    }
    
    .sidebar-box {
        margin-top: 20px;
    }
    
    .post-detail {
        padding: 20px;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.badge {
    font-weight: 600;
    padding: 5px 10px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.alert {
    border-radius: 8px;
}

/* ===============================================
   ANIMATION
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-box,
.sidebar-box,
.post-detail {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
    .top-header,
    .main-header,
    .navbar,
    .sidebar-box,
    .share-buttons,
    .site-footer,
    .ad-space {
        display: none !important;
    }
    
    .post-detail {
        box-shadow: none;
        padding: 0;
    }
}
