/* =============================================
   MAIN.CSS - Ana CSS Dosyası
   Tüm CSS dosyalarını import eder
   ============================================= */

/*
 * CSS Dosya Yapısı:
 *
 * ├── base.css          → Değişkenler, Reset, Genel Stiller
 * ├── layout.css        → Header, Footer
 * ├── components.css    → Butonlar, Kartlar, Formlar, Modallar
 * ├── widgets.css       → Sosyal Medya, Hava Durumu, Quick Menu
 * └── pages/
 *     ├── home.css          → Ana Sayfa (Slider, Başkan, Hızlı Linkler, Duyurular)
 *     ├── news-events.css   → Haberler ve Etkinlikler
 *     ├── projects.css      → Projeler
 *     ├── contact.css       → İletişim (Harita, Form, Ziyaret)
 *     └── services.css      → Hizmetler (Şablon)
 */


/* ===== TEMEL STİLLER ===== */
@import url('base.css');

/* ===== LAYOUT ===== */
@import url('layout.css');

/* ===== COMPONENTLER ===== */
@import url('components.css');

/* ===== WİDGETLAR ===== */
@import url('widgets.css');

@import url('color-override.css');

/* ===== SAYFALAR ===== */
@import url('pages/home.css');
@import url('pages/baskan.css');
@import url('pages/council.css');
@import url('pages/duyurular.css');
@import url('pages/eczane.css');
@import url('pages/events.css');
@import url('pages/institutional.css');
@import url('pages/news.css');
@import url('pages/projects.css');
@import url('pages/sarayonu.css');
@import url('pages/contact.css');
@import url('pages/services.css');

/* =============================================
   MOBILE RESPONSIVE FIX - Tüm Sayfa
   Ana sorun: Overflow ve container taşması
   ============================================= */

/* ===== GLOBAL OVERFLOW FIX ===== */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

.container {
    max-width: 100% !important;
    padding-left: 59px !important;
    padding-right: 59px !important;
}

/* ===== HEADER MOBILE FIX ===== */
@media (max-width: 991.98px) {
    .main-header .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .logo-container {
        max-width: 70%;
    }

    .logo-img {
        height: 50px !important;
        width: auto !important;
    }

    .logo-text h1 {
        font-size: 14px !important;
    }

    .logo-text p {
        font-size: 10px !important;
        display: none;
    }

    .navbar-toggler {
        padding: 4px 8px !important;
        border: 1px solid #ddd !important;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .btn-header-action {
        width: 100%;
        justify-content: center;
    }
}

