/* 🎨 1. Global Variables & Reset */
:root {
    --primary-color: #d93025; /* Google Red */
    --google-blue: #1a73e8;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --bg-light: #f8fafc;
    --border-light: #dadce0;
    --surface: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
body { 
    font-family: 'Public Sans', 'Mukta', 'Inter', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    margin: 0; 
    line-height: 1.6;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }

/* 🧭 2. Header & Navigation (Google News Style) */
.main-header { 
    background: var(--surface); 
    border-bottom: 1px solid var(--border-light); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: var(--shadow-sm);
}

.header-grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr 1fr; 
    align-items: center; 
    padding: 10px 0; 
    max-width: 1300px;
    margin: 0 auto;
}

.site-logo { height: 45px; width: auto; }
.logo-text { font-size: 26px; font-weight: 900; color: var(--primary-color); letter-spacing: -1px; }

.search-form { background: #f1f3f4; border-radius: 24px; display: flex; align-items: center; padding: 4px 20px; border: 1px solid transparent; }
.search-form:focus-within { background: white; border-color: var(--google-blue); box-shadow: var(--shadow-sm); }
.search-input { background: none; border: none; width: 100%; padding: 8px; font-size: 15px; outline: none; color: var(--text-dark); }

/* AI Topics Pills */
.ai-nav-bar { background: var(--surface); border-top: 1px solid #f1f3f4; padding: 10px 0; }
.nav-scroll { display: flex; align-items: center; gap: 10px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ai-label { font-size: 11px; font-weight: 800; color: var(--primary-color); text-transform: uppercase; margin-right: 10px; }
.nav-pill { 
    background: #f1f3f4; 
    color: var(--text-dark); 
    padding: 6px 18px; 
    border-radius: 50px; 
    font-size: 13px; 
    font-weight: 600; 
    border: 1px solid transparent;
}
.nav-pill:hover { background: var(--primary-color); color: white; }

/* 🚩 3. Breaking News Ticker */
.news-ticker { height: 42px; background: #fff; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; }
.ticker-label { background: var(--primary-color); color: white; padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }

/* 📰 4. News Cards & Grid (Home Page) */
.hero-card { border-radius: 20px !important; transition: 0.3s; border: 1px solid var(--border-light) !important; background: white; }
.hero-image-box { position: relative; height: 400px; overflow: hidden; border-radius: 20px 0 0 20px; }
.hero-image-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.hero-card:hover img { transform: scale(1.02); }

.news-feed-card { 
    transition: 0.3s; 
    border-radius: 16px !important; 
    border: 1px solid var(--border-light) !important; 
    overflow: hidden;
    background: white;
}
.news-feed-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md) !important; }

.feed-img-box { position: relative; height: 190px; overflow: hidden; background: #eee; }
.feed-img-box img { width: 100%; height: 100%; object-fit: cover; }
.feed-category { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: var(--primary-color); 
    color: white; 
    font-size: 10px; 
    padding: 3px 12px; 
    border-radius: 4px; 
    font-weight: 800; 
}

/* 🖼️ 5. News Cards & Images (Premium Fix) */
.post-card-img-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* पक्का 16:9 अनुपात */
    overflow: hidden;
    border-radius: 12px;
    background-color: #f8f9fa; /* फोटो लोड होने तक साफ़ बैकग्राउंड */
    position: relative;
}

.post-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* फोटो को फ्रेम में फिट करेगा */
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* होवर करने पर फोटो हल्की ज़ूम होगी */
.post-card-img-container:hover img {
    transform: scale(1.08);
}

/* 🌑 6. Premium Footer */
.footer-news { 
    background: #1a1a1b; 
    color: #9aa0a6; 
    padding: 60px 0 30px; 
    border-top: 1px solid #2d2e2f;
}

.footer-head { 
    color: #fff; 
    font-weight: 700; 
    font-size: 1.1rem; 
    margin-bottom: 25px; 
    letter-spacing: 0.5px;
}

.footer-link { 
    color: #9aa0a6; 
    display: block; 
    margin-bottom: 12px; 
    font-size: 14px; 
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-link:hover { 
    color: #fff; 
    transform: translateX(5px); /* धीरे से दाईं ओर खिसकेगा */
}

/* 📱 7. Responsive Fixes (Mobile optimization) */
@media (max-width: 768px) {
    .header-grid { 
        grid-template-columns: 1fr 1fr; 
        padding: 10px 15px; 
    }
    
    .header-center, .desktop-only { 
        display: none; 
    }
    
    .hero-image-box { 
        height: 250px; 
        border-radius: 20px 20px 0 0; 
    }
    
    /* मोबाइल पर एआई बटन सिर्फ आइकॉन दिखेगा */
    .ai-float-btn span { 
        display: none; 
    }
    
    .ai-float-btn { 
        padding: 15px; 
        bottom: 20px; 
        right: 20px; 
        border-radius: 50%; /* गोल बटन */
    }

    .post-card-img-container {
        border-radius: 8px; /* मोबाइल पर थोड़े कम घुमावदार किनारे */
    }
}