@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Manrope:wght@300;400;500;600;700;800&family=Work+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 4%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 4%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 4%;
    --primary: 0 84% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 5% 96%;
    --secondary-foreground: 240 6% 10%;
    --muted: 240 5% 96%;
    --muted-foreground: 240 4% 46%;
    --accent: 240 5% 96%;
    --accent-foreground: 240 6% 10%;
    --destructive: 0 84% 50%;
    --destructive-foreground: 0 0% 100%;
    --border: 240 6% 90%;
    --input: 240 6% 90%;
    --ring: 0 84% 50%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0rem;
    --paper: 60 9% 96%;
}

.dark {
    --background: 240 10% 4%;
    --foreground: 0 0% 93%;
    --card: 240 10% 4%;
    --card-foreground: 0 0% 93%;
    --popover: 240 10% 4%;
    --popover-foreground: 0 0% 93%;
    --primary: 0 84% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 4% 16%;
    --secondary-foreground: 0 0% 93%;
    --muted: 240 4% 16%;
    --muted-foreground: 240 5% 65%;
    --accent: 240 4% 16%;
    --accent-foreground: 0 0% 93%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 0 0% 93%;
    --border: 240 4% 16%;
    --input: 240 4% 16%;
    --ring: 0 84% 50%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
}

body {
    margin: 0;
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.font-serif {
    font-family: "Playfair Display", "Noto Serif SC", serif;
}

.font-sans {
    font-family: "Manrope", "Noto Sans SC", sans-serif;
}

.font-heading {
    font-family: "Work Sans", "Noto Sans SC", sans-serif;
}

.font-mono {
    font-family: "JetBrains Mono", monospace;
}

code {
    font-family: "JetBrains Mono", source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* Magazine Portal Styles */

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transform: scale(1);
    transition: transform 0.7s ease-out;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

.title-hover {
    transition: color 0.2s ease;
}

.title-hover:hover {
    color: hsl(var(--primary));
}

.sticky-sidebar {
    position: sticky;
    top: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-card:last-child {
    border-bottom: none;
}

.hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.category-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 4px 8px;
    border: 1px solid currentColor;
}

.header-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.smooth-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noise-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.widget-border {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--accent) / 0.1);
}

@keyframes breakingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-pulse {
    animation: breakingPulse 2s ease-in-out infinite;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: hsl(var(--primary));
    z-index: 9999;
    transform-origin: left;
}

.focus-ring:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

.aspect-news {
    aspect-ratio: 16 / 9;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.prose {
    max-width: none;
    color: hsl(var(--foreground));
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: "Playfair Display", "Noto Serif SC", serif;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.dark .prose {
    color: hsl(var(--foreground));
}
