/* ============================================
   ROOT & GLOBAL STYLES
   ============================================ */
:root {
    --color-primary: #1f2937;
    --color-secondary: #6b7280;
    --color-accent: #dc2626;
    --color-accent-light: #fee2e2;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    --color-border: #e5e7eb;
    --color-text-primary: #111827;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;

    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    color-scheme: light;
    font-family: var(--font-sans);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT
   ============================================ */
.layout {
    width: min(920px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.site-header:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 var(--spacing-md);
    position: relative;
}

.logo-section {
    flex: 0 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.brand::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transition: width 0.3s ease;
}

.brand:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.brand:hover::after {
    width: 100%;
}

.brand-icon {
    font-size: 1.75rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(-10deg) scale(1.1);
}

.brand-text {
    font-family: var(--font-serif);
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 8px;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.menu-toggle span {
    width: 1rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link.active::after {
    display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO SECTION
   ============================================ */
.homepage-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.2;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles-section {
    flex: 1;
    padding: var(--spacing-2xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--color-primary);
}

.section-header p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* ============================================
   ARTICLES CONTAINER
   ============================================ */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

/* ============================================
   FEATURED ARTICLE
   ============================================ */
.article-featured {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.article-featured:hover {
    box-shadow: var(--shadow-md);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.featured-date {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.featured-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.3;
}

.featured-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--color-accent);
}

.featured-perex {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0 0 var(--spacing-lg) 0;
}

.featured-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.featured-link:hover {
    gap: 0.5rem;
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* ============================================
   ARTICLE CARD
   ============================================ */
.article-card {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-header {
    margin-bottom: var(--spacing-sm);
}

.article-time {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    line-height: 1.4;
}

.article-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.article-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-md) 0;
    flex-grow: 1;
}

.article-readmore {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.article-readmore:hover {
    text-decoration: underline;
}

/* ============================================
   NO ARTICLES
   ============================================ */
.no-articles {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-text-secondary);
}

/* ============================================
   ARTICLE DETAIL
   ============================================ */
.article-detail-main {
    min-height: 100vh;
    background-color: var(--color-bg-primary);
    padding: var(--spacing-xl) 0;
}

.article-detail-container {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.article-detail-header {
    margin-bottom: var(--spacing-2xl);
}

.back-link {
    display: inline-block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    transition: color 0.2s ease;
}

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

.article-detail-content {
    background-color: var(--color-bg-primary);
}

.article-header-detail {
    margin-bottom: var(--spacing-xl);
}

.article-meta-detail {
    margin-bottom: var(--spacing-lg);
}

.article-date-detail {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.article-title-detail {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--color-primary);
}

.article-perex-detail {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0 0 var(--spacing-xl) 0;
    font-weight: 500;
}

.article-body {
    margin: var(--spacing-xl) 0;
}

.article-paragraph {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--color-text-primary);
}

.article-paragraph:last-child {
    margin-bottom: 0;
}

.article-footer-detail {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.back-link-bottom {
    display: inline-block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ============================================
   RELATED SECTION
   ============================================ */
.related-section {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0;
}

.related-section h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-2xl) 0;
    color: var(--color-primary);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.related-article-card {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.related-article-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.related-article-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
    line-height: 1.4;
}

.related-article-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-article-title a:hover {
    color: var(--color-accent);
}

.related-article-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-md) 0;
    flex-grow: 1;
}

.related-article-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-article-link:hover {
    text-decoration: underline;
}

.related-placeholder {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-bg-primary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-primary);
    color: #f3f4f6;
    padding: var(--spacing-2xl) 0;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: var(--spacing-2xl);
}

.footer-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section a {
    font-size: 0.85rem;
    color: #f3f4f6;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.75;
}


@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-section h3 {
        font-size: 0.9rem;
    }

    .footer-section p {
        font-size: 0.8rem;
    }

    .footer-section a {
        font-size: 0.8rem;
    }
}

/* ============================================
   ARTICLES GRID LARGE
   ============================================ */
.articles-grid-large {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    auto-rows: max-content;
}

.full-width {
    grid-column: 1 / -1;
}

.article-card {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

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

.article-header {
    margin-bottom: var(--spacing-xs);
}

.article-time {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    margin: var(--spacing-xs) 0;
    line-height: 1.25;
}

.article-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.article-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0 0 var(--spacing-xs) 0;
    flex-grow: 1;
}

.article-readmore {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.article-readmore:hover {
    text-decoration: underline;
}

/* ============================================
   WIDGETS STRIP
   ============================================ */
.widgets-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    margin: var(--spacing-lg) 0;
}

.widget.compact-strip {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: all 0.2s ease;
}

.widget.compact-strip:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
}

.widget.compact-strip .widget-title {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    border: none;
    padding-bottom: 0;
}

.widget-content-strip {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
}

.widget-content-strip .temp {
    font-size: 1.2rem;
    font-weight: 700;
}

.widget-content-strip .condition {
    font-size: 0.75rem;
    opacity: 0.8;
}

.widget-content-strip .price {
    font-size: 1.1rem;
    font-weight: 700;
}

.widget-content-strip .change {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4caf50;
}

.widget-content-strip .quote-text {
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.widget-content-strip .health-title {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
}

/* Widget specific colors for strip */
.weather-widget.compact-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.weather-widget.compact-strip .widget-title,
.weather-widget.compact-strip .condition {
    color: white;
}

.crypto-widget.compact-strip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.crypto-widget.compact-strip .widget-title {
    color: white;
}

.gold-widget.compact-strip {
    background: linear-gradient(135deg, #ffa500 0%, #ffb84d 100%);
    color: #222;
    border: none;
}

.quote-widget.compact-strip {
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-accent);
}

.quote-widget.compact-strip .widget-title {
    color: var(--color-accent);
}

.health-widget.compact-strip {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
}

.health-widget.compact-strip .widget-title {
    color: white;
}

/* ============================================
   WIDGET BASE STYLES
   ============================================ */
.widget {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--color-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

/* ============================================
   WEATHER WIDGET
   ============================================ */
.weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.weather-widget .widget-title {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temperature {
    font-size: 2rem;
    font-weight: 700;
}

.condition {
    font-size: 0.9rem;
    opacity: 0.9;
}

.weather-details {
    font-size: 0.85rem;
    opacity: 0.95;
}

.weather-details p {
    margin: 2px 0;
}

.weather-forecast {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
}

/* ============================================
   CRYPTO WIDGET
   ============================================ */
.crypto-widget {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.crypto-widget .widget-title {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.crypto-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.crypto-info .change {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.crypto-info .change.positive {
    background-color: rgba(76, 175, 80, 0.3);
    color: #ffffff;
}

.crypto-info .change.negative {
    background-color: rgba(244, 67, 54, 0.3);
    color: #ffffff;
}

.crypto-info .change-24h {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   GOLD WIDGET
   ============================================ */
.gold-widget {
    background: linear-gradient(135deg, #ffa500 0%, #ffb84d 100%);
    color: #222;
    border: none;
}

.gold-widget .widget-title {
    color: #222;
    border-color: rgba(0, 0, 0, 0.1);
}

.gold-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.gold-info .change {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.gold-info .change.positive {
    background-color: rgba(76, 175, 80, 0.5);
    color: #fff;
}

.gold-info .change.negative {
    background-color: rgba(244, 67, 54, 0.5);
    color: #fff;
}

.gold-info .unit {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   EXCHANGE RATES WIDGET
   ============================================ */
.exchange-widget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #222;
    border: none;
}

.exchange-widget .widget-title {
    color: #222;
    border-color: rgba(0, 0, 0, 0.1);
}

.exchange-rates {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.rate-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 0.9rem;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.rate-item .currency {
    font-weight: 600;
}

.rate-item .change {
    font-size: 1.1rem;
}

.rate-item .change.positive {
    color: #4caf50;
}

.rate-item .change.negative {
    color: #f44336;
}

/* ============================================
   QUOTE WIDGET
   ============================================ */
.quote-widget {
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-accent);
}

.quote-widget .widget-title {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.quote-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin: 0;
}

.quote-author {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    text-align: right;
}

/* ============================================
   HEALTH WIDGET
   ============================================ */
.health-widget {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
}

.health-widget .widget-title {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.health-content h4 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.health-content p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* ============================================
   STOCKS WIDGET
   ============================================ */
.stocks-widget {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    border: none;
}

.stocks-widget .widget-title {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.stocks-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stock-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 0.85rem;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.stock-item .symbol {
    font-weight: 700;
}

.stock-item .name {
    opacity: 0.9;
}

.stock-item .price {
    font-weight: 600;
}

.stock-item .change {
    font-weight: 600;
}

.stock-item .change.positive {
    color: #4caf50;
}

.stock-item .change.negative {
    color: #ffeb3b;
}

/* ============================================
   HOROSCOPE WIDGET
   ============================================ */
.horoscope-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.horoscope-widget .widget-title {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.horoscope-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.horoscope-content .sign {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.horoscope-content .text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

.luck-meter {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.luck-meter .label {
    font-size: 0.8rem;
    font-weight: 600;
}

.luck-meter .stars {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1600px) {
    .articles-grid-large {
        grid-template-columns: repeat(4, 1fr);
    }

    .widgets-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .articles-grid-large {
        grid-template-columns: repeat(3, 1fr);
    }

    .widgets-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .widget.compact-strip {
        padding: var(--spacing-sm);
    }

    .widgets-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .article-card {
        padding: var(--spacing-xs);
        min-height: 250px;
    }

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

    .article-excerpt {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .articles-grid-large {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .widgets-strip {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .widget.compact-strip {
        padding: var(--spacing-sm);
    }

    .article-card {
        padding: var(--spacing-xs);
        min-height: auto;
    }

    .article-title {
        font-size: 0.85rem;
        margin: var(--spacing-xs) 0;
    }

    .article-excerpt {
        font-size: 0.7rem;
    }

    .article-readmore {
        font-size: 0.75rem;
    }

    .featured-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 768px) {
    .header-content {
        height: 3.5rem;
        padding: 0 var(--spacing-sm);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        z-index: 200;
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-sm);
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
    }

    .header-nav.is-open {
        display: flex;
    }

    .brand {
        font-size: 1.25rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.55rem 0.5rem;
        border-radius: 8px;
    }

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

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .article-title-detail {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

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

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

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

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

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .related-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 3.25rem;
        padding: 0 var(--spacing-xs);
    }

    .header-nav {
        right: var(--spacing-xs);
        left: var(--spacing-xs);
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .brand {
        font-size: 1.1rem;
        gap: var(--spacing-xs);
    }

    .brand-icon {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 1.35rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .article-featured,
    .article-card,
    .related-article-card {
        padding: var(--spacing-md);
    }

    .featured-title {
        font-size: 1.15rem;
    }

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

    .article-title-detail {
        font-size: 1.15rem;
    }

    .article-paragraph {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .related-section h2 {
        font-size: 1.25rem;
    }

    .featured-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-links {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 320px) {
    .header-nav {
        gap: var(--spacing-sm);
    }

    .article-featured,
    .article-card,
    .related-article-card {
        padding: var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .featured-title {
        font-size: 1.05rem;
    }

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

/* ============================================
   HOMEPAGE FEED REWORK
   ============================================ */
.home-featured-wrap {
    margin-bottom: var(--spacing-lg);
}

.home-featured-card {
    width: 100%;
}

.home-category-nav {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-category-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

.home-category-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.home-section-tag {
    display: inline-block;
    font-size: 0.72rem;
    background: #111827;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    letter-spacing: 0.2px;
}


.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.home-article-card {
    min-height: 230px;
}

.home-card-section {
    margin: 0 0 6px 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--color-accent);
    align-self: flex-start;
    border-radius: 999px;
    padding: 2px 8px;
}

@media (max-width: 1280px) {
    .home-articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
.homepage-sections {
    margin-top: var(--spacing-2xl);
}

.sections-stack {
    display: grid;
    gap: var(--spacing-lg);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.section-block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.section-block h3 {
    margin: 0 0 var(--spacing-md) 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.section-articles {
    display: grid;
    gap: var(--spacing-md);
}

.section-article-card {
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
}

.section-article-card time {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.section-article-card h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    line-height: 1.25;
}

.section-article-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-2xl);
}

.legal-content {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: var(--spacing-lg);
    display: grid;
    gap: var(--spacing-md);
}

.legal-content p {
    margin: 0;
    color: var(--color-text-secondary);
}

.legal-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.legal-link-card {
    display: block;
    padding: var(--spacing-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

.legal-link-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.section-video-block {
    margin-bottom: var(--spacing-xl);
}

.homepage-geekzone-header {
    margin-top: var(--spacing-2xl);
}

.section-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.section-video-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.section-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.section-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .legal-links-grid {
        grid-template-columns: 1fr;
    }

    .section-video-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #a72626;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

