* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --border: #e5e7eb;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
    color: var(--accent);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* Ad Spaces */
.ad-container {
    padding: 16px 0;
}

.ad-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ad-leaderboard {
    height: 90px;
    max-width: 728px;
    margin: 0 auto;
}

.ad-300x250 {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin: 0 auto;
}

.ad-300x600 {
    width: 100%;
    max-width: 300px;
    height: 600px;
    margin: 0 auto;
}

.ad-infeed,
.ad-infeed-list,
.ad-in-article {
    height: 90px;
    max-width: 728px;
    margin: 20px auto;
}

.ad-sidebar {
    margin-bottom: 20px;
}

.sticky-ad {
    position: sticky;
    top: 80px;
}

/* Ticker */
.ticker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 20px 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 24px;
    padding: 14px 20px;
    overflow-x: auto;
}

.ticker-track::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ticker-symbol {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.ticker-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-change {
    font-size: 13px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.ticker-change.positive {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.ticker-change.negative {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 32px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Featured */
.featured {
    margin-bottom: 20px;
}

.featured-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
}

.featured-image {
    position: relative;
    width: 340px;
    min-height: 260px;
    flex-shrink: 0;
}

.featured-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-dot {
    color: var(--text-muted);
}

.featured-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.featured-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-size: 13px;
    color: var(--text-muted);
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

/* Articles Section */
.articles-section {
    padding-bottom: 40px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.article-item:hover {
    box-shadow: var(--shadow-md);
}

.article-link {
    display: flex;
}

.article-image {
    position: relative;
    width: 200px;
    min-height: 150px;
    flex-shrink: 0;
}

.article-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-author {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.trending-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-item:first-child {
    padding-top: 0;
}

.trending-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    width: 24px;
}

.trending-content {
    flex: 1;
}

.trending-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 3px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.newsletter-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: var(--accent-hover);
}

/* Post Page */
.post-wrapper {
    display: flex;
    gap: 32px;
    padding-top: 20px;
}

.post-main {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.post-header-section {
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

.post-category-tag {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-author {
    color: var(--text-secondary);
}

.post-hero-image {
    height: 300px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.post-body {
    max-width: 100%;
}

.post-excerpt-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content-text p {
    margin-bottom: 20px;
}

.post-content-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.post-content-text blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-primary);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.post-share-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.post-share-bottom > span {
    font-size: 14px;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Related in Sidebar */
.related-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item:first-child {
    padding-top: 0;
}

.related-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 4px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* More Stories */
.more-stories {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 40px;
}

.more-stories .section-title {
    margin-bottom: 20px;
}

.more-stories-list {
    display: flex;
    gap: 20px;
}

.more-story-item {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.more-story-item:hover {
    box-shadow: var(--shadow-md);
}

.more-story-image {
    position: relative;
    height: 140px;
}

.more-story-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.more-story-content {
    padding: 16px;
}

.more-story-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-story-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper,
    .post-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sticky-ad {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .featured-card {
        flex-direction: column;
    }
    
    .featured-image {
        width: 100%;
        min-height: 200px;
    }
    
    .article-link {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        min-height: 160px;
    }
    
    .more-stories-list {
        flex-direction: column;
    }
    
    .post-title {
        font-size: 22px;
    }
    
    .post-main {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .featured-content,
    .article-content {
        padding: 16px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    .ad-leaderboard {
        height: 60px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}