/* Kirletici tabları için stiller */
.pollutant-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 3px solid #00457C;
    margin-top: 20px;
}

.pollutant-tab {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #00457C;
    border-radius: 5px;
    color: #00457C;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.pollutant-tab:hover {
    background: #00457C;
    color: white;
}

.pollutant-tab.active {
    background: #00457C;
    color: white;
}

/* Tab içeriği */
.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

/* Kirletici bilgi alanı */
.pollutant-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #00457C;
}

.pollutant-info h2 {
    color: #00457C;
    margin: 0 0 10px 0;
}

.pollutant-info .unit {
    font-size: 0.8em;
    color: #666;
}

.pollutant-info .description {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Günlük bölümler */
.day-section {
    margin-bottom: 40px;
    padding: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-header {
    color: #00457C;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

/* Görsel düzeni */
.images-flex {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.map-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.animation-box {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.forecast-image {
    width: 70%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.forecast-image:hover {
    transform: scale(1.02);
}

.animation {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
}

.image-caption {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .pollutant-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .pollutant-tab {
        padding: 8px 15px;
        white-space: nowrap;
    }

    .images-flex {
        flex-direction: column;
    }

    .map-box {
        min-width: 100%;
    }
}



.image-row {
    display: flex; /* Flexbox düzeni */
    justify-content: space-around; /* Görseller arasında boşluk bırakır */
	flex-wrap: wrap; /* Küçük ekranlarda satır kırma */
    align-items: center; /* Görselleri dikey eksende hizalar */
    gap: 20px; /* Görseller arasında boşluk */
}

.map-box {
    flex: 1; /* Her kutunun eşit yer kaplamasını sağlar */
    text-align: center; /* Görselleri ve açıklamaları ortalar */
}

.map-box img {
    max-width: 400px; /* Görsellerin maksimum genişliğini ayarlar */
    height: auto; /* Görsellerin oranlarını korur */
    border: 1px solid #ccc; /* Görsellere kenarlık ekler */
    border-radius: 5px; /* Köşeleri hafif yuvarlatır */
}

.image-caption {
    font-size: 14px; /* Yazı boyutunu küçültür */
    color: #666; /* Daha hafif bir renk */
    margin-top: 5px; /* Görsel ile açıklama arasında boşluk */
}

/* satırlar ve sütunların yer değiştirdiği durumdaki yeni css kodları */

/* Kirletici bölüm stilleri */
.pollutant-section {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pollutant-section h3 {
    color: #00457C;
    border-left: 4px solid #00457C;
    padding-left: 15px;
    margin-bottom: 20px;
}

.pollutant-section .description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Tarih başlığı */
.date-header {
    text-align: center;
    padding: 20px 0;
    font-size: 1.8em;
    color: #00457C;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

/* Görsel düzeni güncellemeleri */
.image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.map-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.map-box:hover {
    transform: translateY(-5px);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .pollutant-section {
        padding: 15px;
    }

    .image-row {
        grid-template-columns: 1fr;
    }

    .map-box {
        margin: 10px 0;
    }

    .pollutant-tabs {
        padding: 10px;
    }

    .pollutant-tab {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}



.map-box {
   flex: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
   padding: 15px;
   background: #f8f9fa;
   border-radius: 8px;
   min-width: 400px;
   max-width: 600px; /* Maksimum genişliği artırdım */
}

.map-box img {
   width: 100%;
   height: 450px; /* Yüksekliği artırdım */
   object-fit: contain;
   border: 1px solid #ccc;
   border-radius: 5px;
}

.map-box .animation {
   width: 100%;
   height: 450px; /* GIF'ler için aynı yükseklik */
   object-fit: contain;
}

.image-row {
   display: flex;
   justify-content: space-between; /* space-around yerine space-between kullandım */
   gap: 15px; /* Gap'i azalttım */
   flex-wrap: wrap;
   padding: 0 15px; /* Kenarlardan padding ekledim */
}



                        .pollutant-section {
                            border-bottom: 1px solid #eee;
                            padding: 30px 0;
                            margin-bottom: 30px;
                        }

                        .pollutant-section:last-child {
                            border-bottom: none;
                        }

                        .date-header {
                            color: #00457C;
                            font-size: 24px;
                            text-align: center;
                            margin: 20px 0 40px 0;
                        }

                        .data-source-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.data-source-item {
    flex: 1 1 calc(50% - 40px);
    max-width: 400px;
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}





/* Hamburger menü stili */
.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin: 0 auto 10px;
    position: relative;
    z-index: 100;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Mobil responsive düzenlemeler */
@media (max-width: 768px) {
    .hamburger-icon {
        display: flex;
        margin: 0 auto 10px;
    }

    .menu-items {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        z-index: 99;
        padding: 0;
    }

    .menu-items.active {
        max-height: 500px;
        padding: 10px 0;
    }

    .menu-items li {
        width: 100%;
        text-align: center;
    }

    .menu-items li a {
        padding: 15px;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Animasyon için hamburger simgesini çarpıya dönüştürme */
    .hamburger-icon.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-icon.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-menu {
        position: relative;
        padding: 15px 20px;
    }
}




/* Logo bölümü için stiller */
.logos-section {
    background-color: #fff;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.logos-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
<!--    align-items: center;-->
}

.logos-title {
    color: #00457C;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
<!--    text-align: center;-->
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.partner-logo {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Mobil için responsive ayarlar */
@media (max-width: 768px) {
    .logos-grid {
        gap: 15px;
    }

    .partner-logo {
        height: 40px;
    }
}


/* Yeni kodlar hknskn */



/* Dropdown menü stilleri */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-width: 220px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* Mobil görünüm için dropdown ayarları - güncellendi */
@media screen and (max-width: 768px) {
    .menu-items.active {
        max-height: 800px; /* Dropdown için daha büyük değer */
        padding: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 5px 0;
        border-radius: 5px;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 200px;
        padding: 10px 0;
    }
    
    .dropdown-menu li a {
        padding: 12px 20px;
        font-size: 14px;
        text-align: center; /* Ortalamak için */
        margin: 0;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .dropdown-toggle i {
        margin-left: auto;
    }
}
