/* 
   REKOR AKADEMİ - ENTERPRISE E-COMMERCE CSS
   Strictly professional, data-dense, no AI aesthetics.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary-red: #E30A17;
    --primary-red-hover: #c40813;
    --primary-blue: #0A3A82;
    --primary-blue-dark: #062352;
    
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-gray: #F3F4F6;
    
    --border-light: #E5E7EB;
    --border-dark: #D1D5DB;
    
    --text-main: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;
    
    --radius-sm: 4px;
    --radius-md: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px; /* Standard e-commerce base size */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1440px; /* Genişletildi */
    margin: 0 auto;
    padding: 0 32px; /* Kenar boşluğu artırıldı */
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
}

.btn-red:hover {
    background-color: var(--primary-red-hover);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: white;
}

.btn-blue:hover {
    background-color: var(--primary-blue-dark);
}

.btn-outline {
    background-color: white;
    border-color: var(--border-dark);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-gray);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.top-header {
    background-color: var(--bg-gray);
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
}

.main-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--primary-blue);
    font-size: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    margin: 0 auto; /* Ortalamak için */
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto; /* Sağa yaslamak için */
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    position: relative;
}

.action-item i {
    font-size: 20px;
    color: var(--text-muted);
}

.action-item:hover i {
    color: var(--primary-blue);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--primary-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.nav-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* ==========================================================================
   PRODUCT GRID (E-commerce Style)
   ========================================================================== */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0;
}

.ecommerce-layout {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    cursor: pointer;
}

.main-content {
    flex-grow: 1;
}

.product-grid {
    display: grid;
    /* Kartların ekran genişliğine göre otomatik sığmasını sağlar (Sağdaki boşluğu doldurur) */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--border-dark);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bg-white);
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    z-index: 10;
}

