* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-turquoise: #3ED6C3;
    --primary-turquoise-dark: #2FC1AF;
    --secondary-peach: #F4A7A0;
    --secondary-peach-light: #F7B7AE;
    --cream-bg: #FFF6EA;
    --cream-alt: #FAF1E6;
    --light-beige: #EAC3A5;
    --pure-white: #FFFFFF;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-900: #111827;
    /* WCAG AA: metin ve düğüme uygun kontrast (açık zemin üzeri) */
    --text-heading: #115e59;
    --interactive-solid: #0f766e;
    --interactive-solid-hover: #0d5c54;
    /* Koyu footer üzeri okunabilir metin */
    --footer-text-primary: #f9fafb;
    --footer-text-muted: #e5e7eb;
    --footer-accent: #99f6e4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--secondary-peach) 100%);
    color: var(--gray-900);
    line-height: 1.6;
}

.header {
    background: var(--cream-bg);
    color: var(--gray-900);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 90px;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    min-height: 70px;
}

.header-logo {
    max-width: 500px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-nav a {
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    background: var(--pure-white);
    border: 2px solid transparent;
}

.header-nav a:hover {
    background: var(--cream-alt);
    border-color: var(--interactive-solid);
    color: var(--interactive-solid);
}

.header-nav a.active {
    background: var(--interactive-solid);
    color: var(--pure-white);
    border-color: var(--interactive-solid);
}

.header-nav a.active:hover {
    background: var(--interactive-solid-hover);
    border-color: var(--interactive-solid-hover);
    color: var(--pure-white);
}

.header-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 0.5rem;
}

.header-description {
    font-size: 1rem;
    color: var(--gray-700);
    margin-top: 0.25rem;
}

.header-source {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

.main-content {
    background: var(--pure-white);
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    color: var(--gray-900);
}

.nav-tabs {
    display: flex;
    background: var(--cream-bg);
    border-bottom: 2px solid var(--light-beige);
    overflow-x: auto;
}

.nav-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    background: var(--cream-alt);
}

.nav-tab.active {
    color: var(--text-heading);
    border-bottom-color: var(--interactive-solid);
    background: var(--pure-white);
}

.tab-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.city-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--cream-bg);
    border-radius: 8px;
}

