/* ============================================
   ARSİN BELEDİYESİ - MOBİL OPTİMİZASYON CSS
   ============================================ */

/* ------------------------------------------------
   GENEL MOBİL DÜZENLEMELER
   ------------------------------------------------ */
@media (max-width: 768px) {

    /* Sayfa genel düzeni */
    body {
        overflow-x: hidden;
    }

    /* Ana container */
    .container-full,
    .container-fill,
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ------------------------------------------------
   MENU - MOBİL NAVİGASYON
   ------------------------------------------------ */
@media (max-width: 768px) {
    .menu-kabuk {
        height: auto !important;
        min-height: 60px !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
    }

    .top-logo-kabuk {
        padding: 10px !important;
    }

    .nav-logo-mobil-svg img {
        max-height: 40px !important;
    }

    /* Hamburger menü butonu */
    .nav-mobile-btn {
        font-size: 24px !important;
        padding: 10px !important;
    }

    /* Mobil menü açıldığında */
    .menu ul.menu {
        background: rgba(0, 0, 0, 0.95) !important;
        padding: 20px 15px !important;
    }

    .menu ul.menu li a {
        padding: 12px 15px !important;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* ------------------------------------------------
   SLIDER ARKAPLAN - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .slider-kutu-bg {
        height: 50vh !important;
        min-height: 300px !important;
    }

    .slider-item-bg {
        height: 50vh !important;
        min-height: 300px !important;
    }

    /* YouTube video iframe mobil */
    .video-bg iframe {
        width: 200% !important;
        height: 200% !important;
    }

    /* Arama kutusu mobil */
    .search-frame {
        width: 90% !important;
        left: 5% !important;
        padding: 10px !important;
    }

    .search-frame input[type="text"] {
        font-size: 14px !important;
        padding: 12px 15px !important;
    }
}

/* ------------------------------------------------
   ALT BANT - HABER VE BAŞKAN BÖLÜMÜ
   ------------------------------------------------ */
@media (max-width: 768px) {
    .add-kabuk {
        flex-direction: column !important;
        display: flex !important;
    }

    /* Başkan bölümü mobil */
    .left-add-kabuk {
        width: 100% !important;
        order: 1 !important;
        text-align: center !important;
        padding: 20px 10px !important;
    }

    .baskan-web-foto {
        height: 250px !important;
        margin: 0 auto 15px !important;
    }

    .left-add-astar {
        text-align: center !important;
    }

    .left-add-astar a {
        display: inline-block !important;
        margin: 5px !important;
        padding: 8px 15px !important;
        font-size: 12px !important;
    }

    .baskan-social-kabuk {
        justify-content: center !important;
        margin-top: 15px !important;
    }

    /* =============================================
       MOBİL HABER SLIDER - MODERN KART TASARIMI
       ============================================= */

    .slider-kutu-ID-01 {
        width: 100% !important;
        order: 2 !important;
        padding: 20px 15px !important;
        background: linear-gradient(180deg, rgba(26, 82, 118, 0.95) 0%, rgba(20, 67, 96, 0.98) 100%) !important;
    }

    .swiper-container-ID-01 {
        padding: 10px 0 !important;
    }

    .swiper-container-ID-01 .swiper-slide {
        width: 100% !important;
        padding: 0 5px !important;
    }

    .slider-item {
        background: #ffffff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        margin: 5px !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .slider-item:active {
        transform: scale(0.98) !important;
    }

    .slider-item a {
        display: block !important;
        text-decoration: none !important;
    }

    .slider-item-img {
        position: relative !important;
        height: 200px !important;
        background-size: cover !important;
        background-position: center !important;
        overflow: hidden !important;
    }

    .slider-item-img::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 80px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent) !important;
    }

    .slider-item-img img {
        display: none !important;
    }

    .slider-item-text {
        padding: 18px !important;
        background: #fff !important;
    }

    .slider-item-text h4 {
        color: #1a5276 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .slider-item-text p {
        color: #666 !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Haber Slider Okları - Modern Stil */
    .swiper-button-next-ID-01,
    .swiper-button-prev-ID-01 {
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .swiper-button-next-ID-01 span,
    .swiper-button-prev-ID-01 span {
        color: #1a5276 !important;
        font-size: 20px !important;
    }

    .swiper-button-next-ID-01 {
        right: 5px !important;
    }

    .swiper-button-prev-ID-01 {
        left: 5px !important;
    }

    /* Pagination Dots */
    .pagination-ID-01 {
        text-align: center !important;
        padding: 15px 0 5px !important;
    }

    .pagination-ID-01 .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        opacity: 1 !important;
        margin: 0 5px !important;
        transition: all 0.3s ease !important;
    }

    .pagination-ID-01 .swiper-pagination-bullet-active {
        background: #fff !important;
        width: 28px !important;
        border-radius: 5px !important;
    }

    /* TÜM HABERLER Butonu - Premium */
    .haber-devam {
        text-align: center !important;
        padding: 20px 15px 10px !important;
    }

    .haber-devam a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 35px !important;
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4) !important;
        transition: all 0.3s ease !important;
    }

    .haber-devam a:active {
        transform: scale(0.95) !important;
    }

    /* Sağ boşluk gizle */
    .right-add-kabuk {
        display: none !important;
    }
}

