/* CyTopic Styles - Cyprus-Inspired Youth Magazine */

/* ========== CSS Variables ========== */
:root {
    /* Cyprus-Inspired Colors */
    --color-teal: #0891B2;
    --color-terracotta: #F97316;
    --color-olive: #65A30D;
    --color-purple: #9333EA;
    --color-pink: #EC4899;
    --color-amber: #F59E0B;
    
    /* Neutrals - Light Mode */
    --color-bg: #FAFAF9;
    --color-white: #FFFFFF;
    --color-stone-50: #FAFAF9;
    --color-stone-100: #F5F5F4;
    --color-stone-200: #E7E5E4;
    --color-stone-300: #D6D3D1;
    --color-stone-400: #A8A29E;
    --color-stone-500: #78716C;
    --color-stone-600: #57534E;
    --color-stone-700: #44403C;
    --color-stone-900: #1C1917;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark Mode Variables */
html.dark-mode {
    --color-bg: #1C1917;
    --color-white: #292524;
    --color-stone-50: #292524;
    --color-stone-100: #1C1917;
    --color-stone-200: #44403C;
    --color-stone-300: #57534E;
    --color-stone-400: #78716C;
    --color-stone-500: #A8A29E;
    --color-stone-600: #D6D3D1;
    --color-stone-700: #E7E5E4;
    --color-stone-900: #FAFAF9;
}

html.dark-mode .navbar {
    background-color: rgba(28, 25, 23, 0.9);
    border-bottom-color: #44403C;
}

html.dark-mode .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6));
}

html.dark-mode .section-gradient {
    background: linear-gradient(to bottom right, #1C1917, #292524);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-stone-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0E7490;
}

/* ========== Layout Containers ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-white {
    background-color: var(--color-white);
}

.section-gray {
    background-color: var(--color-stone-100);
}

.section-gradient {
    background: linear-gradient(to bottom right, #ECFEFF, #FFF7ED);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-stone-900);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* ========== Navigation ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-stone-200);
    overflow: visible;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .nav-container {
        height: 5rem;
    }
}

.logo-link {
    display: block;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo-image {
        height: 60px;
    }
}

.nav-menu {
    display: none;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        overflow: visible;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-teal);
}

html.dark-mode .nav-link {
    color: #D6D3D1;
    border: 1px solid #57534E;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

html.dark-mode .nav-link:hover {
    color: #22D3EE;
    border-color: #22D3EE;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-stone-700);
    transition: all 0.3s;
}

.nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-stone-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../attached_assets/ChatGPT Image Nov 21, 2025, 11_43_03 PM_1763768723523.png');
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .hero {
        min-height: 600px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

html.dark-mode .hero {
    background-image: url('../attached_assets/ChatGPT Image Nov 21, 2025, 11_43_15 PM_1763768636942.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    text-align: center;
    color: #FFFFFF;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-dystopic {
    color: #EF4444;
}

.hero-utopic {
    color: #3B82F6;
}

.hero-cytopic {
    color: #FFFFFF;
}

.hero-cytopic-title {
    color: #0891B2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--color-teal);
}

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

.btn-link {
    color: #FFFFFF;
    text-decoration: underline;
    font-size: 1rem;
}

.btn-link:hover {
    text-decoration: none;
}

/* ========== Topic Filters ========== */
.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.topic-chip {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.topic-chip:not(.active) {
    background-color: var(--color-stone-100);
    color: var(--color-stone-700);
}

.topic-chip:not(.active):hover {
    background-color: var(--color-stone-200);
}

.topic-chip.active {
    background-color: var(--color-teal);
    color: var(--color-white);
}

/* ========== Article Cards ========== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

.article-card {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== Writers Section ========== */
.writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .writers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.writer-card {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.writer-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.writer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--color-teal), var(--color-terracotta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.writer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.writer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-stone-900);
    margin: 0;
}

.writer-age {
    font-size: 0.875rem;
    color: var(--color-stone-600);
    margin: 0;
}

.writer-articles {
    font-size: 0.875rem;
    color: var(--color-teal);
    font-weight: 500;
    margin: 0;
}

/* Dark mode adjustments */
.dark-mode .writer-card {
    background-color: var(--color-stone-900);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-mode .writer-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.dark-mode .writer-name {
    color: var(--color-white);
}

.dark-mode .writer-age {
    color: var(--color-stone-400);
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.category-culture { background-color: var(--color-terracotta); color: white; }
.category-language { background-color: var(--color-teal); color: white; }
.category-student { background-color: var(--color-purple); color: white; }
.category-environment { background-color: var(--color-olive); color: white; }
.category-creativity { background-color: var(--color-pink); color: white; }
.category-diaspora { background-color: var(--color-amber); color: white; }
.category-health { background-color: #10B981; color: white; }
.category-politics { background-color: #DC2626; color: white; }
.category-sports { background-color: #2563EB; color: white; }
.category-technology { background-color: #4F46E5; color: white; }
.category-education { background-color: #0D9488; color: white; }
.category-opinion { background-color: #475569; color: white; }
.category-history { background-color: #78716C; color: white; }
.category-community { background-color: #F43F5E; color: white; }
.category-newsletter { background-color: #0891B2; color: white; }

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

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-stone-900);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }
}

.article-title a {
    color: inherit;
    transition: color 0.2s;
}

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

.article-excerpt {
    font-size: 1rem;
    color: var(--color-stone-600);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-stone-100);
}

.article-author {
    font-size: 0.875rem;
    color: var(--color-stone-500);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-teal);
}

/* ========== Ad Slots ========== */
.ad-slot {
    border: 2px dashed var(--color-stone-300);
    background-color: var(--color-stone-50);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-xl) 0;
}

.ad-leaderboard {
    height: 90px;
}

.ad-slot p {
    font-size: 0.875rem;
    color: var(--color-stone-500);
    text-align: center;
    padding: var(--spacing-md);
    margin: 0;
}

/* ========== Content Sections ========== */
.content-spacing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-spacing p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-stone-700);
}

@media (min-width: 768px) {
    .content-spacing p {
        font-size: 1.125rem;
    }
}

.link-primary {
    color: var(--color-teal);
    text-decoration: underline;
}

.link-primary:hover {
    color: #0E7490;
}

.text-small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--color-stone-500);
    font-style: italic;
}

/* ========== Write With Us Section ========== */
.write-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.icon-box {
    padding: 0.75rem;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--color-teal);
}

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

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-stone-900);
    margin-bottom: 0.75rem;
}

