/**
 * Akıllı Şehirler Şube Müdürlüğü - Custom Styles
 * Header ve diğer özelleştirmeler
 */

/* ============================================
   Header Düzenlemeleri
   ============================================ */

/* Header yüksekliğini azalt */
.header-1 {
    padding: 15px 0 !important;
}

.header-1 .header-main {
    padding: 0 !important;
}

.header-1 .logo img {
    max-height: 110px !important;
    transition: all 0.3s ease;
}

.header-1 .logo {
    margin-left: 120px;
}

/* Sticky Header - Beyaz arka plan */
.header-1.sticky {
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0 !important;
}

/* Sticky durumunda beyaz logo'yu gizle, siyah logo'yu göster */
.header-1 .logo .logo-dark {
    display: none !important;
}

.header-1 .logo .logo-light {
    display: block !important;
    filter: brightness(0) invert(1); /* Logo tamamen beyaz */
}

#header-sticky.sticky .logo .logo-dark,
.header-1.sticky .logo .logo-dark {
    display: block !important;
    max-height: 110px !important;
    width: auto !important;
}

#header-sticky.sticky .logo .logo-light,
.header-1.sticky .logo .logo-light {
    display: none !important;
}

#header-sticky.sticky .logo {
    margin-left: 120px;
}

#header-sticky.sticky .logo a {
    display: flex !important;
    align-items: center;
}

#header-sticky.sticky .logo img {
    max-height: 110px !important;
}

/* Sticky durumunda menü renkleri */
#header-sticky.sticky .main-menu ul li a,
.header-1.sticky .main-menu ul li a {
    color: #1a1a1a !important;
}

#header-sticky.sticky .main-menu ul li a:hover,
#header-sticky.sticky .main-menu ul li.active a,
.header-1.sticky .main-menu ul li a:hover,
.header-1.sticky .main-menu ul li.active a {
    color: #2563eb !important;
}

/* Sticky durumunda telefon ve ikonlar */
#header-sticky.sticky .contact-items .content span,
#header-sticky.sticky .contact-items .content h6 a,
.header-1.sticky .contact-items .content span,
.header-1.sticky .contact-items .content h6 a {
    color: #1a1a1a !important;
}

#header-sticky.sticky .contact-items .icon,
.header-1.sticky .contact-items .icon {
    background: #2563eb !important;
}

#header-sticky.sticky .social-icon a,
.header-1.sticky .social-icon a {
    color: #1a1a1a !important;
}

#header-sticky.sticky .social-icon a:hover,
.header-1.sticky .social-icon a:hover {
    color: #2563eb !important;
}

/* Hamburger menü sticky durumunda */
#header-sticky.sticky .sidebar__toggle i,
.header-1.sticky .sidebar__toggle i {
    color: #1a1a1a !important;
}

/* ============================================
   Hero Section Düzenlemeleri
   ============================================ */

.hero-1 {
    min-height: 600px;
    padding: 120px 0 80px;
}

/* ============================================
   Genel İyileştirmeler
   ============================================ */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states */
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ============================================
   Footer Sosyal Medya İkonları
   ============================================ */

.footer-section .social-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-section .social-icon a:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.footer-section .social-icon a i {
    color: #ffffff !important;
}

/* Instagram hover */
.footer-section .social-icon a:hover .fa-instagram {
    color: #ffffff !important;
}

/* LinkedIn hover */
.footer-section .social-icon a:hover .fa-linkedin {
    color: #ffffff !important;
}

/* ============================================
   RESPONSIVE TASARIM
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1199px) {
    .header-1 .logo {
        margin-left: 0;
    }

    .header-1 .logo img {
        max-height: 60px !important;
    }

    #header-sticky.sticky .logo {
        margin-left: 0;
    }

    .contact-items {
        display: none !important;
    }

    .header-right .social-icon {
        display: none !important;
    }
}

/* Mobil (768px ve altı) */
@media (max-width: 991px) {
    /* Header */
    .header-1 {
        padding: 10px 0 !important;
    }

    .header-1 .logo img {
        max-height: 50px !important;
    }

    /* Hero Section */
    .hero-1 {
        min-height: 400px;
        padding: 80px 0 60px;
    }

    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .hero-content p {
        font-size: 16px !important;
    }

    /* Section Padding */
    .section-padding {
        padding: 60px 0 !important;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 26px !important;
    }

    /* Footer */
    .footer-section .single-footer-widget {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-section .social-icon {
        justify-content: center !important;
    }

    .footer-section .list-items {
        text-align: center;
    }

    /* Page Header */
    .page-header {
        padding: 60px 0 !important;
    }

    .page-header h1 {
        font-size: 24px !important;
    }

    /* Cards */
    .news-card-item,
    .card {
        margin-bottom: 20px;
    }
}

/* Küçük Mobil (576px ve altı) */
@media (max-width: 575px) {
    /* Header */
    .header-1 .logo img {
        max-height: 40px !important;
    }

    .header-main {
        padding: 0 10px;
    }

    /* Hero */
    .hero-1 {
        min-height: 350px;
        padding: 60px 0 40px;
    }

    .hero-content h1 {
        font-size: 22px !important;
    }

    .hero-content p {
        font-size: 14px !important;
    }

    .theme-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    /* Section */
    .section-padding {
        padding: 40px 0 !important;
    }

    .section-title h2 {
        font-size: 22px !important;
    }

    .section-title .sub-title {
        font-size: 14px !important;
    }

    /* Footer */
    .footer-section {
        padding: 40px 0 20px !important;
    }

    .footer-section .widget-head h3 {
        font-size: 18px !important;
    }

    .footer-section p {
        font-size: 14px !important;
    }

    .footer-section .social-icon a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* İletişim Sayfası */
    .contact-section .card {
        margin-bottom: 15px;
    }

    .contact-section .card-body {
        padding: 20px 15px !important;
    }

    .contact-section .icon i {
        font-size: 1.5rem !important;
    }

    .contact-section h6 {
        font-size: 14px !important;
    }

    /* News Cards */
    .news-card-item .news-content h3 {
        font-size: 18px !important;
    }

    .news-card-item .news-content p {
        font-size: 14px !important;
    }

    /* Projeler */
    .service-box-item .content h3 {
        font-size: 16px !important;
    }

    /* Page Header */
    .page-header {
        padding: 50px 0 !important;
    }

    .page-header h1 {
        font-size: 20px !important;
    }

    .breadcrumb {
        font-size: 12px !important;
    }
}

/* Hamburger Menü Mobil Görünüm */
@media (max-width: 1199px) {
    .header__hamburger {
        display: block !important;
    }

    .sidebar__toggle {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        cursor: pointer;
    }

    .sidebar__toggle i {
        color: #ffffff;
        font-size: 20px;
    }

    #header-sticky.sticky .sidebar__toggle {
        background: rgba(0, 0, 0, 0.05);
    }

    #header-sticky.sticky .sidebar__toggle i {
        color: #1a1a1a;
    }
}