/* ===== HERO SECTION (SLIDER + BAŞKAN) MOBILE FIX ===== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 15px 0 !important;
    }

    .hero-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-section .row > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Slider */
    .custom-slider,
    .carousel-item {
        height: 220px !important;
        border-radius: 8px !important;
    }

    .slide-content-bottom {
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        max-width: calc(100% - 30px) !important;
    }

    .slide-content-bottom h2 {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .slide-content-bottom p {
        font-size: 12px !important;
        display: none;
    }

    .btn-slide {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    /* Başkan Bölümü */
    .mayor-section {
        height: auto !important;
        margin-top: 10px !important;
    }

    .mayor-photo-wrapper {
        height: 180px !important;
    }

    .mayor-title-text {
        font-size: 12px !important;
    }

    .mayor-name-text {
        font-size: 16px !important;
    }

    .mayor-content-area {
        padding: 12px !important;
    }

    .mayor-message-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }

    .btn-read-mayor {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 767.98px) {
    .custom-slider,
    .carousel-item {
        height: 180px !important;
    }

    .slide-content-bottom h2 {
        font-size: 14px !important;
    }

    .btn-slide {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    .mayor-photo-wrapper {
        height: 160px !important;
    }

    .mayor-message-text {
        font-size: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .custom-slider,
    .carousel-item {
        height: 160px !important;
    }

    .slide-content-bottom {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }

    .slide-content-bottom h2 {
        font-size: 13px !important;
    }

    .mayor-photo-wrapper {
        height: 140px !important;
    }
}

/* ===== HIZLI LİNKLER MOBILE FIX ===== */
@media (max-width: 767.98px) {
    .quick-access-section {
        padding: 15px 0 !important;
    }

    .quick-access-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .quick-access-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 10px !important;
        padding: 5px 15px 15px 15px !important;
    }

    .quick-access-wrapper::-webkit-scrollbar {
        display: none;
    }

    .quick-access-wrapper .access-card {
        flex: 0 0 auto !important;
        width: 100px !important;
        min-width: 100px !important;
        scroll-snap-align: start;
        padding: 12px 8px !important;
    }

    .access-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .access-title {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .access-desc {
        font-size: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ===== DUYURULAR TICKER MOBILE FIX ===== */
@media (max-width: 767.98px) {
    .announcement-ticker {
        padding: 10px 0 !important;
    }

    .ticker-container {
        margin: 0 10px !important;
        border-radius: 6px !important;
    }

    .ticker-label {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    .ticker-label span {
        display: none !important;
    }

    .ticker-label i {
        font-size: 14px !important;
    }

    .ticker-text {
        font-size: 12px !important;
    }

    .ticker-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
}

/* ===== HABERLER VE ETKİNLİKLER MOBILE FIX ===== */
@media (max-width: 991.98px) {
    .news-events-alt-section {
        padding: 20px 15px !important;
        margin: 15px 0 !important;
    }

    .news-alt-title,
    .events-alt-title {
        font-size: 18px !important;
    }
}

@media (max-width: 767.98px) {
    .news-events-alt-section {
        padding: 15px 10px !important;
        margin: 10px 5px !important;
    }

    .news-alt-title,
    .events-alt-title {
        font-size: 16px !important;
    }

    .news-alt-img-wrapper {
        height: 150px !important;
    }

    .news-alt-content {
        padding: 10px !important;
    }

    .news-alt-card-title a {
        font-size: 13px !important;
    }

    /* Etkinlikler */
    .event-alt-item {
        padding: 10px !important;
        gap: 10px !important;
    }

    .event-alt-date-box {
        min-width: 50px !important;
        padding: 8px !important;
    }

    .event-alt-day {
        font-size: 18px !important;
    }

    .event-alt-month {
        font-size: 10px !important;
    }

    .event-alt-title-text {
        font-size: 13px !important;
    }

    .event-alt-details {
        font-size: 11px !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .btn-view-all-alt {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
}

/* ===== PROJELER MOBILE FIX ===== */
@media (max-width: 767.98px) {
    .unique-projects-section {
        padding: 20px 15px !important;
        margin: 10px 5px !important;
    }

    .unique-projects-main-title {
        font-size: 18px !important;
    }

    .category-card {
        margin-bottom: 15px !important;
    }

    .category-image {
        height: 150px !important;
    }

    .category-title {
        font-size: 14px !important;
    }
}

/* ===== İLETİŞİM / HARİTA MOBILE FIX ===== */
@media (max-width: 991.98px) {
    .visit-unique-title {
        font-size: 28px !important;
    }

    .visit-unique-desc {
        font-size: 14px !important;
    }

    .visit-unique-map-container,
    .visit-unique-street-container {
        height: 280px !important;
    }
}

@media (max-width: 767.98px) {
    .visit-unique-header {
        margin-bottom: 25px !important;
    }

    .visit-unique-title {
        font-size: 22px !important;
    }

    .visit-unique-tag {
        font-size: 10px !important;
        padding: 6px 14px !important;
    }

    .visit-unique-map-header,
    .visit-unique-street-header {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px 15px !important;
    }

    .visit-unique-map-title,
    .visit-unique-street-title {
        font-size: 14px !important;
    }

    .visit-unique-direction-btn,
    .visit-unique-fullscreen-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 15px !important;
        font-size: 12px !important;
    }

    .visit-unique-map-container,
    .visit-unique-street-container {
        height: 220px !important;
    }

    .visit-unique-info-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
    }

    .visit-unique-info-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    .visit-unique-info-label {
        font-size: 14px !important;
    }

    .visit-unique-info-text {
        font-size: 12px !important;
    }
}

/* ===== FOOTER MOBILE FIX ===== */
@media (max-width: 767.98px) {
    .footer-top {
        padding: 30px 0 20px !important;
    }

    .footer-logo-img {
        height: 80px !important;
    }

    .footer-logo-text h3 {
        font-size: 16px !important;
    }

    .footer-widget-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .footer-links a,
    .footer-contact-text {
        font-size: 13px !important;
    }

    .footer-social-link {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .footer-bottom {
        padding: 15px 0 !important;
    }

    .footer-bottom-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .footer-copyright {
        font-size: 12px !important;
    }

    .footer-bottom-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .footer-bottom-links a {
        font-size: 11px !important;
    }
}

/* ===== HIZLI MENÜ BUTON MOBILE FIX ===== */
@media (max-width: 767.98px) {
    .qm-trigger-btn {
        top: auto !important;
        bottom: 80px !important;
        right: 10px !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* ===== SOSYAL MEDYA WİDGET MOBILE FIX ===== */
@media (max-width: 767.98px) {
    .floating-social-widget {
        right: 10px !important;
        bottom: 20px !important;
    }

    .social-widget-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
}

/* ===== GENEL BUTONLAR MOBILE FIX ===== */
@media (max-width: 575.98px) {
    .btn-primary-custom,
    .btn-view-all-alt,
    .btn-read-mayor,
    .btn-slide {
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
}

/* ===== ROW TAŞMA FİX ===== */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 767.98px) {
    .row > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}


/* ===== STICKY HEADER FIX ===== */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: box-shadow 0.3s ease !important;
}

/* Header için body'ye üstten boşluk - header yüksekliği kadar */
body {
    padding-top: 80px !important;
}

/* Top bar varsa onu da hesaba kat */
@media (min-width: 768px) {
    body {
        padding-top: 115px !important; /* header + top-bar */
    }

    .top-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1051 !important;
    }

    .main-header {
        top: 35px !important; /* top-bar yüksekliği */
    }
}

/* Mobile'da top-bar yok */
@media (max-width: 767.98px) {
    body {
        padding-top: 70px !important;
    }

    .main-header {
        top: 0 !important;
    }
}

/* Scroll edildiğinde gölge artışı */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin: 30px auto;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.empty-state:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: pulse 2s infinite ease-in-out;
}

.empty-state p {
    font-size: 18px;
    color: #495057;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 768px) {
    .empty-state {
        min-height: 250px;
        padding: 30px 15px;
        margin: 20px auto;
        border-radius: 12px;
    }

    .empty-state i {
        font-size: 52px;
        margin-bottom: 16px;
    }

    .empty-state p {
        font-size: 16px;
    }
}

/* Mobil */
@media (max-width: 480px) {
    .empty-state {
        min-height: 200px;
        padding: 25px 15px;
        margin: 15px 10px;
        width: calc(100% - 20px);
        border-radius: 10px;
    }

    .empty-state i {
        font-size: 44px;
        margin-bottom: 12px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}