/**
 * Carousel News India - Modern Card-Based Light Theme
 * A clean, professional, card-based design
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700;800&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    /* Light Theme Palette */
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --tertiary-bg: #e9ecef;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Radius */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-brand .brand-highlight {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background: var(--accent-light);
}

.navbar-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Search Input */
.navbar .form-control {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar .form-control:focus {
    background: var(--primary-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ============================================
   HERO & FEATURED CAROUSEL
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    margin-bottom: 48px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Article Cards */
.featured-card {
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.featured-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card .category-badge {
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card .card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 12px;
    flex: 1;
}

.featured-card .card-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.featured-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */

.category-nav {
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 48px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.category-nav .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: var(--primary-bg);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.category-item .category-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
}

.category-item .category-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-item .category-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   ARTICLE CARDS
   ============================================ */

.article-card {
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-img-top {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .category-tag {
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card .card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 10px;
    flex: 1;
}

.article-card .card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   SECTIONS & HEADINGS
   ============================================ */

.section-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge-accent {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    padding: 8px 22px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer h5 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-accent {
    color: var(--accent-color);
}

.bg-light-accent {
    background: var(--accent-light);
}

.border-accent {
    border-color: var(--accent-color) !important;
}

.shadow-card {
    box-shadow: var(--card-shadow);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-nav .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .featured-card .card-img-top {
        height: 180px;
    }
    
    .article-card .card-img-top {
        height: 160px;
    }
}

/* ============================================
   CAROUSEL CONTROLS (if used)
   ============================================ */

.carousel-control-prev,
.carousel-control-next {
    background: var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.carousel-indicators button.active {
    background: var(--accent-color);
    opacity: 1;
}
