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

:root {
    --bg-main: #1a1f2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --accent-teal: #14b8a6;
    --accent-yellow: #eab308;
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --danger: #ef4444;
    --success: #22c55e;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    padding: 0;
    color: var(--text-main);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 40px 40px;
    position: relative;
    z-index: 1;
}

header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.8em;
    color: var(--text-main);
    margin-bottom: 0;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-soft);
}

.breadcrumb {
    text-align: left;
    margin-top: 0;
}

.breadcrumb a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.breadcrumb a:hover {
    color: #fff;
    background: var(--bg-card-hover);
    border-color: var(--accent-teal);
}

/* Main Navigation */
.main-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 3em;
    margin-right: 20px;
}

.nav-text h3 {
    margin-bottom: 8px;
    font-size: 1.5em;
}

.nav-text p {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-soft);
    font-size: 0.9em;
}

.filter-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select option {
    background: #1a1f2e;
    color: var(--text-main);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.apply-btn,
.reset-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.apply-btn {
    background: var(--accent-green);
    color: #000;
}

.apply-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.reset-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-soft);
}

.reset-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

/* Charts */
#chartContainer,
#turkeyChartContainer,
#similarCountriesChart {
    margin: 30px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    height: 500px;
}

canvas {
    max-height: 100%;
}

/* Statistics */
#statsContainer {
    margin: 30px 0;
}

#statsContainer h3 {
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 600;
}

#stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: white;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card h4 {
    font-size: 0.85em;
    margin-bottom: 12px;
    color: var(--text-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-green);
}

/* Tables */
.table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.table-wrapper h3 {
    padding: 20px 20px 0;
    margin-bottom: 0;
    color: var(--text-main);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

thead {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-soft);
}

th,
td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

td {
    color: var(--text-main);
    font-size: 0.95em;
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Turkey Specific Styles */
.turkey-section {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}

.turkey-section h2 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 600;
}

.section-description {
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.7;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.prediction-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.prediction-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.prediction-card h3 {
    color: var(--accent-teal);
    margin-bottom: 20px;
    font-size: 1.25em;
    font-weight: 600;
}

.year-comparison {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
}

.year-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.year-label {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prediction-card .value {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-green);
}

.arrow {
    font-size: 1.8em;
    color: var(--text-muted);
}

.change-indicator {
    text-align: center;
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
}

.change-indicator.decrease {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.change-indicator.increase {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Footer - Internal Pages */
.container footer,
footer:not(.site-footer) {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Section Headers */
#tableContainer h3 {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px 20px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .filters {
        flex-direction: column;
        padding: 20px;
    }

    .filter-group {
        width: 100%;
    }

    .nav-button {
        flex-direction: column;
        text-align: center;
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    #chartContainer,
    #turkeyChartContainer,
    #similarCountriesChart {
        height: 300px;
        padding: 16px;
    }

    .turkey-section {
        padding: 20px;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prediction-card {
        padding: 20px;
    }

    .year-comparison {
        gap: 8px;
    }

    .year-box {
        padding: 12px 16px;
        min-width: 0;
        flex: 1;
    }

    .prediction-card .value {
        font-size: 1.5em;
    }

    .arrow {
        font-size: 1.4em;
        flex-shrink: 0;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--accent-teal);
    font-size: 1.2em;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* ==========================================
   HOMEPAGE SPECIFIC STYLES
   ========================================== */

.home-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1f2e;
    min-height: 100vh;
    padding: 0;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.home-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
}

/* Site Header */
.site-header {
    padding: 20px 40px;
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.logo svg {
    width: 24px;
    height: 24px;
}

/* Download Buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header-download {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.85rem;
}

.header-download:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.hero-download {
    margin-top: 32px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.hero-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.hero-download i:last-child {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(4px);
    }

    60% {
        transform: translateY(2px);
    }
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    margin-bottom: 60px;
}

.report-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.card-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.group-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    padding-left: 4px;
}

.group-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: left;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon.orange {
    background: rgba(234, 88, 12, 0.2);
    color: #f97316;
}

.card-icon.green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.card-icon.teal {
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.card-icon.orange+h3+p+.card-link,
.card-icon.orange~.card-link {
    color: #f97316;
}

.card-icon.green+h3+p+.card-link,
.card-icon.green~.card-link {
    color: #22c55e;
}

.card-icon.teal+h3+p+.card-link,
.card-icon.teal~.card-link {
    color: #14b8a6;
}

.feature-card:hover .card-link {
    gap: 12px;
}

/* Team Section */
.team-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.team-member h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-member p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

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

.social-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Site Footer */
.site-footer {
    padding: 30px 40px;
    text-align: left;
    position: relative;
    z-index: 10;
    border-top: none;
    margin-top: 0;
}

.site-footer p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Styles for Homepage */
@media (max-width: 1024px) {
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-group {
        padding: 20px;
    }

    .group-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .group-cards .feature-card {
        flex: 1 1 280px;
    }

    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .site-header {
        padding: 16px 20px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-download {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 40px 20px 60px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-download {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .group-cards {
        flex-direction: column;
    }

    .team-section {
        padding: 40px 20px;
    }

    .team-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .site-footer {
        padding: 20px;
        text-align: center;
    }
}

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

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