/* Minimal Dark Weather Dashboard */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0f1c;
    color: #e2e8f0;
    line-height: 1.5;
    min-height: 100vh;
}

/* Subtle background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Header - Clean and focused */
header {
    padding: 2rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Navigation - Simplified */
.district-nav {
    padding: 1.5rem 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-primary {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.district-link {
    color: #60a5fa;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.district-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.district-link.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    color: #60a5fa;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    height: 39.5px;
    font-family: 'Segoe UI';
}

.dropdown-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
    margin-top: 3px;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    max-height: 300px;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.district-search {
    width: 100%;
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.district-search:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.8);
}

.district-search::placeholder {
    color: #94a3b8;
}

.dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
}

.dropdown-link {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border-left-color: #3b82f6;
}

.dropdown-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-left-color: #3b82f6;
    font-weight: 600;
}

.active-indicator {
    color: #10b981;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.dropdown-link.hidden {
    display: none;
}

.page-article a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}
.page-article ul {
       padding-left: 18px;
    margin: 15px 0;
}
.page-article a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

/* Main Layout - User-focused */
main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 25px;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Cards - Minimal and clean */
.current-weather, .air-quality, .forecast, .hourly-forecast {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 25px;
}

/* Section headers - Simple and clear */
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    padding-bottom:1.5rem;
    margin-bottom:1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* Current Weather - Hero focus */
.weather-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.weather-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-emoji {
    font-size: 8rem;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.3));
}

.weather-icon::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.weather-icon:hover .weather-emoji {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(96, 165, 250, 0.5));
}

