:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1e1e2e;
    --bg-hover: #2a2a3e;
    --text-primary: #f0f0f5;
    --text-secondary: #b8b8c8;
    --text-muted: #7a7a8a;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-secondary: #ec4899;
    --warning: #f59e0b;
    --border: #2e2e3e;
    --success: #10b981;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Modal */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--warning);
    border-radius: 16px;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    color: var(--warning);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

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

.disclaimer-text {
    padding: 1.5rem;
}

.disclaimer-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.disclaimer-text .lead {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.disclaimer-text em {
    color: var(--accent-secondary);
    font-style: normal;
    font-weight: 600;
}

.disclaimer-text strong {
    color: var(--text-primary);
}

.modal-actions {
    padding: 0 1.5rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.view-all {
    color: var(--accent);
    font-weight: 500;
}

/* Articles Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-card));
}

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

.category {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card h4 a {
    color: var(--text-primary);
}

.article-card h4 a:hover {
    color: var(--accent);
}

.article-card .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-card .excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.score-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent);
}

/* Article Pages */
.article-full {
    padding: 2rem 0 4rem;
}

.article-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.article-hero-overlay {
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.95));
    padding: 4rem 2.5rem 2.5rem;
    width: 100%;
    border-radius: 0 0 20px 20px;
}

.article-hero-overlay .category {
    margin-bottom: 1rem;
}

.article-hero-overlay h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.article-hero-overlay .tagline {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-style: italic;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

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

.meta-text .author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.meta-text .date {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 1.75rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content .lead {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
}

.article-content h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

.article-content em {
    color: var(--accent-secondary);
    font-style: italic;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-inline-image {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-inline-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-inline-image .caption {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.score {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}

.score-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--success);
}

.score-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Article Byline */
.article-byline {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3.5rem;
}

.byline-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    flex-shrink: 0;
    object-fit: cover;
}

.byline-content h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.byline-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.25rem;
    }
    
    .article-hero {
        height: 350px;
    }
    
    .article-hero-overlay h1 {
        font-size: 1.75rem;
    }
    
    .article-hero-overlay {
        padding: 3rem 1.5rem 1.5rem;
    }
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.related-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 1.25rem;
}

.related-content .category {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.75rem;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-content h4 a {
    color: var(--text-primary);
}

.related-content h4 a:hover {
    color: var(--accent);
}

.related-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 6rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h2 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-page h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}