/* Mobil Menü Overlay */
.mobile-menu-visible .offcanvas__area {
    opacity: 1;
    visibility: visible;
}

/* İletişim Kartları Mobil */
@media (max-width: 767px) {
    .contact-section .row.g-4.mb-5 > div {
        margin-bottom: 10px;
    }

    .contact-section .card-body.py-4 {
        padding: 15px !important;
    }
}

/* Footer Bottom Mobil */
@media (max-width: 575px) {
    .footer-bottom {
        padding: 15px 0 !important;
    }

    .footer-bottom p {
        font-size: 12px !important;
        text-align: center;
    }
}

/* ============================================
   MOBİL MENÜ (Offcanvas)
   ============================================ */

.offcanvas__area {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: #1a1a2e;
    z-index: 9999;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.offcanvas__area.opened {
    right: 0;
}

.offcanvas__wrapper {
    padding: 30px 25px;
}

.offcanvas__close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.offcanvas__close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offcanvas__close-btn:hover {
    background: #2563eb;
}

.offcanvas__logo {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: #2563eb;
    padding-left: 10px;
}

.offcanvas__contact {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas__contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.offcanvas__contact i {
    color: #2563eb;
    width: 20px;
}

.offcanvas__social {
    display: flex;
    gap: 15px;
}

.offcanvas__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.offcanvas__social a:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.offcanvas__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offcanvas__overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Footer Sosyal Medya İkonları
   ============================================ */

.footer-section .social-icon {
    gap: 12px;
}

.footer-section .social-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-section .social-icon a:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.footer-section .social-icon a i {
    color: #ffffff !important;
}

/* ============================================
   Header Menü Renkleri - Beyaz
   ============================================ */

.header-1 .main-menu ul li a {
    color: #ffffff !important;
}

.header-1 .main-menu ul li a:hover,
.header-1 .main-menu ul li.active a {
    color: #f97316 !important;
}

.header-1 .social-icon a {
    color: #ffffff !important;
}

.header-1 .social-icon a:hover {
    color: #f97316 !important;
}

.header-1 .contact-items .content span,
.header-1 .contact-items .content h6 a {
    color: #ffffff !important;
}

/* ============================================
   Page Header Başlıkları - Beyaz
   ============================================ */

.page-header h1,
.page-header h2,
.page-header h3,
.page-header p,
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a,
.page-header .breadcrumb-item.active {
    color: #ffffff !important;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Section Title Başlıkları */
.section-title .sub-title {
    color: #f97316 !important;
}

.section-title h2 {
    color: #1a1a1a !important;
}

.section-bg .section-title h2,
.section-bg-2 .section-title h2 {
    color: #ffffff !important;
}

/* ============================================
   Theme Button İkon Düzeltmesi
   ============================================ */

.theme-btn i,
.theme-btn.link-btn i,
.hero-button .theme-btn i,
.link-btn i,
.arrow-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ok ikonu görünürlüğü */
.link-btn i.fa-arrow-right,
.arrow-icon i.fa-arrow-right,
.theme-btn i.fa-arrow-right,
i.fa-solid.fa-arrow-right {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   İletişim Formu Buton
   ============================================ */

.contact-form-items .theme-btn,
.contact-form-items button,
.contact-wrapper .theme-btn,
button.theme-btn {
    color: #ffffff !important;
}

.contact-form-items .theme-btn span,
.contact-wrapper .theme-btn span,
button.theme-btn span {
    color: #ffffff !important;
}

/* ============================================
   İKON GÖRÜNÜRLܠDÜZELTMELERİ
   ============================================ */

/* Font Awesome ve Bootstrap Icons görünürlük garantisi */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
.bi, [class^="bi-"], [class*=" bi-"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobil navigasyon ikonları */
.mobile-bottom-nav .bi,
.mobile-bottom-nav i,
.bottom-sheet-icon .bi,
.fab-action-icon .bi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Duyuru kartı ikonları */
.announcement-icon-pro i,
.announcement-card-pro i,
.announcement-link-pro i,
.announcement-date-pro i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Header ikonları */
.header-1 .social-icon i,
.header-1 .contact-items i,
.header-right i,
.sidebar__toggle i {
    display: inline-block !important;
    visibility: visible !important;
}

/* Footer ikonları */
.footer-section i,
.offcanvas__social i,
.offcanvas__contact i {
    display: inline-block !important;
    visibility: visible !important;
}

/* Font yükleme fallback */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

@font-face {
    font-family: 'bootstrap-icons';
    font-display: swap;
}