.guidelines-box {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-teal);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guidelines-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guidelines-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-stone-700);
}

.guidelines-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-olive);
    font-weight: 700;
    font-size: 1.125rem;
}

.email-box {
    display: inline-block;
    background-color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--color-stone-300);
    margin: var(--spacing-md) 0;
}

.email-link {
    font-weight: 600;
    color: var(--color-teal);
}

.email-link:hover {
    color: #0E7490;
}

/* ========== Footer ========== */
.footer {
    background-color: var(--color-stone-900);
    color: var(--color-stone-400);
    padding: var(--spacing-2xl) 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.footer-links a {
    color: var(--color-stone-400);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links span {
    color: var(--color-stone-600);
}

.footer-text {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.footer-text p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-text a {
    color: #22D3EE;
}

.footer-text a:hover {
    color: #06B6D4;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-stone-500);
    margin: 0;
}

.total-site-views {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-teal);
    font-weight: 600;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(8, 145, 178, 0.1);
    border-radius: 0.5rem;
    display: inline-block;
}

.footer-support {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg) var(--spacing-lg);
    background: rgba(8, 145, 178, 0.1);
    border-radius: 0.5rem;
}

.support-section h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.support-section p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.support-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-teal);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.support-link:hover {
    background-color: #0E7490;
}

@media (max-width: 768px) {
    .footer-support {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== Article Page ========== */
.article-page {
    padding: var(--spacing-2xl) 0;
}

/* ========== Breadcrumb Navigation ========== */
.breadcrumb-nav {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-stone-200);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: inline;
}

.breadcrumb-list a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--color-stone-600);
    font-weight: 600;
}

.breadcrumb-list li:not(:last-child)::after {
    content: " / ";
    color: var(--color-stone-400);
    margin: 0 0.25rem;
}

html.dark-mode .breadcrumb-nav {
    border-bottom-color: var(--color-stone-700);
}

html.dark-mode .breadcrumb-list a {
    color: var(--color-teal);
}

html.dark-mode .breadcrumb-list li[aria-current="page"] {
    color: var(--color-stone-400);
}

html.dark-mode .breadcrumb-list li:not(:last-child)::after {
    color: var(--color-stone-600);
}

/* ========== Back Link ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-teal);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
}

.back-link:hover {
    color: #0E7490;
}

.article-category {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.article-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-stone-900);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .article-page-title {
        font-size: 3rem;
    }
}

.author-bio {
    background-color: var(--color-stone-100);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-xl);
}

.author-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--color-teal), var(--color-terracotta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--color-stone-900);
    margin-bottom: 0.25rem;
}

.author-meta {
    font-size: 0.875rem;
    color: var(--color-stone-600);
    margin-bottom: 0.5rem;
}

.view-count {
    color: var(--color-stone-500);
}

.author-description {
    font-size: 0.875rem;
    color: var(--color-stone-700);
    line-height: 1.5;
    margin: 0;
}

.author-total-views {
    font-size: 0.8rem;
    color: var(--color-teal);
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 0.25rem;
    display: inline-block;
}

.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-stone-700);
}

@media (min-width: 768px) {
    .article-content {
        font-size: 1.125rem;
    }
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Article images */
.article-image-container {
    margin: 2.5rem 0;
    text-align: center;
}

