/* CSS Variables - Unique color scheme for marketvaluescope */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --text: #1a1a2e;
    --text-light: #666;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --header-bg: #1a1a2e;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-light);
}

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

nav a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

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

.hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-overlay .excerpt {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-overlay .meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-content .category-badge {
    margin-bottom: 0.75rem;
}

.article-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text);
}

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

.article-card .meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.trending-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.trending-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 30px;
}

.trending-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.trending-content .meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Category Page */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: var(--bg-alt);
    border-radius: 8px;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.category-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Article Page */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
}

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

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.back-link {
    display: inline-block;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Related Articles */
.related-articles {
    max-width: 900px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-alt);
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Footer */
footer {
    background: var(--header-bg);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

    .sidebar {
        position: static;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .hero {
        height: 400px;
    }

    .hero-overlay h1 {
        font-size: 1.75rem;
    }

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

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

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

    .article-header h1 {
        font-size: 2rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-overlay {
        padding: 1.5rem;
    }

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

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

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
