/**
 * Frontend - Ana Stil Dosyası
 * Responsive ve modern tasarım
 */

/* =====================================================
   GENEL AYARLAR
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family, 'Poppins', sans-serif);
}

:root {
    --primary: #0056b3;
    --secondary: #28a745;
    --header-bg: #003366;
    --footer-bg: #1a1a2e;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --card-shadow: 0 2px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   ÜST BİLGİ ÇUBUĞU (Top Bar)
   ===================================================== */
.top-bar {
    background: var(--header-bg);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-left span {
    color: rgba(255,255,255,0.85);
}

.top-bar-left span i {
    margin-right: 4px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    font-size: 16px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.top-bar-separator {
    color: rgba(255,255,255,0.25);
    margin: 0 8px;
    font-size: 12px;
}

/* Baraj Doluluk Oranı */
.top-bar-dam {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.top-bar-dam:hover {
    opacity: 0.85;
    color: #fff;
}

.top-bar-dam > i {
    color: #4fc3f7;
    font-size: 13px;
    animation: dropletPulse 2.5s ease-in-out infinite;
}

.dam-label {
    opacity: 0.8;
}

.dam-rate {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}

.dam-bar-wrap {
    display: inline-block;
    width: 60px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
}

.dam-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #0288d1);
    border-radius: 4px;
    transition: width 1s ease;
}

@keyframes dropletPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   ANA HEADER
   ===================================================== */
.main-header {
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

/* Header iç yapısı: Sol Logo | Orta Başlık | Sağ Logolar */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 15px;
}

/* Sol: Site logosu */
.header-left {
    flex-shrink: 0;
}

.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo .logo-img {
    max-height: 65px;
}

.site-logo .logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

/* Orta: Site başlığı */
.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-title-area {
    padding: 0 10px;
}

.header-site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--header-bg);
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.header-site-desc {
    font-size: 12px;
    color: #777;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Sağ: 2 adet logo/amblem */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-right-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-right-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.header-right-logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

/* =====================================================
   NAVİGASYON
   ===================================================== */
.main-nav {
    background: var(--primary);
    padding: 0;
}

.main-nav .container {
    position: relative;
}

.main-nav .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 10px;
}

/* Menüyü tek satırda tut, taşmayı önle */
.main-nav .navbar-collapse {
    flex-wrap: nowrap;
}

.main-nav .navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 13px;
    padding: 12px 14px !important;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.main-nav .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 0;
}

.main-nav .dropdown-item {
    padding: 8px 18px;
    font-size: 13px;
    transition: var(--transition);
}

.main-nav .dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Menü Sağ Aksiyon Butonları --- */
.nav-right-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.2px;
}

.nav-action-btn i {
    font-size: 13px;
}

.nav-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    filter: brightness(1.1);
    color: #fff !important;
}

.nav-action-btn:active {
    transform: translateY(0);
}

/* =====================================================
   HERO SLİDER - 3 BÖLÜMLÜ TASARIM
   ===================================================== */
.hero-slider-section {
    padding: 15px 0 30px;
    background: var(--light-bg);
}

.hero-slider-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 12px;
    min-height: 420px;
}

/* --- SOL CAROUSEL (Dikey - Aşağıdan Yukarıya) --- */
.slider-left-col {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.slider-left-swiper {
    height: 420px;
}

.slider-left-swiper .swiper-slide {
    height: auto !important;
}

.left-slide-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.left-slide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.left-slide-image {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), #0091ea);
}

.left-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255,255,255,0.7);
}

.left-slide-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
}

.left-slide-badge {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.left-slide-text {
    padding: 10px 12px;
}

.left-slide-text p {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    font-weight: 500;
}

/* --- ORTA ANA SLİDER --- */
.slider-center-col {
    border-radius: 12px;
    overflow: hidden;
}

.slider-main-swiper {
    height: 420px;
    border-radius: 12px;
}

.main-slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--header-bg));
}

.main-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 48px;
}

.main-slide-placeholder span {
    font-size: 16px;
    margin-top: 10px;
}

.main-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 60px 30px 30px;
    color: #fff;
}

.main-slide-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-slide-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.btn-slide {
    border-radius: 25px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 13px;
}

/* Slider kontrolleri */
.main-slider-next,
.main-slider-prev {
    color: #fff !important;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.main-slider-next::after,
.main-slider-prev::after {
    font-size: 16px !important;
}

.main-slider-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.main-slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

/* --- SAĞ TARAF - 2 SABİT GÖRSEL --- */
.slider-right-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-side-item {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: var(--transition);
}

.right-side-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.right-side-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--text-color);
}