.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-image-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-stone-600);
    font-style: italic;
    text-align: center;
}

html.dark-mode .article-image {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

html.dark-mode .article-image-caption {
    color: var(--color-stone-400);
}

/* Text formatting */
.article-content strong {
    font-weight: 700;
    color: var(--color-stone-900);
}

.article-content em {
    font-style: italic;
    color: var(--color-stone-800);
}

html.dark-mode .article-content strong {
    color: #F5F5F4;
    font-weight: 800;
}

html.dark-mode .article-content em {
    color: var(--color-stone-200);
}

.article-cta {
    background: linear-gradient(to bottom right, #ECFEFF, #FFF7ED);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #A5F3FC;
    margin-top: var(--spacing-xl);
}

.article-cta p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-stone-700);
    margin: 0;
}

.article-cta a {
    color: var(--color-teal);
    font-weight: 600;
    text-decoration: underline;
}

.article-cta a:hover {
    text-decoration: none;
}

html.dark-mode .article-cta {
    background: linear-gradient(to bottom right, #44403C, #3F3C38);
    border: 1px solid #57534E;
}

html.dark-mode .article-cta p {
    color: #E7E5E4;
}

html.dark-mode .article-cta a {
    color: #22D3EE;
}

.related-section {
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-2xl) 0;
}

/* ========== Search Bar ========== */
.section-search {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-white));
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-stone-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3rem;
    border: 2px solid var(--color-stone-200);
    border-radius: 2rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-stone-900);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-stone-300);
    color: var(--color-white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s;
}

.clear-search:hover {
    background: var(--color-stone-400);
}

/* ========== Navbar Search ========== */
.navbar-search {
    display: none;
    margin-right: var(--spacing-md);
}

@media (min-width: 768px) {
    .navbar-search {
        display: block;
    }
}

.search-container-small {
    position: relative;
    width: 250px;
}

.search-icon-small {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-stone-400);
    pointer-events: none;
}

.search-input-small {
    width: 100%;
    padding: 0.375rem 2rem 0.375rem 2.25rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-stone-900);
    transition: all 0.2s;
}

.search-input-small:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.1);
}

.search-input-small::placeholder {
    color: var(--color-stone-400);
}

html.dark-mode .search-input-small {
    background-color: #44403C;
    border: 1px solid #57534E;
    color: #E7E5E4;
}

/* Writers Icon Button */
.nav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-stone-700);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover {
    color: var(--color-teal);
}

html.dark-mode .nav-icon-btn {
    color: var(--color-stone-400);
}

html.dark-mode .nav-icon-btn:hover {
    color: #22D3EE;
}

html.dark-mode .search-input-small:focus {
    border-color: #22D3EE;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1);
}

html.dark-mode .search-input-small::placeholder {
    color: #78716C;
}

html.dark-mode .search-icon-small {
    color: #78716C;
}

html.dark-mode .clear-search-small {
    color: #78716C;
}

html.dark-mode .clear-search-small:hover {
    color: #E7E5E4;
}

.clear-search-small {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-stone-400);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.clear-search-small:hover {
    color: var(--color-stone-900);
}

/* ========== Mobile Search Section ========== */
.mobile-search-section {
    display: block;
    padding: var(--spacing-md) 0;
}

@media (min-width: 768px) {
    .mobile-search-section {
        display: none;
    }
}

.mobile-search-container {
    position: relative;
    max-width: 100%;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--color-stone-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-stone-900);
    transition: all 0.2s;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.mobile-search-input::placeholder {
    color: var(--color-stone-400);
}

.mobile-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-stone-400);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s;
    display: none;
}

.mobile-search-clear.show {
    display: block;
}

.mobile-search-clear:hover {
    color: var(--color-stone-900);
}

/* Dark mode styles for mobile search */
html.dark-mode .mobile-search-input {
    background: var(--color-stone-800);
    color: var(--color-white);
    border-color: var(--color-stone-600);
}

html.dark-mode .mobile-search-input:focus {
    border-color: var(--color-teal);
}

html.dark-mode .mobile-search-input::placeholder {
    color: var(--color-stone-500);
}

html.dark-mode .mobile-search-clear:hover {
    color: var(--color-white);
}

/* ========== Dark Mode Toggle ========== */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-stone-700);
    transition: color 0.2s;
}

.dark-mode-toggle:hover {
    color: var(--color-teal);
}

.dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

html.dark-mode .dark-mode-toggle .sun-icon {
    display: none;
}

html.dark-mode .dark-mode-toggle .moon-icon {
    display: block;
}