/* ------------------------------------------------
   SAĞ MENÜ (SIDEBAR) - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .sagmenu-kabuk {
        position: fixed !important;
        right: -100% !important;
        top: 60px !important;
        width: 80% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(0, 0, 0, 0.95) !important;
        transition: right 0.3s ease !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
    }

    .sagmenu-kabuk.active {
        right: 0 !important;
    }

    .sagmenu-astar a {
        padding: 15px 20px !important;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* ------------------------------------------------
   ERİŞİLEBİLİRLİK VE ÇEREZ BUTONLARI - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {

    /* Erişilebilirlik widget mobil */
    .acc-widget {
        top: auto !important;
        bottom: 20px !important;
        right: 10px !important;
    }

    .acc-toggle {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }

    .acc-toggle span {
        font-size: 8px !important;
    }

    .acc-panel {
        width: 280px !important;
        right: 0 !important;
        bottom: 60px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    /* Çerez butonu mobil */
    .cookie-widget-btn {
        top: auto !important;
        bottom: 80px !important;
        right: 10px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    .cookie-widget-btn span {
        font-size: 8px !important;
    }
}

/* ------------------------------------------------
   ÇEREZ BANNER - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px !important;
    }

    .cookie-consent-content h3 {
        font-size: 16px !important;
    }

    .cookie-consent-content p {
        font-size: 12px !important;
    }

    .cookie-consent-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .cookie-consent-buttons button {
        width: 100% !important;
        padding: 12px !important;
    }

    /* Çerez ayarları modal mobil */
    .cookie-settings-modal .modal-content {
        width: 95% !important;
        margin: 20px auto !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
}

/* ------------------------------------------------
   FOOTER - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .footer-astar {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }

    .footer-menu-kabuk {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .footer-menu-kabuk h4 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .footer-menu-kabuk ul li a {
        font-size: 12px !important;
        padding: 5px 0 !important;
    }

    .footer-logo img {
        max-height: 60px !important;
    }

    .footer-social a {
        margin: 0 8px !important;
    }

    .footer-social img {
        width: 30px !important;
        height: 30px !important;
    }

    .info {
        font-size: 11px !important;
        padding: 10px !important;
    }
}

/* ------------------------------------------------
   SAYFA İÇERİK ALANLARI - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {

    .content-astar,
    .frame-astar {
        padding: 15px !important;
    }

    .content-astar h1,
    .frame-astar h1 {
        font-size: 22px !important;
    }

    .content-astar h2,
    .frame-astar h2 {
        font-size: 18px !important;
    }

    .content-astar p,
    .frame-astar p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Tablolar mobil scroll */
    .content-astar table,
    .frame-astar table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}

/* ------------------------------------------------
   HABER LİSTE SAYFASI - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .haber-item {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px !important;
    }

    .haber-item-astar {
        padding: 10px !important;
    }

    .haber-item-astar .img {
        height: 180px !important;
    }

    .haber-item-text h4 {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    .haber-item-text p {
        font-size: 13px !important;
    }
}

/* ------------------------------------------------
   GALERİ - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .galeri-item {
        width: 48% !important;
        height: auto !important;
        margin: 1% !important;
    }

    .galeri-item img {
        height: 120px !important;
        object-fit: cover !important;
    }

    .galeri-item-text {
        font-size: 12px !important;
        padding: 8px !important;
    }
}

/* ------------------------------------------------
   FORMLAR - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px !important;
        /* iOS zoom önleme */
        padding: 12px !important;
    }

    .btn,
    button[type="submit"] {
        width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
    }

    .form-group {
        margin-bottom: 15px !important;
    }
}

/* ------------------------------------------------
   BACK TO TOP BUTONU - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .cd-top {
        width: 40px !important;
        height: 40px !important;
        right: 15px !important;
        bottom: 150px !important;
    }
}

/* ------------------------------------------------
   KİŞİ KARTI (PERSONEL, TEŞKİLAT) - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {

    .kisi-item,
    .personel-item {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .kisi-foto,
    .personel-foto {
        width: 100px !important;
        height: 100px !important;
    }

    .kisi-bilgi h4,
    .personel-bilgi h4 {
        font-size: 14px !important;
    }

    .kisi-bilgi p,
    .personel-bilgi p {
        font-size: 12px !important;
    }
}

/* ------------------------------------------------
   AÇILIŞ EKRANI MODAL - MOBİL
   ------------------------------------------------ */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
    }

    .modal-content {
        border-radius: 10px !important;
    }

    .modal-body {
        padding: 15px !important;
    }

    .modal-body img {
        max-height: 60vh !important;
        object-fit: contain !important;
    }
}

/* ------------------------------------------------
   TELEFON BOYUTU (414px ve altı)
   ------------------------------------------------ */
@media (max-width: 414px) {

    /* Slider daha küçük */
    .slider-kutu-bg,
    .slider-item-bg {
        height: 40vh !important;
        min-height: 250px !important;
    }

    /* Başkan foto daha küçük */
    .baskan-web-foto {
        height: 200px !important;
    }

    /* Haber resmi daha küçük */
    .slider-item-img {
        height: 150px !important;
    }

    /* Galeri 1 sütun */
    .galeri-item {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }

    .galeri-item img {
        height: 180px !important;
    }
}

/* ------------------------------------------------
   LANDSCAPE MOBİL (Yatay mod)
   ------------------------------------------------ */
@media (max-width: 896px) and (orientation: landscape) {

    .slider-kutu-bg,
    .slider-item-bg {
        height: 70vh !important;
    }

    .menu-kabuk {
        height: 50px !important;
    }
}