:root {
    --primary: #000000;
    --accent: #e50914;
    --background: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    --card-bg: #f8f9fa;
    --border: #eeeeee;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --header-height: 64px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(255, 255, 255, 0.7);
    --header-border: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary: #ffffff;
    --background: #050505;
    --text: #ffffff;
    --text-muted: #888888;
    --card-bg: #111111;
    --border: #222222;
    --header-bg: rgba(5, 5, 5, 0.7);
    --header-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* News Grid (Desktop) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    padding: 40px 0;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.news-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #eee;
}

.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Inshorts Style */
.mobile-news-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background: #000;
}

.mobile-card {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

.mobile-image-container {
    height: 40%;
    width: 100%;
    position: relative;
}

.mobile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.mobile-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.mobile-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