/* ========== Scroll to Top Button ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-teal);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(2rem);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #0E7490;
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.4);
    transform: translateY(-2px);
}

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

/* Mobile responsive */
@media (max-width: 640px) {
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .scroll-top-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Dark mode */
html.dark-mode .scroll-top-btn {
    background: var(--color-teal);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

html.dark-mode .scroll-top-btn:hover {
    background: #06B6D4;
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.5);
}

/* ========== Language Switcher ========== */
.language-switcher {
    position: relative;
    display: inline-flex;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: var(--color-stone-100);
    color: var(--color-teal);
}

.lang-btn:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}

.lang-btn .flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-btn .code {
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.lang-btn .chevron {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    min-width: 200px;
    max-width: 280px;
    background: var(--color-white);
    border: 1px solid var(--color-stone-200);
    border-radius: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 9999;
    display: none;
    visibility: hidden;
    opacity: 0;
    will-change: transform, opacity;
    animation: slideDown 0.2s ease-out;
    transform: translateY(0);
}

.lang-dropdown.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-option:hover {
    background-color: var(--color-stone-50);
    color: var(--color-stone-900);
}

.lang-option:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: -2px;
}

.lang-option.selected {
    background-color: rgba(8, 145, 178, 0.1);
    color: var(--color-teal);
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .checkmark {
    color: var(--color-teal);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.lang-option.selected .checkmark {
    opacity: 1;
}

/* Dark Mode Variants */
html.dark-mode .lang-btn {
    color: var(--color-stone-700);
}

html.dark-mode .lang-btn:hover {
    background-color: var(--color-stone-200);
    color: var(--color-teal);
}

html.dark-mode .lang-dropdown {
    background: var(--color-white);
    border-color: var(--color-stone-200);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .lang-option {
    color: var(--color-stone-700);
}

html.dark-mode .lang-option:hover {
    background-color: var(--color-stone-200);
    color: var(--color-stone-900);
}

html.dark-mode .lang-option.selected {
    background-color: rgba(8, 145, 178, 0.15);
    color: var(--color-teal);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .lang-dropdown {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        left: auto;
        right: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    .nav-menu.mobile-open .language-switcher {
        display: flex;
        flex-direction: column;
    }
}

/* ========== Popular Badge & Reading Time ========== */
.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-amber);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .popular-articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-articles .article-card {
    position: relative;
}

.reading-time {
    font-size: 0.875rem;
    color: var(--color-stone-500);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ========== Social Sharing Buttons ========== */
.share-buttons {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl);
    background: var(--color-stone-50);
    border-radius: 0.5rem;
    border: 1px solid var(--color-stone-200);
}

.share-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-stone-900);
    margin-bottom: var(--spacing-md);
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-facebook:hover {
    background: #0C63D4;
    transform: translateY(-2px);
}

.share-linkedin {
    background: #0077B5;
    color: white;
}

.share-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

/* ========== Read Next Button ========== */
.read-next-container {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--color-stone-50);
    border-radius: 0.5rem;
    border: 1px solid var(--color-stone-200);
    transition: all 0.2s;
}

.read-next-container:hover {
    border-color: var(--color-stone-300);
    background: var(--color-white);
}

.read-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-teal);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.read-next-btn:hover {
    background: var(--color-teal-dark);
    transform: translateY(-2px);
    color: white;
}

html.dark-mode .read-next-container {
    background: var(--color-stone-800);
    border-color: var(--color-stone-700);
}

html.dark-mode .read-next-container:hover {
    background: var(--color-stone-700);
    border-color: var(--color-stone-600);
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
}

.share-copy {
    background: var(--color-stone-200);
    color: var(--color-stone-900);
}

.share-copy:hover {
    background: var(--color-stone-300);
    transform: translateY(-2px);
}

/* ========== Print Styles ========== */
@media print {
    /* Hide unnecessary elements */
    .navbar,
    .hero,
    .ad-slot,
    .share-buttons,
    .footer,
    .back-link,
    .article-cta,
    .related-section,
    .menu-toggle,
    .dark-mode-toggle {
        display: none !important;
    }

    /* Optimize article for print */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-page-title {
        font-size: 24pt;
        margin-bottom: 12pt;
    }

    .author-bio {
        border: 1px solid #ccc;
        padding: 12pt;
        margin-bottom: 12pt;
    }

    .article-content {
        max-width: 100%;
    }

    .article-content p {
        margin-bottom: 12pt;
    }

    /* Force page breaks */
    .article-content h2,
    .article-content h3 {
        page-break-after: avoid;
    }

    .article-content p {
        page-break-inside: avoid;
    }

    /* Print links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    .category-badge {
        border: 1px solid #ccc;
        padding: 4pt 8pt;
    }
}