.weather-details .temperature {
    font-size: 4rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.weather-details .description {
    font-size: 1.2rem;
    color: #cbd5e1;
    text-transform: capitalize;
    margin-bottom: 1.5rem;
}

/* Weather stats - Grid layout for easy scanning */
.weather-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.weather-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.weather-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.weather-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Air Quality - Clean circular design */
.air-quality {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.aqi-card {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
}

.aqi-value {
    font-size: 80px;
    line-height: 67px;
    font-weight: 800;
    margin: 0;    margin-bottom: 7px;
        margin-top: -10px;
}

.aqi-text {
    font-size: 40px;
    line-height: 35px;
    margin: 0;
    opacity: 0.9;
}

.aqi-1 { background: #10b981; }
.aqi-2 { background: #f59e0b; }
.aqi-3 { background: #f97316; }
.aqi-4 { background: #ef4444; }
.aqi-5 { background: #8b5cf6; }
.aqi-unknown { background: #6b7280; }

/* Hourly Forecast - Horizontal scroll */
.hourly-container {
    display: grid;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
    grid-template-columns: repeat(8, 1fr);
}
.forecast {
    margin-top: 25px;
}

.page-article {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.page-article h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}
.page-article h2.mt-3 {
    margin-top: 1rem;
}
.page-article h3 {
  margin: 15px 0
}

.page-article p {
    color: #cbd5e1;
    line-height: 1.7;
}

/* Responsive Table Styles */
.wp-block-table {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.wp-block-table table.has-fixed-layout {
    table-layout: auto;
}

.wp-block-table thead tr {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.wp-block-table thead td,
.wp-block-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #f8fafc;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.wp-block-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: background-color 0.2s ease;
}

.wp-block-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.wp-block-table tbody tr:last-child {
    border-bottom: none;
}

.wp-block-table tbody td {
    padding: 0.875rem 1rem;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

.wp-block-table tbody td:last-child,
.wp-block-table thead td:last-child,
.wp-block-table thead th:last-child {
    border-right: none;
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .wp-block-table {
        font-size: 0.8rem;
    }
    
    .wp-block-table thead td,
    .wp-block-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .wp-block-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .wp-block-table {
        margin: 1rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .wp-block-table table {
        font-size: 0.75rem;
    }
    
    .wp-block-table thead td,
    .wp-block-table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .wp-block-table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Stack table on very small screens */
    .wp-block-table table,
    .wp-block-table thead,
    .wp-block-table tbody,
    .wp-block-table th,
    .wp-block-table td,
    .wp-block-table tr {
        display: block;
    }
    
    .wp-block-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .wp-block-table tbody tr {
        border: 1px solid rgba(148, 163, 184, 0.2);
        margin-bottom: 0.5rem;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.8);
        padding: 0.5rem;
    }
    
    .wp-block-table tbody td {
        border: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        position: relative;
        padding: 0.5rem 0.5rem 0.5rem 35%;
        text-align: left;
    }
    
    .wp-block-table tbody td:last-child {
        border-bottom: none;
    }
    
    .wp-block-table tbody td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0.5rem;
        width: 30%;
        padding-right: 0.5rem;
        white-space: nowrap;
        font-weight: 600;
        color: #60a5fa;
        font-size: 0.7rem;
    }
    
    /* Add data labels for mobile */
    .wp-block-table tbody tr:nth-child(1) td:nth-child(1):before { content: "Mevsim: "; }
    .wp-block-table tbody tr:nth-child(1) td:nth-child(2):before { content: "Sıcaklık: "; }
    .wp-block-table tbody tr:nth-child(1) td:nth-child(3):before { content: "Hava: "; }
    
    .wp-block-table tbody tr:nth-child(2) td:nth-child(1):before { content: "Mevsim: "; }
    .wp-block-table tbody tr:nth-child(2) td:nth-child(2):before { content: "Sıcaklık: "; }
    .wp-block-table tbody tr:nth-child(2) td:nth-child(3):before { content: "Hava: "; }
    
    .wp-block-table tbody tr:nth-child(3) td:nth-child(1):before { content: "Mevsim: "; }
    .wp-block-table tbody tr:nth-child(3) td:nth-child(2):before { content: "Sıcaklık: "; }
    .wp-block-table tbody tr:nth-child(3) td:nth-child(3):before { content: "Hava: "; }
    
    .wp-block-table tbody tr:nth-child(4) td:nth-child(1):before { content: "Mevsim: "; }
    .wp-block-table tbody tr:nth-child(4) td:nth-child(2):before { content: "Sıcaklık: "; }
    .wp-block-table tbody tr:nth-child(4) td:nth-child(3):before { content: "Hava: "; }
}

.hourly-container::-webkit-scrollbar {
    height: 6px;
}

.hourly-container::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.hourly-container::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.hourly-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 90px;
    flex-shrink: 0;
}

.hourly-card .hour {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hourly-emoji {
    font-size: 2.5rem;
    display: block;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.2));
}

.hourly-card:hover .hourly-emoji {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.4));
}

.hourly-card .temp {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* 5-Day Forecast - Simple grid */
.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.forecast-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.forecast-card .day-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.forecast-card .date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.forecast-emoji {
    font-size: 3rem;
    display: block;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.2));
}

.forecast-card:hover .forecast-emoji {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.4));
}

.forecast-card .temp {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
}

.temp-max {
    font-weight: 700;
    color: #f8fafc;
}

.temp-min {
    opacity: 0.7;
    color: #cbd5e1;
}

/* Footer - Clean and functional */
footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.data-source {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.update-time {
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-bottom {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design - Mobile-first approach */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .aqi-card {
        padding: 20px;
    }
    .weather-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .weather-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hourly-container {
        gap: 15px;
    }
    main {
        padding: 1.5rem 1rem;
    }
    
    header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .district-nav {
        padding: 1.5rem 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-primary {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 0;
    }
    
    .district-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .district-icon {
        font-size: 1.25rem;
    }
    
    .district-info {
        align-items: center;
    }
    
    .district-name {
        font-size: 0.85rem;
    }
    
    .district-desc {
        font-size: 0.7rem;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: auto;
        max-height: 350px;
    }
    
    .dropdown-header {
        padding: 0.875rem;
    }
    
    .district-search {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .search-icon {
        left: 1rem;
    }
    
    .dropdown-content {
        max-height: 250px;
    }
    
    .group-header {
        padding: 0.875rem 1rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .dropdown-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .link-icon {
        font-size: 1.1rem;
    }
    
    .current-weather, .air-quality, .forecast, .hourly-forecast {
        padding: 1.5rem;
    }
    
    .weather-details .temperature {
        font-size: 3rem;
    }
    
    .weather-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .weather-stat {
        padding: 0.75rem 0.5rem;
    }
    
    .forecast-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .firsth2{
        margin-bottom: 0;
    }
    
    /* Footer responsive styles */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .weather-details .temperature {
        font-size: 2.5rem;
    }

    
    .aqi-value {
        font-size: 45px;
        line-height: 35px;
                margin-top: 0;
    }
    .aqi-text {
        font-size: 30px;
    }
    
    .weather-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forecast-container {
        grid-template-columns: 1fr;
    }
    
    .hourly-card {
        min-width: 75px;
        padding: 0.75rem 0.5rem;
    }
    
    .hourly-card img {
        width: 35px;
        height: 35px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
    
    .current-weather, .air-quality, .forecast, .hourly-forecast {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
    
    header, footer {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}