.right-side-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: top center;
}

.right-side-placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
    font-size: 48px;
    color: var(--primary);
}

.right-side-info {
    padding: 12px 15px;
    text-align: center;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-side-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--header-bg);
    margin-bottom: 2px;
}

.right-side-info span {
    font-size: 12px;
    color: #777;
}

.right-side-empty {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =====================================================
   BÖLÜM BAŞLIKLARI
   ===================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--header-bg);
    margin: 0;
}

/* =====================================================
   SON YAZILAR / HABERLER
   ===================================================== */
.latest-posts-section {
    padding: 50px 0;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light-bg);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.post-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.post-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-color);
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.post-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.post-card-link:hover {
    color: var(--secondary);
}

/* =====================================================
   KATEGORİLER
   ===================================================== */
.categories-section {
    padding: 50px 0;
    background: var(--light-bg);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 25px 15px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: var(--primary);
}

.category-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px;
}

.category-count {
    font-size: 12px;
    color: #999;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.8);
    padding-top: 50px;
}

/* Footer Logo Bölümü */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-link {
    display: inline-block;
    max-width: 180px;
    margin-bottom: 5px;
}

.footer-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    transition: var(--transition);
}

.footer-logo-img:hover {
    opacity: 0.85;
}

/* Footer Başlık */
.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Footer Açıklama */
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 15px;
}

/* Footer Sosyal Medya İkonları (ikon modeli) */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer Sosyal Medya (liste modeli - sosyal kolon tipi) */
.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-social-item {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.footer-social-item:last-child {
    border-bottom: none;
}

.footer-social-item i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social-item:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social-item:hover i {
    background: var(--primary);
}

/* Footer Menü Linkleri */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    padding: 9px 0;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 12px;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a:hover i {
    opacity: 1;
    color: var(--primary);
}

/* Footer İletişim Bilgileri */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-contact li a {
    display: flex;
    align-items: flex-start;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: #fff;
}

.footer-contact li i,
.footer-contact li a i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Footer Harita */
.footer-map {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

.footer-map iframe {
    width: 100%;
    height: 150px;
    border: none;
    display: block;
    filter: grayscale(50%);
    transition: var(--transition);
}

.footer-map iframe:hover {
    filter: grayscale(0%);
}

/* Footer Özel HTML */
.footer-custom-html {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.footer-custom-html a {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer Alt Kısım (Copyright) */
.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-separator {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
}

/* Footer Responsive */
@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 40px;
    }
    
    .footer-logo-img {
        max-height: 55px;
    }
    
    .footer-map iframe {
        height: 120px;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .footer-logo-link {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-desc {
        text-align: center;
    }
}

/* =====================================================
   MOBİL ALT BAR
   ===================================================== */

/* Sadece mobilde görünür */
.mobile-bottom-bar {
    display: none;
}

.mobile-bar-spacer {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        transition: transform 0.3s ease;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(255,255,255,0.97);
    }
    
    /* Bar her zaman sabit kalır, gizlenmez */
    
    .mobile-bar-spacer {
        display: block;
        height: 68px;
    }
    
    .mobile-bar-inner {
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        padding: 6px 4px 8px;
        max-width: 480px;
        margin: 0 auto;
    }
    
    /* Normal buton */
    .mobile-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        text-decoration: none;
        color: #666;
        position: relative;
        padding: 2px 0;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease;
    }
    
    .mobile-bar-item:hover,
    .mobile-bar-item:active {
        color: var(--primary);
        text-decoration: none;
    }
    
    .mobile-bar-icon {
        font-size: 20px;
        line-height: 1;
        margin-bottom: 2px;
        color: #555;
        transition: all 0.2s ease;
    }
    
    .mobile-bar-item:active .mobile-bar-icon {
        transform: scale(0.9);
    }
    
    .mobile-bar-label {
        font-size: 10px;
        font-weight: 500;
        line-height: 1.1;
        text-align: center;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Badge (rozet) */
    .mobile-bar-badge {
        position: absolute;
        top: -2px;
        right: calc(50% - 20px);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 10px;
        line-height: 1.3;
        min-width: 16px;
        text-align: center;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
        animation: badgePop 0.3s ease;
    }
    
    /* Vurgulu (highlight) buton */
    .mobile-bar-highlight {
        margin-top: -20px;
    }
    
    .mobile-highlight-circle {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        border: 3px solid #fff;
        transition: all 0.2s ease;
    }
    
    .mobile-highlight-circle i {
        font-size: 22px;
        color: #fff;
    }
    
    .mobile-bar-highlight:active .mobile-highlight-circle {
        transform: scale(0.92);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .mobile-bar-highlight .mobile-bar-label {
        margin-top: 3px;
    }
    
    .mobile-bar-highlight .mobile-bar-badge {
        top: -6px;
        right: calc(50% - 26px);
    }
    
    /* Scroll top butonunu mobil bar'ın üstüne taşı */
    .scroll-top-btn {
        bottom: 78px !important;
    }
}

/* =====================================================
   MOBİL BAR ANİMASYONLARI
   ===================================================== */

/* Pulse - Nabız */
@keyframes mbPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}
.mb-anim-pulse .mobile-bar-icon i,
.mb-anim-pulse .mobile-highlight-circle {
    animation: mbPulse 2s ease-in-out infinite;
}

/* Bounce - Zıplama */
@keyframes mbBounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-7px); }
    50% { transform: translateY(-3px); }
    70% { transform: translateY(-5px); }
}
.mb-anim-bounce .mobile-bar-icon i,
.mb-anim-bounce .mobile-highlight-circle {
    animation: mbBounce 2.5s ease infinite;
}

