/* =========================================================================
   FUTURISTIC PULSE — News Portal Design System
   Aesthetic: Tech-Modern, Vibrante, High-Contrast
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Compatibility for Admin Panel */
    --blue-primary: #0D47A1;
    --blue-header: #1565C0;
    --bg-primary: #F5F5F5;
    --blue-accent: #1E88E5;
    --blue-light: #42A5F5;

    /* Core Colors */
    --primary: #00F2FF;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #8B5CF6;
    --accent: #FF007A;

    /* Dark Theme Surfaces */
    --bg-dark: #050510;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-main: #FFFFFF;
    --text-dim: #A0A0B0;
    --text-muted: #606070;

    /* Spacing & Misc */
    --gap: 24px;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
    --header-h: 70px;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body:not(.admin-body) {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body:not(.admin-body) a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) h3,
body:not(.admin-body) h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* --- HEADER --- */
.site-header {
    height: var(--header-h);
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #00F2FF, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo span {
    color: #8B5CF6;
    -webkit-text-fill-color: #8B5CF6;
    /* Ensure fallback visibility */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--gap);
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.main-nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.search-form-header {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2px 12px;
    transition: var(--transition);
}

.search-form-header:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.search-input-header {
    background: transparent;
    border: none;
    color: white;
    padding: 6px;
    font-size: 0.85rem;
    outline: none;
    width: 120px;
    transition: width 0.3s;
}

.search-input-header:focus {
    width: 180px;
}

.btn-search {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    padding-left: 5px;
}

.btn-search:hover {
    color: var(--primary);
}

/* --- HERO GRID (Mosaic) --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 560px;
    gap: 20px;
    margin: 20px 0 40px;
}

.hero-main {
    width: 100%;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    border: 1px solid var(--glass-border);
    height: 100%;
}

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

.hero-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.6s ease;
}

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

.hero-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.hero-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
}

.category-name {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.3);
}

.hero-main h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-small h3 {
    font-size: 1.2rem;
}

.meta-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- FEED & SIDEBAR --- */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.timeline-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: -10px 0 30px rgba(0, 242, 255, 0.05);
}

.timeline-image {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin: 10px 0;
    color: var(--text-main);
}

.timeline-content .excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* --- SIDEBAR --- */
.sidebar .widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
}

.cat-list {
    list-style: none;
}

.cat-list li {
    margin-bottom: 12px;
}

.cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-weight: 600;
}

.cat-list a:hover {
    color: #fff;
}

.newsletter-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
}

.newsletter-form button {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
}

/* --- FOOTER --- */
.site-footer {
    margin-top: 80px;
    background: linear-gradient(135deg, #050510 0%, #0D0D2B 100%);
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 400px;
    line-height: 1.7;
    margin-top: 15px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-copyright {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .timeline-card {
        grid-template-columns: 1fr;
    }

    .timeline-image {
        height: 200px;
    }

    .hero-main h2 {
        font-size: 1.8rem;
    }
}