/* ========================================
   HázTrend - Otthon & Lakberendezési Magazin
   ======================================== */

:root {
    /* Color Palette - Fresh & Vibrant Home Magazine */
    --bg-primary: #fefefe;
    --bg-secondary: #f8f6f3;
    --bg-card: #ffffff;
    --bg-hover: #fff8f0;
    --bg-accent: #fef7ed;
    
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #95a5a6;
    
    --accent-primary: #e17055;
    --accent-secondary: #00b894;
    --accent-tertiary: #6c5ce7;
    --accent-coral: #ff7675;
    --accent-mint: #55efc4;
    --accent-peach: #fab1a0;
    --accent-yellow: #ffeaa7;
    --accent-blue: #74b9ff;
    --accent-lavender: #a29bfe;
    
    --gradient-hero: linear-gradient(135deg, #e17055 0%, #fab1a0 50%, #ffeaa7 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.95) 100%);
    --gradient-warm: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    --gradient-fresh: linear-gradient(135deg, #55efc4 0%, #74b9ff 100%);
    
    --border-color: rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-warm: 0 8px 30px rgba(225, 112, 85, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --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: 'DM Sans', 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern - Subtle geometric */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(225, 112, 85, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(85, 239, 196, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 234, 167, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

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

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

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(254, 254, 254, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

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

.logo-accent {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: 50px;
    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(225, 112, 85, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

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

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

.search-btn:hover {
    color: var(--accent-primary);
    background: var(--bg-hover);
    transform: scale(1.05);
}

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

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

/* ========================================
   Hero / Featured Section
   ======================================== */
.hero {
    padding: 48px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    height: 520px;
}

.featured-main {
    height: 100%;
}

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

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

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

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(45,52,54,0.85) 100%);
}

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

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* Category specific colors */
.tag-konyha { background: var(--accent-coral); color: white; }
.tag-nappali { background: var(--accent-secondary); color: white; }
.tag-haloszoba { background: var(--accent-lavender); color: white; }
.tag-furdoszoba { background: var(--accent-blue); color: white; }
.tag-kert { background: #00b894; color: white; }
.tag-diy { background: var(--accent-tertiary); color: white; }
.tag-dekoracio { background: #fd79a8; color: white; }
.tag-trend { background: linear-gradient(135deg, #e17055, #fab1a0); color: white; }
.tag-fenntarthato { background: #00cec9; color: white; }
.tag-uj-epites { background: #636e72; color: white; }

.featured-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

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

.featured-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

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

.featured-small {
    flex: 1;
}

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

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

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

/* ========================================
   Breaking News Ticker
   ======================================== */
.ticker {
    background: linear-gradient(90deg, var(--bg-accent), var(--bg-secondary));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    overflow: hidden;
}

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

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

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

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

.ticker-text span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

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

.filter-tab {
    padding: 10px 22px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    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: 28px;
    margin-bottom: 48px;
}

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

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

.article-link {
    display: block;
}

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

.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(255,255,255,0.2) 100%);
}

.article-content {
    padding: 24px;
}

.article-content .category-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
    margin-bottom: 14px;
}

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

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

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

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

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

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

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

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

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

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

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

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

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

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

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

.popular-content h4 {
    font-size: 0.95rem;
    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.8rem;
    color: var(--text-muted);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-warm);
    border: none;
    text-align: center;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.newsletter-widget .widget-title {
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.newsletter-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.newsletter-input {
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.newsletter-input:focus {
    outline: none;
    box-shadow: var(--shadow-md);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    width: 100%;
    padding: 16px 28px;
    background: var(--text-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

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

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

.category-item:hover {
    background: var(--bg-hover);
    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.85rem;
    color: var(--text-muted);
    background: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

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

.tag {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

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

/* ========================================
   Video Section (Népszerű tartalmak)
   ======================================== */
.video-section {
    padding: 70px 0;
    background: var(--bg-secondary);
}

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

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

.see-all:hover {
    opacity: 0.8;
}

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

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

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

.video-link {
    display: block;
}

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

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

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

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

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

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.8rem;
    border-radius: 6px;
    z-index: 2;
    font-weight: 600;
}

.video-title {
    padding: 18px 6px;
    font-size: 1rem;
    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(--text-primary);
    padding: 70px 0 0;
    color: rgba(255,255,255,0.7);
}

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

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

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

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    max-width: 340px;
    line-height: 1.8;
}

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

.social-link {
    width: 46px;
    height: 46px;
    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: 14px;
}

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

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

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

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

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

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .featured-main {
        height: 420px;
    }
    
    .featured-side {
        flex-direction: row;
    }
    
    .featured-small {
        height: 260px;
    }
    
    .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: 28px 0;
    }
    
    .featured-main {
        height: 340px;
    }
    
    .featured-title {
        font-size: 1.6rem;
    }
    
    .featured-side {
        flex-direction: column;
    }
    
    .featured-small {
        height: 220px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 66px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .featured-main {
        height: 300px;
    }
    
    .featured-content {
        padding: 24px;
    }
    
    .featured-title {
        font-size: 1.35rem;
    }
    
    .featured-excerpt {
        display: none;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-image {
        height: 180px;
    }
}

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

.article-card {
    animation: fadeInUp 0.6s 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; }
.article-card:nth-child(5) { animation-delay: 0.3s; }
.article-card:nth-child(6) { animation-delay: 0.35s; }

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-peach);
    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: 36px;
}

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

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

.article-title-full {
    font-family: 'DM Sans', 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.article-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding-left: 20px;
    border-left: 4px solid var(--accent-primary);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.author-avatar {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 50%;
    font-size: 1.6rem;
}

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

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

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

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

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

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

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

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

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

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 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.6em;
}

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

.article-body pre, .article-body code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.article-body code {
    padding: 3px 8px;
    font-size: 0.9em;
}

.article-body pre {
    padding: 20px;
    overflow-x: auto;
    margin: 1.6em 0;
}

.article-body pre code {
    padding: 0;
    background: transparent;
}

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

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

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

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

.share-btn {
    width: 44px;
    height: 44px;
    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);
    opacity: 0.9;
}

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

.share-twitter {
    background: #000;
}

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

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

/* Popular item category */
.popular-category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 700;
}

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

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

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

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

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

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

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.1);
}

.calc-input-group input::placeholder {
    color: var(--text-muted);
}

.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='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.calc-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-hero);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.calc-btn:active {
    transform: translateY(0);
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-secondary);
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

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

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

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

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

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

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

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

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

/* Calculator number input spin buttons */
.calc-input-group input[type="number"]::-webkit-inner-spin-button,
.calc-input-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

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

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