:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --badge-tech: #0284c7;
    --badge-finance: #059669;
    --badge-health: #7c3aed;
    --badge-security: #dc2626;
    --badge-career: #d97706;
    --badge-gadgets: #4f46e5;
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Announcement Bar */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1e293b;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.badge-hot {
    background: #ef4444;
    color: white;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.65rem;
    margin-right: 0.4rem;
}

.edition-tag {
    color: #cbd5e1;
    font-weight: 500;
}

/* Main Header */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.nav-item {
    background: none;
    border: none;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-item:hover {
    color: var(--primary);
    background: #eff6ff;
}

.nav-item.active {
    color: var(--primary);
    background: #dbeafe;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    font-size: 0.85rem;
    outline: none;
    width: 170px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    width: 220px;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.5;
    pointer-events: none;
}

/* Main Content */
.main-content {
    padding-top: 2.25rem;
    padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2.75rem;
}

.hero-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08);
}

.hero-visual {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: #ffffff;
    min-height: 280px;
    background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.35) 0%, transparent 60%);
}

.hero-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #93c5fd;
}

.hero-readtime {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.hero-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-pill {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.category-pill.tech { background: #e0f2fe; color: var(--badge-tech); }
.category-pill.finance { background: #d1fae5; color: var(--badge-finance); }
.category-pill.health { background: #ede9fe; color: var(--badge-health); }
.category-pill.security { background: #fee2e2; color: var(--badge-security); }
.category-pill.career { background: #fef3c7; color: var(--badge-career); }
.category-pill.gadgets { background: #e0e7ff; color: var(--badge-gadgets); }

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #0f172a;
}

.hero-excerpt {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    gap: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-read-hero {
    margin-left: auto;
    color: var(--primary);
    font-weight: 700;
}

/* Section Title Wrap */
.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.filter-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
}

.card-cover {
    height: 140px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.cover-1 { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.cover-2 { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.cover-3 { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.cover-4 { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.cover-5 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.cover-6 { background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%); }

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    color: #0f172a;
}

.card-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 0.85rem;
    font-size: 0.82rem;
}

.card-footer .author {
    font-weight: 600;
    color: var(--text-primary);
}

.card-footer .read-link {
    color: var(--primary);
    font-weight: 700;
}

/* Newsletter Section */
.newsletter-section {
    background: #0f172a;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    color: #ffffff;
    text-align: center;
    margin-top: 2rem;
    background-image: radial-gradient(circle at bottom center, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
}

.newsletter-card {
    max-width: 620px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.newsletter-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.newsletter-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    max-width: 480px;
    margin: 0 auto 0.75rem auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.12);
}

.btn-subscribe {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-subscribe:hover {
    background: var(--primary-hover);
}

.newsletter-terms {
    color: #64748b;
    font-size: 0.75rem;
}

/* Footer */
.main-footer {
    background: #0b1120;
    color: #cbd5e1;
    border-top: 1px solid #1e293b;
    padding: 4rem 0 2.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.brand-col .footer-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 1rem 0 1.5rem 0;
}

.footer-copyright {
    font-size: 0.78rem;
    color: #64748b;
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-info {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #e2e8f0;
}

.btn-contact {
    margin-top: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 780px;
    max-height: 88vh;
    border-radius: 1.25rem;
    padding: 2.5rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.modal-author-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.modal-author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-body {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.7;
    color: #1e293b;
}

.modal-body p {
    margin-bottom: 1.25rem;
}

.modal-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem 0;
    color: #0f172a;
}

.modal-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.25rem;
    font-style: italic;
    color: #334155;
    margin: 1.5rem 0;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.modal-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.btn-close-modal {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.btn-close-modal:hover {
    background: #e2e8f0;
}

/* Legal modal adjustments */
.legal-card .modal-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #cbd5e1;
    padding: 1rem 0;
    border-top: 1px solid #1e293b;
    z-index: 90;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.cookie-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-cookie-settings {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-menu {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
}