/* Shake - Titreme */
@keyframes mbShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-3px); }
    30% { transform: translateX(3px); }
    45% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    75% { transform: translateX(0); }
}
.mb-anim-shake .mobile-bar-icon i,
.mb-anim-shake .mobile-highlight-circle {
    animation: mbShake 3s ease infinite;
}

/* Ring - Çan Titreşimi */
@keyframes mbRing {
    0% { transform: rotate(0deg); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-13deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-8deg); }
    25% { transform: rotate(5deg); }
    30%, 100% { transform: rotate(0deg); }
}
.mb-anim-ring .mobile-bar-icon i,
.mb-anim-ring .mobile-highlight-circle {
    animation: mbRing 3s ease infinite;
    transform-origin: top center;
}

/* Glow - Parlama */
@keyframes mbGlow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.85; filter: brightness(1.5); }
}
.mb-anim-glow .mobile-bar-icon i,
.mb-anim-glow .mobile-highlight-circle {
    animation: mbGlow 2.5s ease-in-out infinite;
}

/* Wiggle - Sallanma */
@keyframes mbWiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-6deg); }
    40% { transform: rotate(6deg); }
    60% { transform: rotate(-4deg); }
    80% { transform: rotate(4deg); }
}
.mb-anim-wiggle .mobile-bar-icon i,
.mb-anim-wiggle .mobile-highlight-circle {
    animation: mbWiggle 2s ease infinite;
}

/* Badge Pop animasyonu */
@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =====================================================
   YUKARI ÇIK BUTONU
   ===================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top-btn.show {
    display: flex;
}

.scroll-top-btn:hover {
    background: var(--header-bg);
    transform: translateY(-3px);
}

/* =====================================================
   İÇ SAYFA - GENEL YAPI
   ===================================================== */
.page-content-section {
    padding: 40px 0 60px;
}

.page-title-bar {
    background: linear-gradient(135deg, var(--primary), var(--header-bg));
    color: #fff;
    padding: 30px 0;
}

.page-title-bar h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.page-title-bar .breadcrumb {
    margin: 5px 0 0;
}

.page-title-bar .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-title-bar .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.content-card img {
    border-radius: 8px;
    margin-bottom: 15px;
}

/* =====================================================
   SIDEBAR WİDGET'LAR (Yan Menü Servis Butonları)
   ===================================================== */
.sidebar-widget-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.25s ease;
}

.sidebar-widget-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-decoration: none;
}

.sidebar-widget-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-widget-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0 !important;
    margin: 0 !important;
}

.sidebar-widget-icon i {
    font-size: 22px;
}

.sidebar-widget-title {
    flex: 1;
}

/* Sidebar Sayfa Linkleri */
.sidebar-page-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-page-link:last-child {
    border-bottom: none;
}

.sidebar-page-link i {
    font-size: 11px;
    color: var(--primary);
    transition: all 0.2s ease;
}

.sidebar-page-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.sidebar-page-link:hover i {
    transform: translateX(3px);
}

.sidebar-page-link.active {
    color: var(--primary);
    font-weight: 600;
}

.sidebar-page-link.active i {
    font-weight: 700;
}

