/* ============================================
   HORROR NEWS WEBSITE - DESIGN SYSTEM
   Premium dark theme with glassmorphism
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Brand Colors - Easy to update */
    --color-primary: #8b0000;
    /* Blood red */
    --color-primary-glow: #ff1a1a;
    /* Neon red for glows */
    --color-primary-dark: #5c0000;
    /* Darker blood */

    /* Background Colors */
    --color-bg-deep: #0a0a0a;
    /* Deepest black */
    --color-bg-dark: #111111;
    /* Card backgrounds */
    --color-bg-card: #1a1a1a;
    /* Elevated cards */
    --color-bg-hover: #222222;
    /* Hover states */

    /* Text Colors */
    --color-text-primary: #f5f5f5;
    /* Main text */
    --color-text-secondary: #a0a0a0;
    /* Muted text */
    --color-text-accent: #e63946;
    /* Accent text */

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 0, 0, 0.3);

    /* Typography */
    --font-display: 'Creepster', cursive;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --max-width: 1400px;
    --header-height: 70px;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-deep);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-glow);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- TYPOGRAPHY ---------- */
.font-display {
    font-family: var(--font-display);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

.text-muted {
    color: var(--color-text-secondary);
}

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

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: background var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    transition: all var(--transition-normal);
    letter-spacing: 2px;
}

.logo:hover {
    color: var(--color-primary-glow);
    text-shadow: 0 0 20px rgba(255, 26, 26, 0.6);
}

/* ---------- NAVIGATION ---------- */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-3xl) 0;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            var(--color-bg-deep) 0%,
            rgba(10, 10, 10, 0.7) 50%,
            rgba(10, 10, 10, 0.3) 100%);
}

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
    }
}

.hero-title {
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-excerpt {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ---------- CARDS ---------- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(139, 0, 0, 0.3);
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            transparent 50%);
}

.card-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* ---------- NEWS GRID ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.news-grid .card:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .news-grid .card:first-child {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .news-grid .card:first-child .card-image {
        aspect-ratio: 4/5;
    }
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5em;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-link:hover {
    color: var(--color-primary);
}

/* ---------- STREAMING GUIDE ---------- */
.streaming-guide {
    background: linear-gradient(135deg,
            rgba(139, 0, 0, 0.1) 0%,
            transparent 50%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.streaming-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.streaming-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.streaming-item:hover {
    background: var(--color-bg-hover);
    transform: translateX(4px);
}

.streaming-thumbnail {
    width: 80px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-card);
}

.streaming-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streaming-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.streaming-platform {
    font-size: 0.75rem;
    color: var(--color-text-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.streaming-title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.streaming-date {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.widget-title {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trending-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.trending-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1;
    min-width: 30px;
}

.trending-content h4 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
}

.trending-content span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
    background: linear-gradient(135deg,
            var(--color-bg-card) 0%,
            rgba(139, 0, 0, 0.15) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.newsletter h3 {
    margin-bottom: var(--space-sm);
}

.newsletter p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-form input::placeholder {
    color: var(--color-text-secondary);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-glow);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    color: white;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
}

.btn-ghost:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-3xl) 0;
    margin-top: var(--header-height);
}

.article-header {
    max-width: 800px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.article-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.article-content p {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

/* ---------- ARTICLE LAYOUT WITH STICKY SIDEBAR ---------- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.article-main {
    max-width: 800px;
}

.article-sidebar {
    position: relative;
}

.article-sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.read-next-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.read-next-widget h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.read-next-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.read-next-item:last-child {
    border-bottom: none;
}

.read-next-item:hover {
    padding-left: var(--space-sm);
}

.read-next-item:hover h4 {
    color: var(--color-primary);
}

.read-next-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.read-next-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-next-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

.read-next-info span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Keep Reading Prompt */
.keep-reading {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 0, 0, 0.4);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 100;
}

.keep-reading.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.keep-reading:hover {
    background: var(--color-primary-glow);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 26, 26, 0.5);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-text-secondary);
}

/* ---------- TRAILER EMBED ---------- */
.trailer-embed {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.trailer-embed h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg-dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive: Hide sidebar on smaller screens */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }
}

/* ---------- CATEGORY PILLS ---------- */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.category-pill {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ---------- LOADING SKELETON ---------- */
.skeleton {
    background: linear-gradient(90deg,
            var(--color-bg-card) 25%,
            var(--color-bg-hover) 50%,
            var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg-deep);
        flex-direction: column;
        padding: var(--space-2xl);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 50vh;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto var(--space-lg);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fade-in 0.6s ease forwards;
}

/* Stagger children animation */
.stagger-in>* {
    opacity: 0;
    animation: fade-in 0.5s ease forwards;
}

.stagger-in>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-in>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-in>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-in>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-in>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-in>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Blood drip effect for special elements */
.blood-drip {
    position: relative;
}

.blood-drip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 3px;
    height: 0;
    background: var(--color-primary);
    border-radius: 0 0 3px 3px;
    transition: height var(--transition-slow);
}

.blood-drip:hover::after {
    height: 20px;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}