/* ==========================================================================
   Custom Styles - Sleek Modern News Theme (Fast, Elegant, Light)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-body: #f8f9fa;          /* Very subtle light gray */
    --bg-card: #ffffff;          /* Pure white for cards */
    --text-main: #1a1a2e;        /* Dark, high contrast text */
    --text-muted: #6c757d;       /* Muted text for dates/meta */
    --text-light: #adb5bd;       /* Very light text */
    
    --primary: #2563eb;          /* Modern crisp blue */
    --primary-hover: #1d4ed8;    /* Darker blue for hover */
    --border-light: #e5e7eb;     /* Soft borders */
    
    --success: #10b981;
    --danger: #ef4444;

    /* Typography */
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.2s ease;
}

body {
    font-family: var(--font-family) !important;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Header Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
}

.brand-wrapper i {
    color: var(--primary);
    font-size: 1.5rem;
}

.top-nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.top-nav-link:hover {
    color: var(--primary);
    background: #f1f5f9;
}

/* Page Header */
.page-title {
    font-weight: 800;
    font-size: 1.75rem;
    margin: 2rem 0 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

/* Sleek News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 4rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-main);
}

.news-card-title a {
    color: inherit;
}

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px dashed var(--border-light);
    padding-top: 16px;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-btn i {
    transition: transform var(--transition-fast);
}

.news-card:hover .read-btn i {
    transform: translateX(-4px); /* RTL */
}

/* Admin Styles - Sleek */
.admin-container {
    padding: 2rem 0;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.admin-card-header {
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-sleek {
    margin: 0;
    font-size: 0.95rem;
}

.table-sleek th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-sleek td {
    padding: 16px 24px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
}

.table-sleek tr:last-child td {
    border-bottom: none;
}

.table-sleek tbody tr:hover {
    background-color: #f8fafc;
}

.input-sleek {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 100%;
    transition: all var(--transition-fast);
    background: #f8fafc;
}

.input-sleek:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-sleek {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary-sleek {
    background: var(--primary);
    color: #fff;
}

.btn-primary-sleek:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-success-sleek {
    background: var(--success);
    color: #fff;
}

.btn-success-sleek:hover {
    background: #059669;
    color: #fff;
}

.btn-outline-sleek {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline-sleek:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Login Sleek */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.login-box-sleek {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.8);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1060;
}

.toast-modern {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-light);
    font-weight: 500;
}

.toast-modern.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success-icon { color: var(--success); font-size: 1.2rem; }
.toast-error-icon { color: var(--danger); font-size: 1.2rem; }

/* ==========================================================================
   Premium Redesign Styles (Arghavan News)
   ========================================================================== */

.bg-body-custom {
    background-color: #f4f6f9;
}

.navbar-premium {
    background: #ffffff !important;
    border-bottom: 2px solid var(--primary);
}

.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.premium-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.hero-section {
    min-height: 450px;
    height: auto;
}
@media (max-width: 991px) {
    .hero-section {
        height: auto;
    }
    .hero-slider, .premium-slider {
        height: 300px !important;
        margin-bottom: 1.5rem;
    }
}

.premium-slider .carousel-item img {
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.slider-title a {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-size: 1.15rem;
}
@media (min-width: 768px) {
    .slider-title a {
        font-size: 1.4rem;
    }
}

.slider-title a:hover {
    color: #f1c40f !important;
    text-decoration: underline !important;
}

.custom-hover-link {
    transition: all 0.2s ease;
}
.custom-hover-link:hover .handpicked-title {
    color: var(--primary);
}

.category-news-item {
    background: #ffffff;
    border: 1px solid transparent;
}
.hover-bg-light:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.transition-fast {
    transition: all 0.2s ease-in-out;
}

.hover-social {
    transition: color 0.3s ease, transform 0.3s ease;
}
.hover-social:hover {
    color: var(--hover-color) !important;
    transform: translateY(-3px);
}

.thumbnail-35 {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