/* Sidebar Widget Responsive */
@media (max-width: 991.98px) {
    .sidebar-widget-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .sidebar-widget-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .sidebar-widget-icon {
        width: 28px;
        height: 28px;
    }
    
    .sidebar-widget-icon img {
        width: 24px;
        height: 24px;
    }
    
    .sidebar-widget-icon i {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .sidebar-widget-item {
        flex: 1 1 100%;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1199.98px) {
    /* Menü daha küçük ekranlara sığsın */
    .main-nav .nav-link {
        font-size: 12px;
        padding: 12px 10px !important;
    }
    
    .nav-action-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .nav-action-btn i {
        font-size: 12px;
    }
    
    .hero-slider-wrapper {
        grid-template-columns: 200px 1fr 200px;
    }
    
    .slider-main-swiper,
    .slider-left-swiper {
        height: 380px;
    }
}

@media (max-width: 991.98px) {
    .header-inner {
        gap: 10px;
    }
    
    .header-site-title {
        font-size: 16px;
    }
    
    .header-site-desc {
        display: none;
    }
    
    .header-right-logo img {
        max-height: 50px;
    }
    
    /* Mobilde menü tek sütun */
    .main-nav .navbar-nav {
        flex-wrap: wrap;
        white-space: normal;
    }
    
    .main-nav .nav-link {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
    
    /* Mobilde butonları menü altına taşı */
    .nav-right-buttons {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        gap: 6px;
        margin-left: 0;
    }
    
    .nav-action-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .hero-slider-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: auto;
    }
    
    .slider-left-col {
        order: 2;
    }
    
    .slider-center-col {
        order: 1;
    }
    
    .slider-right-col {
        order: 3;
        flex-direction: row;
    }
    
    .slider-main-swiper {
        height: 320px;
    }
    
    .slider-left-swiper {
        height: 180px;
    }
    
    .slider-left-col {
        border-radius: 12px;
    }
    
    .right-side-item img {
        height: 120px;
    }
    
    .top-bar-left,
    .top-bar-right {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .header-center {
        display: none !important;
    }
    
    .header-right-logo img {
        max-height: 40px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .site-logo .logo-img {
        max-height: 50px;
    }
    
    .hero-slider-wrapper {
        gap: 10px;
    }
    
    .slider-main-swiper {
        height: 250px;
    }
    
    .main-slide-content h2 {
        font-size: 18px;
    }
    
    .main-slide-content p {
        display: none;
    }
    
    .slider-right-col {
        flex-direction: column;
    }
    
    .right-side-item img {
        height: 100px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .post-card-image {
        height: 160px;
    }
    
    .top-bar {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .slider-main-swiper {
        height: 200px;
    }
    
    .main-slide-content {
        padding: 30px 15px 15px;
    }
    
    .main-slide-content h2 {
        font-size: 16px;
    }
    
    .main-slider-next,
    .main-slider-prev {
        display: none !important;
    }
    
    .latest-posts-section,
    .categories-section {
        padding: 30px 0;
    }
}

/* =====================================================
   BARAJ DOLULUK ORANLARI SAYFASI
   ===================================================== */
.dam-page-section {
    background: #f5f7fb;
    min-height: 60vh;
}

/* Sayfa başlığı hero ikonu */
.dam-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d6efd;
    font-size: 36px;
    margin: 0 auto;
}

/* Güncel doluluk kartı */
.dam-current-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.dam-current-left {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 30px;
}

/* SVG Gauge */
.dam-gauge-wrap {
    display: flex;
    justify-content: center;
}
.dam-gauge {
    position: relative;
    width: 180px;
    height: 180px;
}
.dam-gauge-svg {
    width: 100%;
    height: 100%;
}
.dam-gauge-fill {
    transition: stroke-dashoffset 1.5s ease;
}
.dam-gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.dam-gauge-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.dam-gauge-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* Güncel kart sağ taraf */
.dam-current-info h2 {
    font-size: 32px;
}

/* İlerleme çubuğu (büyük) */
.dam-progress {
    position: relative;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}
.dam-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #0288d1);
    border-radius: 12px;
    transition: width 1.5s ease;
}
.dam-progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Bilgi badge'leri */
.dam-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* Sonuç kartları */
.dam-result-card {
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
}
.dam-result-card.result-found {
    background: #f0f9f4;
    border-color: #198754;
}
.dam-result-card.result-not-found {
    background: #f8f9fa;
    border-color: #6c757d;
}
.dam-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

/* Seviye açıklaması */
.dam-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dam-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.dam-legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Responsive - Baraj sayfası */
@media (max-width: 767.98px) {
    .dam-current-card .row {
        flex-direction: column;
    }
    .dam-current-left {
        padding: 20px;
    }
    .dam-gauge {
        width: 140px;
        height: 140px;
    }
    .dam-gauge-value {
        font-size: 22px;
    }
    .dam-current-info h2 {
        font-size: 24px;
    }
    .dam-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}
