/* ========================================
   MotorTér - Autós Magazin & Hírek
   Autonavigator.hu stílusú design
   ======================================== */

:root {
    /* Color Palette - Automotive Theme */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-hover: #f8f9fa;
    --bg-accent: #fff3e0;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a4a;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    
    --accent-primary: #e63946;
    --accent-secondary: #f4a261;
    --accent-blue: #0077b6;
    --accent-green: #2a9d8f;
    --accent-dark: #1a1a2e;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffc107;
    
    --gradient-hero: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
    --gradient-dark: linear-gradient(180deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.98) 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    
    --border-color: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-accent: 0 8px 30px rgba(230, 57, 70, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* ========================================
   Top Bar - Fuel Prices & Date
   ======================================== */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
}

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

.fuel-prices {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fuel-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fuel-label {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.fuel-price {
    font-weight: 700;
    color: var(--accent-yellow);
}

.fuel-price.up::after {
    content: '▲';
    font-size: 0.7rem;
    margin-left: 4px;
    color: var(--accent-primary);
}

.fuel-price.down::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 4px;
    color: var(--accent-green);
}

.top-date {
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.logo-text {
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(230, 57, 70, 0.08);
}

.nav-link.highlight {
    background: var(--accent-primary);
    color: white;
}

.nav-link.highlight:hover {
    background: #c1121f;
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent-primary);
    background: rgba(230, 57, 70, 0.1);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero / Featured Section
   ======================================== */
.hero {
    padding: 30px 0;
    background: var(--bg-primary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    height: 480px;
}

.featured-main {
    height: 100%;
}

.featured-link {
    display: block;
    height: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.featured-link:hover .featured-image {
    transform: scale(1.04);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

/* Category specific colors */
.tag-hirek { background: var(--accent-primary); }
.tag-teszt { background: var(--accent-blue); }
.tag-hasznalt { background: var(--accent-secondary); }
.tag-ujdonsag { background: var(--accent-green); }
.tag-tipp { background: #6c5ce7; }
.tag-motorsport { background: #ff6b35; }
.tag-elektromos { background: #00b894; }
.tag-video { background: #e84393; }
.tag-sztorik { background: #636e72; }

.featured-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.featured-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
    max-width: 600px;
    line-height: 1.5;
}

.featured-meta {
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-small {
    flex: 1;
}

.featured-small .featured-link {
    height: 100%;
}

.featured-small .featured-content {
    padding: 20px;
}

.featured-title-sm {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: white;
}

/* ========================================
   Breaking News Ticker
   ======================================== */
.ticker {
    background: var(--bg-dark);
    padding: 12px 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ticker-label {
    flex-shrink: 0;
    padding: 6px 16px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.ticker-text {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker-text span,
.ticker-text a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.ticker-text a:hover {
    color: var(--accent-yellow);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Main Content
   ======================================== */
.main {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-primary);
    flex-wrap: wrap;
    gap: 14px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.title-icon {
    font-size: 1.3rem;
}

.filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-tab {
    padding: 8px 18px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.article-link {
    display: block;
}

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

.article-content {
    padding: 20px;
}

.article-content .category-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition);
    color: var(--text-primary);
}

.article-card:hover .article-title {
    color: var(--accent-primary);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.load-more {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.load-more:hover {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.widget-icon {
    font-size: 1.2rem;
}

/* Popular List */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.popular-item:hover {
    background: var(--bg-hover);
}

.popular-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50%;
}

.popular-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color var(--transition);
    color: var(--text-primary);
}

.popular-item:hover .popular-content h4 {
    color: var(--accent-primary);
}

.popular-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.popular-category {
    font-size: 0.72rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-weight: 700;
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--bg-dark);
    border: none;
    text-align: center;
    color: white;
}

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

.newsletter-widget .widget-title {
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    border-bottom-color: var(--accent-primary);
}

.newsletter-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255,255,255,0.15);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.category-item:hover {
    background: rgba(230, 57, 70, 0.08);
    transform: translateX(4px);
}

.category-item:hover .category-name {
    color: var(--accent-primary);
}

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

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: white;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 14px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.tag:hover {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   Calculator Widgets - Automotive
   ======================================== */
.calculator-widget {
    background: linear-gradient(145deg, #fafafa, #ffffff);
    border: 2px solid var(--accent-secondary);
}

.calculator-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calc-input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 11px 14px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.calc-input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.calc-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calc-btn:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

.calc-result {
    margin-top: 18px;
    padding: 18px;
    background: rgba(230, 57, 70, 0.05);
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent-primary);
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.result-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.result-main {
    margin-bottom: 14px;
}

.result-value {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1.1;
}

.result-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.result-details {
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Video Section
   ======================================== */
.video-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.video-section .section-header {
    margin-bottom: 28px;
}

.see-all {
    color: var(--accent-primary);
    font-weight: 600;
    transition: var(--transition);
}

.see-all:hover {
    text-decoration: underline;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.video-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-link {
    display: block;
}

.video-thumbnail {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: var(--transition);
}

.video-card:hover .video-thumbnail::after {
    background: rgba(0,0,0,0.35);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    font-size: 1.1rem;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    padding: 14px 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color var(--transition);
    color: var(--text-primary);
}

.video-card:hover .video-title {
    color: var(--accent-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    padding: 50px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .featured-main {
        height: 380px;
    }
    
    .featured-side {
        flex-direction: row;
    }
    
    .featured-small {
        height: 240px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .featured-main {
        height: 320px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-side {
        flex-direction: column;
    }
    
    .featured-small {
        height: 200px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 60px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .featured-main {
        height: 280px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .featured-excerpt {
        display: none;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .article-image {
        height: 160px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.5s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.15s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.25s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   Article Full Page Styles
   ======================================== */
.article-full {
    max-width: 800px;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

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

.article-title-full {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-left: 18px;
    border-left: 4px solid var(--accent-primary);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 50%;
    font-size: 1.4rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

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

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

.article-hero-image {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2em 0 1em;
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5em 0 0.8em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.article-body a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition);
}

.article-body a:hover {
    border-bottom-color: var(--accent-primary);
}

.article-body ul, .article-body ol {
    margin: 1.2em 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    background: var(--bg-hover);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    color: var(--text-muted);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: transform var(--transition), opacity var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }

/* Related Articles */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-articles .section-title {
    margin-bottom: 24px;
}

/* Content wrapper for subpages */
.content {
    flex: 1;
    min-width: 0;
}

/* Responsive adjustments for article */
@media (max-width: 768px) {
    .article-title-full {
        font-size: 1.6rem;
    }
    
    .article-lead {
        font-size: 1.05rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}
