/* style.css - Microsoft Edge Start Page Inspired Layout (Bright & Vibrant) */

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

:root {
    --bg-base: #f4f7fe;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #64748b;
    --accent-primary: #ec4899;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
    --hover-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    --header-height: 80px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

body::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
}

/* TOP HEADER (Edge Style) */
.top-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Search Bar (Visual Element) */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-bar {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.search-bar:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Quick Links (Navigation) */
.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}

/* MAIN CONTENT (Full Width) */
.main-content {
    flex: 1;
    padding: calc(var(--header-height) + 3rem) 2rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
}

/* MASONRY GRID */
.news-grid {
    column-count: 4;
    column-gap: 2rem;
}

@media (max-width: 1400px) { .news-grid { column-count: 3; } }
@media (max-width: 1000px) { .news-grid { column-count: 2; } }
@media (max-width: 600px) {
    .news-grid { column-count: 1; }
    .top-header { 
        flex-direction: column; 
        height: auto; 
        padding: 1rem; 
        gap: 0.75rem; 
        position: relative; /* Prevent header overlapping content on mobile */
    }
    .search-container { margin: 0; width: 100%; }
    .header-nav { 
        flex-wrap: wrap; 
        justify-content: center; 
        width: 100%; 
        gap: 0.5rem;
    }
    .main-content { 
        padding: 2rem 1rem; /* Reduced padding for mobile, header is now relative so top padding is standard */
    }
    .page-header h2 {
        font-size: 2rem; /* Scale down heading */
    }
    .brand h1 {
        font-size: 1.25rem;
    }
}

/* NEWS CARD */
.news-card {
    break-inside: avoid;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-img-container {
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.news-card:hover .card-img-container img { transform: scale(1.05); }

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.source {
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.date { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #0f172a;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* FOOTER & COMPLIANCE PAGES */
.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--accent-primary); }

.footer p { color: #94a3b8; font-size: 0.85rem; }

/* AdSense Skeleton */
.ad-container {
    break-inside: avoid;
    width: 100%;
    min-height: 150px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple text page styling for compliance pages */
.text-page {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.text-page h2 { margin-bottom: 1.5rem; }
.text-page p { margin-bottom: 1rem; color: var(--text-secondary); }
