/* Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@300;400;600;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #dc3545;
    --bg-color: #ffffff;
    --text-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #212529;
    --footer-text: #f8f9fa;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --light-bg: #1e1e1e;
    --border-color: #333;
    --card-bg: #1e1e1e;
    --header-bg: #1e1e1e;
    --footer-bg: #000000;
}

body {
    font-family: 'Poppins', 'Noto Sans Gujarati', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* Header & Nav */
.main-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 5px 0;
}

.top-bar a {
    color: white;
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    display: inline-block;
}

.news-ticker {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding: 8px 0;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Featured / Hero Section */
.hero-section .main-post {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-section .main-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

/* Sidebar */
.sidebar-widget {
    margin-bottom: 30px;
}

.widget-title {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 10px;
    margin-top: 40px;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: white;
}

/* Ad Slots */
.ad-slot {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: var(--light-bg);
    border: 1px dashed var(--border-color);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.text-justify { text-align: justify; }
.object-fit-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }

/* Dark Mode Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
}
