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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --gaming-color: #8b5cf6;
    --sentiment-color: #f59e0b;
    --economy-color: #10b981;
    --crypto-color: #ef4444;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-card: #334155;
    --border-color: #475569;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Header and Navigation */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.hero-excerpt {
    font-size: 1.125rem;
    margin: 1rem 0;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-badge.gaming {
    background-color: var(--gaming-color);
    color: white;
}

.category-badge.sentiment {
    background-color: var(--sentiment-color);
    color: white;
}

.category-badge.economy {
    background-color: var(--economy-color);
    color: white;
}

.category-badge.crypto {
    background-color: var(--crypto-color);
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem 0;
}

.news-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card .excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Category Preview Sections */
.category-preview {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

.category-preview.sentiment-bg {
    background-color: var(--bg-light);
}

.category-preview.crypto-bg {
    background-color: var(--bg-light);
}

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

.category-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--secondary-color);
}

.category-description {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Article Page Styles */
.article-header {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 1.125rem;
}

.article-content h2 {
    font-size: 1.875rem;
    margin: 2rem 0 1rem 0;
    color: var(--text-dark);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-dark);
}

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

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Category Page Styles */
.category-page-header {
    background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.category-page-header.gaming-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.category-page-header.sentiment-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.category-page-header.economy-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-page-header.crypto-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.category-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-page-description {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-excerpt {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .category-page-title {
        font-size: 1.875rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Twitter Feed Section */
.twitter-feed-section {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: var(--shadow);
}

.twitter-feed-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.twitter-icon {
    width: 24px;
    height: 24px;
    fill: #1DA1F2;
}

.twitter-timeline {
    border-radius: 0.5rem;
    overflow: hidden;
}

.twitter-feed-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.twitter-feed-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--crypto-color);
    border-radius: 0.375rem;
    padding: 1rem;
    color: var(--text-light);
    text-align: center;
}

@media (max-width: 768px) {
    .twitter-feed-section {
        padding: 1.5rem;
        margin: 2rem 20px;
    }
}

/* Legal Pages (Privacy Policy, Terms of Service) */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-dark);
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--secondary-color);
}

/* About Page */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.75rem 0;
    color: var(--text-dark);
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-section ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-section li {
    margin-bottom: 0.5rem;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.coverage-item {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.coverage-item h3 {
    margin-bottom: 1rem;
}

.coverage-item ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* Contact Page */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

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

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

.required {
    color: var(--crypto-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--crypto-color);
}

.error-message {
    display: none;
    color: var(--crypto-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.success-message p {
    color: #22c55e;
    font-weight: 600;
    margin: 0;
}

/* Contact Info Section */
.contact-info-section {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text p {
    margin: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-text strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.cookie-consent-buttons .btn-secondary:hover {
    background-color: var(--bg-card);
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.875rem;
    white-space: nowrap;
}

.privacy-link:hover {
    color: var(--secondary-color);
}

/* Advertising Disclosure */
.advertising-disclosure {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .legal-title,
    .page-title {
        font-size: 1.875rem;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-consent-buttons .btn {
        flex: 1;
        min-width: 100px;
    }
}
