:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-hover: #252525;
    --primary: #00aaff;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border: #333;
    --font-family: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-dark); color: var(--text-main); font-family: var(--font-family); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.hidden { display: none !important; }

/* --- HEADER --- */
.site-header nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem 5%; 
    background-color: var(--bg-dark); 
    border-bottom: 1px solid var(--border); 
    height: 80px; 
    position: relative;
    z-index: 100;
}
.logo { font-weight: 700; font-size: 1.5rem; color: #fff; z-index: 101; }
.nav-links { display: flex; justify-content: space-around; list-style: none; gap: 20px; }
.nav-links li { margin: 0 5px; }
.nav-links a { color: var(--text-main); font-weight: 600; font-size: 1rem; position: relative; }
.nav-links a:hover { color: var(--primary); }

/* MENU TOGGLES (Desktop: Hidden) */
.burger { display: none; cursor: pointer; z-index: 101; padding: 10px; transition: opacity 0.3s; }
.nav-close-btn { display: none; }

/* --- BLOG LAYOUT --- */
.blog-wrapper { max-width: 900px; margin: 0 auto; padding: 40px 20px; min-height: 80vh; }
.blog-heading { margin-bottom: 40px; border-left: 5px solid var(--primary); padding-left: 20px; }
.blog-heading h1 { font-size: 2.5rem; color: white; line-height: 1.2; margin-bottom: 5px; }
.blog-heading p { color: var(--text-muted); }

/* --- LIST CARD (1.91:1 Ratio) --- */
.blog-card { 
    display: flex; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    margin-bottom: 30px; 
    overflow: hidden; 
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.blog-card:hover { 
    transform: translateY(-5px); 
    border-color: #555; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
}

/* Thumbnail Wrapper */
.card-img-wrap { 
    width: 40%; 
    position: relative; 
    background: #000;
    overflow: hidden;
    aspect-ratio: 1.91 / 1; 
    flex-shrink: 0;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .card-img { transform: scale(1.05); }

/* Content */
.card-content { width: 60%; padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.card-meta { font-size: 0.85rem; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.card-title { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 12px; line-height: 1.3; }
.card-title:hover { color: var(--primary); }
.card-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.read-more-btn { 
    align-self: flex-start; 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: white; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.read-more-btn i { transition: transform 0.3s; color: var(--primary); }
.blog-card:hover .read-more-btn i { transform: translateX(5px); }

/* --- SKELETON LOADER --- */
.skeleton-card { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 30px; height: 240px; overflow: hidden; }
.sk-img { width: 40%; background: #252525; animation: pulse 1.5s infinite; flex-shrink: 0; }
.sk-body { width: 60%; padding: 25px; display: flex; flex-direction: column; gap: 15px; }
.sk-line { height: 12px; background: #252525; border-radius: 4px; animation: pulse 1.5s infinite; }
.w-75 { width: 75%; } .w-50 { width: 50%; } .w-100 { width: 100%; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* --- FOOTER --- */
.site-footer { background-color: #0c0c0c; color: var(--text-muted); padding: 3rem 5%; margin-top: 4rem; border-top: 1px solid var(--border); }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-nav a, .footer-social a { color: var(--text-muted); margin: 0 10px; font-size: 0.95rem; }
.footer-nav a:hover, .footer-social a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; font-size: 0.85rem; }

/* --- ADS --- */
.ad-unit { margin: 2rem auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-sticky-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: #000; z-index: 999; display: flex; flex-direction: column; align-items: center; padding: 10px; border-top: 1px solid #333; }
.ad-close { align-self: flex-end; background: #333; color: #fff; border: 1px solid #555; cursor: pointer; padding: 2px 8px; font-size: 12px; margin-bottom: 5px; }

/* --- UTILS --- */
.loading-sentinel { text-align: center; padding: 20px; color: #666; }
.spinner { border: 3px solid #333; border-top: 3px solid var(--primary); border-radius: 50%; width: 30px; height: 30px; margin: 0 auto; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Stack Cards */
    .blog-card, .skeleton-card { flex-direction: column; height: auto; }
    .card-img-wrap, .sk-img { width: 100%; aspect-ratio: 1.91 / 1; }
    .card-content, .sk-body { width: 100%; padding: 20px; }
    .card-title { font-size: 1.25rem; }
    .footer-container { flex-direction: column; text-align: center; }

    /* Mobile Header Logic */
    .burger { display: block; } 
    
    /* Hide Burger Icon when Menu is Open */
    body.menu-open .burger { opacity: 0; pointer-events: none; }
    
    /* Lock Page Scroll */
    body.menu-open { overflow: hidden; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200; /* Above Burger */
        gap: 2rem;
    }
    
    .nav-links.nav-active { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; }

    /* Close Button Styling */
    .nav-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        background: transparent;
        border: none;
        color: white;
        font-size: 3rem;
        cursor: pointer;
        line-height: 1;
        z-index: 201; /* Highest */
    }
}
