/* ========================================
   supremacy.news - Brutalist News Control Center
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #a0a0a0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Typography System */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-size: 200% 200%;
    animation: gradientFlow 45s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 12vw, 8rem);
    letter-spacing: 0.12em;
    color: #f5f5f5;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.8);
}

/* Main Content Wrapper */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    gap: 3px;
    background-color: #0a0a0a;
    min-height: calc(100vh - 100px);
    padding: 40px 0;
}

/* Sidebar Styling */
.sidebar {
    background-color: #1a1a1a;
    padding: 40px 30px;
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.sidebar-left {
    border-left: none;
    border-right: 3px solid #d4af37;
}

.sidebar-right {
    border-right: none;
    border-left: 3px solid #d4af37;
}

/* Categories Container */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-item {
    padding: 12px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #707070;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.category-item:hover {
    color: #f5f5f5;
}

.category-item.active {
    color: #d4af37;
    font-weight: 700;
}

.divider {
    height: 1px;
    background-color: #d4af37;
    margin: 8px 0;
    opacity: 0.3;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 0 30px;
    background-color: #0a0a0a;
}

.news-card {
    background-color: #1a1a1a;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 280px;
}

.news-card:hover {
    background-color: #2a2218;
    border-color: rgba(212, 175, 55, 0.5);
}

.news-card:active {
    background-color: #1a1a1a;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-headline {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.2;
    margin-bottom: 15px;
    color: #f5f5f5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.divider-thin {
    height: 1px;
    background-color: #d4af37;
    margin-bottom: 15px;
    opacity: 0.4;
}

.news-body {
    flex: 1;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 12px;
    font-size: 0.75rem;
}

.meta-category,
.meta-time,
.meta-source {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #707070;
}

.meta-category {
    color: #d4af37;
    font-weight: 700;
}

/* Trending Container */
.trending-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.trending-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d4af37;
    text-transform: uppercase;
    padding: 8px 0;
    margin-bottom: 8px;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.trending-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #707070;
    text-transform: uppercase;
}

.trending-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.04em;
}

/* Breaking News Section */
.breaking-section {
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 40px;
    border-top: 3px solid #d4af37;
    margin-top: 40px;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 40px;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.breaking-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breaking-item {
    padding: 20px 30px;
    background-color: #0a0a0a;
    border-left: 3px solid #d4af37;
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timestamp {
    font-family: 'IBM Plex Mono', monospace;
    color: #d4af37;
    font-weight: 700;
    margin-right: 15px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Archives Section */
.archives-section {
    width: 100%;
    background-color: #0a0a0a;
    padding: 60px 40px;
    border-top: 3px solid #d4af37;
}

.archives-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3px;
}

.archive-item {
    background-color: #1a1a1a;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.archive-item:hover {
    background-color: #2a2218;
    border-color: rgba(212, 175, 55, 0.5);
}

.archive-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f5f5f5;
    text-transform: uppercase;
}

.archive-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        padding: 30px;
    }

    .sidebar-left,
    .sidebar-right {
        border: none;
        border-bottom: 3px solid #d4af37;
    }

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

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }

    .news-grid {
        padding: 0;
    }

    .sidebar {
        padding: 20px;
    }

    .categories-container,
    .trending-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.5rem, 10vw, 3rem);
    }

    .section-heading {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .news-card {
        padding: 20px;
        min-height: auto;
    }

    .breaking-section,
    .archives-section {
        padding: 30px 20px;
    }

    .breaking-item {
        padding: 15px 20px;
    }

    .archive-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    right: 0;
    top: 0;
    width: 2px;
    height: 100vh;
    background-color: #d4af37;
    opacity: 0;
    z-index: 1000;
    transition: opacity 200ms ease;
}

.scroll-indicator.active {
    opacity: 0.3;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Animations for scroll reveal */
@keyframes revealCard {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card.revealed {
    animation: revealCard 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Focus and Accessibility */
a:focus,
button:focus,
.category-item:focus,
.archive-item:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero,
    .sidebar,
    .trending-container,
    .scroll-indicator {
        display: none;
    }

    .news-card {
        page-break-inside: avoid;
        border: 1px solid #999;
    }
}