.product-img {
    height: 180px;
    background-color: var(--bg-gray);
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-details {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-attributes {
    margin-bottom: 16px;
}

.attribute-row {
    display: flex;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.attribute-label {
    width: 60px;
    font-weight: 600;
    color: var(--text-main);
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap; /* Sığmayan butonların taşmasını önler */
    gap: 12px;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
}

.btn-add {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.btn-add:hover {
    background-color: var(--primary-blue-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

/* Home Page specific blocks */
/* Premium E-Commerce Landing Page Styles */
.premium-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0 140px 0;
    position: relative;
    overflow: hidden;
}

.premium-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.premium-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-blue-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.premium-hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item h4 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Kategori Kartları */
.category-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.cat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.cat-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(30, 61, 89, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.cat-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.cat-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.cat-card a {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.cat-card a:hover {
    gap: 12px;
}

/* Yorumlar (Testimonials) */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #F59E0B; /* Altın sarısı */
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author i {
    font-size: 32px;
    color: var(--border-dark);
}

.testimonial-author span {
    display: flex;
    flex-direction: column;
}

.testimonial-author small {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Masaüstü, Tablet, Mobil)
   ========================================================================== */

/* Tablet ve Geniş Ekranlı Mobiller (max-width: 1024px) */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .ecommerce-layout {
        flex-direction: column;
    }
    
    .sidebar-filters {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .hero-banner .container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 32px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .premium-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .category-showcase {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* Standart Mobil Ekranlar (max-width: 768px) */
@media (max-width: 768px) {
    .top-header {
        display: none; /* Mobilde gereksiz kalabalığı önler */
    }
    
    .main-header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 24px;
        margin-left: 0;
        flex-wrap: wrap;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
        order: 3;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .product-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sidebar-filters {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .category-showcase {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .premium-hero-content h1 {
        font-size: 36px;
    }
    
    /* Sepet Sayfası Mobilde Alt Alta Gelsin */
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Sepet İçi Tablo Daraltması */
    .cart-items > div > div:not(:first-child) {
        grid-template-columns: 1fr !important;
        gap: 16px;
        text-align: left;
    }
    
    .cart-items > div > div:not(:first-child) > div {
        text-align: left !important;
    }
    
    .cart-items > div > div:first-child {
        display: none !important; /* Mobilde tablo başlıklarını gizle */
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: #0A3A82;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6,35,82,0.82) 40%, rgba(6,35,82,0.35) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    max-width: 700px;
}

.hero-slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-slide-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin-bottom: 32px;
}

.slider-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-red);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    width: fit-content;
}

.slider-btn:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-slider { height: 360px; }
    .hero-slide-content h1 { font-size: 28px; }
    .hero-slide-content p { font-size: 14px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
}

/* ==========================================================================
   DUYURU BANNER
   ========================================================================== */
.announcement-banner {
    padding: 12px 0;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.announcement-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-text {
    flex: 1;
    line-height: 1.5;
}

.ann-detail {
    font-weight: 400;
    opacity: 0.85;
}

.ann-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    color: inherit;
    opacity: 0.7;
    flex-shrink: 0;
    border-radius: 4px;
    transition: opacity 0.2s, background 0.2s;
}

.ann-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.08);
}

/* ==========================================================================
   ADMIN PANEL — YENİ TASARIM
   ========================================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
    align-items: start;
}

/* --- Sidebar --- */
.admin-sidebar {
    background: var(--primary-blue-dark);
    border-radius: 12px;
    padding: 24px 16px;
    position: sticky;
    top: 80px;
    color: white;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    padding: 0 8px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.admin-sidebar-admin {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.admin-avatar {
    font-size: 36px;
    color: rgba(255,255,255,0.5);
    line-height: 1;
}

.admin-name {
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.admin-role {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.admin-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.admin-nav-item.active {
    background: rgba(255,255,255,0.12);
    color: white;
    font-weight: 700;
}

.active-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    margin-left: auto;
}

.admin-nav-item.logout {
    color: rgba(255,100,100,0.7);
    margin-top: 8px;
}

.admin-nav-item.logout:hover {
    background: rgba(220,50,50,0.12);
    color: #ff8080;
}

.admin-sidebar-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-brand {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 12px 8px 0;
}

.sidebar-brand a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

/* --- Admin Content --- */
.admin-content {
    min-width: 0;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-blue-dark);
    margin-bottom: 4px;
}

.admin-page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Stats Cards --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-stat-card.blue   { background: var(--primary-blue); color: white; }
.admin-stat-card.red    { background: var(--primary-red);  color: white; }
.admin-stat-card.green  { background: #059669;              color: white; }
.admin-stat-card.purple { background: #7C3AED;              color: white; }

.stat-icon {
    font-size: 28px;
    opacity: 0.85;
    flex-shrink: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 600;
}

/* --- Quick Links --- */
.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.quick-link-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-link-card i {
    font-size: 24px;
    color: var(--primary-blue);
}

.quick-link-card span {
    font-size: 13px;
    font-weight: 600;
}

.quick-link-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(10,58,130,0.1);
    transform: translateY(-2px);
}

/* --- Table Card --- */
.admin-table-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

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

.admin-table-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table thead tr {
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-gray);
}

.admin-table th {
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-table td {
    padding: 14px 16px;
}

.admin-btn-danger {
    font-size: 12px;
    color: var(--primary-red);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
}

/* --- Forms --- */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 20px 20px;
}

.admin-input {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10,58,130,0.08);
}

.admin-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Alerts --- */
.admin-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-alert.success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.admin-alert.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-layout         { grid-template-columns: 1fr; }
    .admin-sidebar        { position: static; }
    .admin-stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .admin-quick-links    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .admin-stats-grid  { grid-template-columns: 1fr 1fr; }
    .admin-quick-links { grid-template-columns: 1fr 1fr; }
    .admin-form-grid   { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BLOG STYLES (PREMIUM)
   ========================================================================== */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    display: block;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-placeholder-img {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
}

.blog-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 60px;
}

.blog-date-badge .day {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue-dark);
    line-height: 1;
}

.blog-date-badge .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    margin-top: 4px;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--primary-red);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.blog-read-time {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.blog-read-more:hover {
    color: var(--primary-red);
}

.blog-detail-hero {
    background: #f8fafc;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.blog-detail-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.blog-detail-content {
    max-width: 800px;
    margin: 40px auto;
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.blog-detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-detail-content h2, .blog-detail-content h3 {
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination .page-link:hover, .pagination .page-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-detail-hero h1 { font-size: 28px; }
}
