/*
  STYLE.CSS
  Retrofuturist Dystopian Theme for trotski1977.co.uk
*/

/* Import Google Fonts: Orbitron for headings, Source Serif Pro for body text */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Source+Serif+Pro:wght@400;700&display=swap');

/* :root defines the color palette for easy reference and changes */
:root {
    --primary-bg: #1a1a1d; /* Off-black for data blocks */
    --secondary-bg: #0d0d0f; /* Deep charcoal/midnight for main background */
    --primary-text: #c5c6c7; /* Clinical off-white */
    --accent-red: #e50914;  /* Vibrant, rebellious red */
    --accent-red-glow: rgba(229, 9, 20, 0.7);
    --border-color: rgba(197, 198, 199, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Source Serif Pro', serif;
}

/* General Body and HTML styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* Animated Gradient Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(45, 52, 54, 0.3), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(229, 9, 20, 0.1), transparent 50%);
    animation: fadeInOut 25s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


/* --- HEADER & NAVIGATION --- */
.site-header {
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    text-decoration: none;
}

.logo-accent {
    color: var(--accent-red);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--primary-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-red);
}


/* --- MAIN CONTENT & HOMEPAGE GRID --- */
.main-content {
    padding: 120px 5% 40px; /* Top padding to offset fixed header */
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.data-block {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--primary-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.data-block:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.data-block h3 {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.data-block p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.data-block-footer {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

/* --- ARTICLE PAGE STYLING --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 29, 0.7);
    padding: 2rem 3rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.article-meta {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-text);
    opacity: 0.7;
    margin-bottom: 2.5rem;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content a {
    color: var(--accent-red);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-red);
}

/* Pullquote Style */
.pullquote {
    border-left: 3px solid var(--accent-red);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}
