/*
Theme Name: Özçelik Reklam
Theme URI: https://ozcelikreklam.com
Author: Özçelik Reklam
Author URI: https://ozcelikreklam.com
Description: Özçelik Reklam - Açık Hava Reklamcılığı, Güneş Enerjili Reklam Sistemleri ve Akıllı Şehir Mobilyaları Kurumsal WordPress Teması. Yüksek performanslı, tam mobil uyumlu ve modern mimariye sahiptir.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ozcelik-reklam
Tags: custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. EVRENSEL GÖRSEL VE MEDYA KONTROLLERİ (RESPONSIVE CONTAINMENT)
   ========================================================================== */

/* Görsellerin kapsayıcılarından taşmasını engeller (Tailwind sınıflarını ezmez) */
img,
picture,
video {
    max-width: 100%;
}

/* Header logo kesin boyutlandırması - Tailwind h-9 sm:h-11 koruması */
#site-header img {
    height: 2.25rem !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
}

@media (min-width: 640px) {
    #site-header img {
        height: 2.75rem !important;
    }
}

/* Kart görsel konteynerleri: Tutarlı en-boy oranı ve taşma önleme */
.project-card-interactive,
.project-card-item .overflow-hidden,
.group .aspect-\[16\/10\],
.group .aspect-\[16\/11\],
.group .aspect-\[4\/3\] {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.project-card-interactive img,
.project-card-item img,
.group .aspect-\[16\/10\] img,
.group .aspect-\[16\/11\] img,
.group .aspect-\[4\/3\] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ürün vitrin görsellerinde ürünün tamamının net görünmesi için contain kuralı */
.product-hero-contain-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ==========================================================================
   2. PROJE VE TEKLİF DETAY POPUP EKRANA SIĞDIRMA KURALLARI
   ========================================================================== */

/* Yalnızca modal kapalı olduğunda gizle - Genel .hidden sınıfını asla bozma! */
#project-detail-modal.hidden,
#quote-modal.hidden {
    display: none !important;
}

/* Modal Kutusu: Üstten ve alttan kısaltılmış, ekran ortasında net ve dengeli pencere */
#project-detail-modal > div:nth-child(2),
#quote-modal > div:nth-child(2) {
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: auto;
    overflow: hidden;
}

@media (min-width: 640px) {
    #project-detail-modal > div:nth-child(2),
    #quote-modal > div:nth-child(2) {
        max-height: calc(100vh - 5.5rem);
        max-height: calc(100dvh - 5.5rem);
    }
}

/* Modal İçerik Kaydırma Alanı */
#project-detail-modal .overflow-y-auto,
#quote-modal .overflow-y-auto {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Modal Alt Butonları Kenar Yumuşatma & Render İyileştirmesi */
#btn-close-project-modal,
#btn-project-quote {
    border-radius: 0.5rem !important; /* 8px dengeli ve keskin köşe kavis standardı */
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ==========================================================================
   3. FOOTER YUKARI ÇIK BUTONU VE ETKİLEŞİM
   ========================================================================== */

#scroll-to-top-btn {
    transition: all 0.2s ease-in-out;
}

#scroll-to-top-btn:hover {
    color: #078dc6;
}

#scroll-to-top-btn:active {
    transform: translateY(-2px);
}

/* ==========================================================================
   4. MOBİL SLIDER DİKEY GÖRÜNÜM VE KOMPAKT MOBİL ÜST BAR
   ========================================================================== */
@media (max-width: 1023px) {
    /* Mobilde ve tablette masaüstü butonlarını kesinlikle gizle */
    .desktop-header-actions,
    #site-header .desktop-header-actions {
        display: none !important;
    }
}

@media (max-width: 639px) {
    /* İnce, zarif ve slaytı engellemeyen mobil üst bar */
    #site-header {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    #hero-slider {
        min-height: 85vh !important;
        min-height: 85dvh !important;
        padding-top: 3.8rem !important;
        padding-bottom: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        align-items: flex-end !important;
    }
    .hero-slide {
        padding-top: 3.6rem !important;   /* Üstteki ince navbar güvenli alanı */
        padding-bottom: 11.5rem !important; /* Alttaki başlık/yazı alanı */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .hero-slide-img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important; /* Zoom büyütmesini kaldır, tüm kenarlar görünsün */
        transition: none !important;
    }
    .hero-gradient-overlay {
        background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 18%, transparent 45%) !important;
    }
}