.city-selector h3 {
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.city-btn {
    padding: 0.75rem;
    border: 2px solid var(--secondary-peach);
    background: var(--pure-white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

.city-btn:hover {
    background: var(--secondary-peach-light);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.city-btn.active {
    background: var(--interactive-solid);
    color: var(--pure-white);
    border-color: var(--interactive-solid);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--pure-white) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-turquoise);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h4,
.stat-card-title {
    color: var(--gray-900);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.4;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.stat-subtitle {
    font-size: 0.85rem;
    color: var(--gray-700);
}

/* Climate News Section */
.climate-news-section {
    background: linear-gradient(135deg, #e8f7f5 0%, #fff5f3 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid rgba(47, 193, 175, 0.2);
}

.climate-news-title {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.climate-news-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.climate-news-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.climate-highlight {
    background: var(--pure-white);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-turquoise);
}

.climate-highlight-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.climate-news-section a:not(.climate-read-more) {
    color: var(--interactive-solid);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.climate-news-section a:not(.climate-read-more):hover {
    color: var(--interactive-solid-hover);
}

.climate-highlight h3 {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.climate-highlight p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.climate-read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--interactive-solid);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

.climate-read-more:hover {
    background: var(--interactive-solid-hover);
    transform: translateY(-2px);
}

.climate-read-more:focus-visible {
    outline: 3px solid var(--pure-white);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--interactive-solid);
}

.chart-container {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-container h2 {
    color: var(--text-heading);
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: var(--text-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 0;
    box-shadow: none;
}

.data-table thead {
    background: var(--interactive-solid);
    color: var(--pure-white);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table tbody tr:hover {
    background: var(--cream-bg);
}

.data-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.info-box {
    background: var(--cream-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-turquoise);
}

.info-box h4 {
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

/* Article page styles */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--interactive-solid);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-title {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.article-intro {
    background: var(--cream-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-turquoise);
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin: 2rem 0 1rem 0;
}

.article-body h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin: 1.5rem 0 0.75rem 0;
}

.article-body p, .article-body ul {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-body ul {
    padding-left: 1.5rem;
}

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

.article-sources {
    background: var(--gray-100);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.article-sources h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.article-sources ul {
    margin: 0;
    padding-left: 1.25rem;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.article-back, .article-related {
    color: var(--interactive-solid);
    text-decoration: none;
    font-weight: 600;
}

.article-back:hover, .article-related:hover {
    color: var(--interactive-solid-hover);
    text-decoration: underline;
}

.data-source {
    background: var(--cream-alt);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--light-beige);
    font-size: 0.9rem;
}

.highlight {
    background: var(--secondary-peach-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--gray-900);
}

.trend-up {
    color: var(--danger);
}

.trend-down {
    color: var(--interactive-solid);
}

.footer {
    background: var(--gray-900);
    color: var(--pure-white);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-accent);
    margin-bottom: 0.75rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-contact {
    margin: 0;
}

.footer-links a {
    color: var(--footer-text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(249, 250, 251, 0.45);
    text-underline-offset: 3px;
    font-size: 0.9rem;
    transition: color 0.3s, text-decoration-color 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--footer-accent);
    text-decoration-color: var(--footer-accent);
    padding-left: 0.5rem;
}

.footer-contact a {
    color: var(--footer-text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(249, 250, 251, 0.45);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--footer-accent);
}

.footer-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--footer-text-primary);
}

.footer-text-small {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--footer-text-muted);
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    opacity: 1;
    text-align: center;
}

.social-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-card {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 140px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
    opacity: 1;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-weight: 600;
}

.social-card:nth-child(1) .social-icon {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

.social-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--pure-white);
}

.social-status {
    font-size: 0.8125rem;
    color: var(--footer-text-primary);
    font-weight: 600;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.region-card {
    background: var(--pure-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-turquoise);
}

.region-card h3,
.region-card h4 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.region-card-desc {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.section-title {
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.region-card-desc {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.info-list {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.warning-box {
    background: var(--secondary-peach-light);
    border-left-color: var(--danger);
}

.warning-box-title {
    color: var(--danger);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.stat-value-danger {
    color: var(--danger);
}

.stat-value-turquoise {
    color: var(--text-heading);
}

.table-margin-top {
    margin-top: 2rem;
}

/* FAQ Styles */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-title {
    color: var(--text-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: var(--pure-white);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    text-align: left;
    background: var(--cream-bg);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--cream-alt);
}

.faq-question.active {
    background: var(--interactive-solid);
    color: var(--pure-white);
}

.faq-icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.25rem;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 1.25rem;
    background: var(--pure-white);
    color: var(--gray-900);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul, .faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.page-content {
    padding: 2rem;
}

/* Lazy loading styles */
[data-lazy="text"] {
    display: none;
}

[data-lazy="text"].loaded {
    display: block;
}

[data-lazy="chart"] {
    min-height: 300px;
}

[data-lazy="table"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

[data-lazy="table"].loaded {
    opacity: 1;
}

[data-lazy="faq"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

[data-lazy="faq"].loaded {
    opacity: 1;
}

@media (max-width: 992px) {
    .header {
        min-height: 120px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        min-height: 100px;
    }
    
    .header-nav {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 110px;
    }
    
    .header-content {
        min-height: 90px;
    }
    
    .header-logo {
        max-width: 350px;
        max-height: 90px;
    }
    
    .header-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-cards {
        gap: 1rem;
    }
    
    .social-card {
        min-width: 120px;
        padding: 1.25rem 1.5rem;
    }
    
    .social-icon {
        font-size: 1.5rem;
    }
    
    .social-name {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .faq-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-answer.active {
        padding: 1rem;
    }
    
    .table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .data-table th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
}
