/* ============================================================================
 * ÖZİMEKS GLOBAL ELEMENTOR STYLES (Makyaj CSS)
 * ============================================================================
 * Elementor'un Standart Bileşenlerini (Form, Icon Box vs.) Özimeks'in
 * premium kurumsal tasarım hatlarına otomatik olarak uydurur.
 * Tüm tasarımları kırmamak adına ölçülü borderRadius ve gölgeler uygulanır.
 */

/* ==========================================
 * 1) ELEMENTOR BİLGİ KUTULARI (ICON BOX)
 * ========================================== */
/* Elementor Icon Box Wrapper */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;            /* Açık gri çerçeve */
    border-radius: 16px !important;       /* rouned-2xl */
    padding: 32px 24px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.03), 0 2px 4px -2px rgb(0 0 0 / 0.03); /* Çok hafif gölge */
    transition: all 0.3s ease-in-out;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);          /* Hover animasyonu */
    border-color: #004B71;                /* Özimeks Lacivert geçişi */
}
/* İkon Çerçevesi Stili */
.elementor-widget-icon-box .elementor-icon-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f1f5f9;            /* İkon arkaplanı açık gri */
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover .elementor-icon-box-icon {
    background-color: #004B71;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover .elementor-icon-box-icon i,
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover .elementor-icon-box-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}


/* ==========================================
 * 2) ELEMENTOR PRO İLETİŞİM FORMU
 * ========================================== */
/* Form Input & Textarea Kutuları */
.elementor-widget-form .elementor-field-textual {
    border-radius: 12px !important;       /* Özimeks yumuşak hat */
    background-color: #f8fafc !important; /* Çok açık gri arkaplan */
    border: 1px solid #e2e8f0 !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    color: #334155 !important;
    transition: all 0.2s ease-in-out !important;
}
/* Focus (Tıklanınca) Durumu */
.elementor-widget-form .elementor-field-textual:focus {
    background-color: #ffffff !important;
    border-color: #004B71 !important;
    box-shadow: 0 0 0 4px rgba(0, 75, 113, 0.1) !important; /* Glow efekti */
}

/* Gönder Butonu (Submit Button) */
.elementor-widget-form .elementor-button[type="submit"] {
    border-radius: 9999px !important;     /* Tam pill-shape (oval) */
    background-color: #004B71 !important; /* Özimeks Ana Lacivert */
    color: #ffffff !important;
    padding: 16px 40px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.elementor-widget-form .elementor-button[type="submit"]:hover {
    background-color: #003653 !important; /* Biraz daha koyu Mavi */
    transform: scale(1.03) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 75, 113, 0.4) !important;
}


/* ============================================================================
 * 3) ÖZİMEKS PREMİUM EASİNG FONKSİYONLARI
 * ============================================================================
 * Tüm animasyonlara premium his katan, endüstriyel/yapısal geçiş eğrileri.
 * Kullanım: transition-timing-function: var(--ease-pentalogo);
 */
:root {
    /* Dramatik yapısal geçiş — hero bölümleri, büyük panel açılışları */
    --ease-pentalogo:        cubic-bezier(0.77, 0, 0.175, 1);
    /* Klasik ease-in-out — genel amaçlı premium his */
    --ease-cubic:            cubic-bezier(0.65, 0.05, 0.36, 1);
    /* Arkaya sıçrama efekti — dikkat çekici buton/kart hareketleri */
    --ease-back:             cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Hafif zıplama — playful ama kontrollü animasyonlar */
    --ease-bounce:           cubic-bezier(0.76, -0.245, 0.24, 1.245);
    /* Ultra yumuşak — ince detay geçişleri, opacity, renk */
    --ease-smooth:           cubic-bezier(0.365, 0.005, 0.355, 1);
    /* Doğal sinüs eğrisi — scroll-based animasyonlar, parallax */
    --ease-sine:             cubic-bezier(0.39, 0.58, 0.57, 1);
}


/* ============================================================================
 * 4) EDGE MASK SİSTEMİ (Carousel/Scroll Kenar Fade)
 * ============================================================================
 * Scroll yönünde kenarlara yumuşak fade efekti verir.
 * JS ile scroll konumuna göre .scroll-at-left / .scroll-at-right / 
 * .scroll-at-center class'ları toggle edilir.
 *
 * Kullanım:
 *   <div class="ozimeks-edge-mask-x"> ... scrollable content ... </div>
 */

/* Yatay (X) Edge Mask — Carousel'ler için */
.ozimeks-edge-mask-x {
    --mask-start: 0%;
    --mask-end: 0%;
    -webkit-mask-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, var(--mask-start)),
        black 8%,
        black 92%,
        rgba(0, 0, 0, var(--mask-end))
    );
    mask-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, var(--mask-start)),
        black 8%,
        black 92%,
        rgba(0, 0, 0, var(--mask-end))
    );
    transition: --mask-start 0.3s var(--ease-smooth), --mask-end 0.3s var(--ease-smooth);
}
.ozimeks-edge-mask-x.scroll-at-left {
    --mask-start: 100%;
    --mask-end: 0%;
}
.ozimeks-edge-mask-x.scroll-at-right {
    --mask-start: 0%;
    --mask-end: 100%;
}
.ozimeks-edge-mask-x.scroll-at-center {
    --mask-start: 0%;
    --mask-end: 0%;
}

/* Dikey (Y) Edge Mask — Uzun listeler, dropdown'lar */
.ozimeks-edge-mask-y {
    --mask-start: 0%;
    --mask-end: 0%;
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, var(--mask-start)),
        black 8%,
        black 92%,
        rgba(0, 0, 0, var(--mask-end))
    );
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, var(--mask-start)),
        black 8%,
        black 92%,
        rgba(0, 0, 0, var(--mask-end))
    );
    transition: --mask-start 0.3s var(--ease-smooth), --mask-end 0.3s var(--ease-smooth);
}
.ozimeks-edge-mask-y.scroll-at-top {
    --mask-start: 100%;
    --mask-end: 0%;
}
.ozimeks-edge-mask-y.scroll-at-bottom {
    --mask-start: 0%;
    --mask-end: 100%;
}
.ozimeks-edge-mask-y.scroll-at-center {
    --mask-start: 0%;
    --mask-end: 0%;
}


/* ============================================================================
 * 5) ÖZİMEKS PETROL TONLU BOX-SHADOW SİSTEMİ
 * ============================================================================
 * DESIGN.md kuralı: Saf siyah gölge kullanılmaz.
 * Tüm gölgeler Özimeks Petrol (#004B71) tonu ile renklendirilir
 * — çelik yüzeyden yansıyan ışık hissi verir.
 */

/* Kart gölgesi — hafif, ambient */
.ozimeks-shadow-sm {
    box-shadow:
        0 1px 2px 0 rgba(0, 75, 113, 0.04),
        0 1px 3px 0 rgba(0, 75, 113, 0.06);
}

/* Standart yükseltme — hover, kartlar */
.ozimeks-shadow {
    box-shadow:
        0 4px 6px -1px rgba(0, 75, 113, 0.06),
        0 2px 4px -2px rgba(0, 75, 113, 0.04);
}

/* Belirgin yükseltme — aktif bileşenler, açık panel */
.ozimeks-shadow-md {
    box-shadow:
        0 10px 15px -3px rgba(0, 75, 113, 0.08),
        0 4px 6px -4px rgba(0, 75, 113, 0.04);
}

/* Büyük yükseltme — modal, popup, mega menü */
.ozimeks-shadow-lg {
    box-shadow:
        0 20px 40px -8px rgba(0, 75, 113, 0.10),
        0 8px 16px -4px rgba(0, 75, 113, 0.06);
}

/* Dramatik yükseltme — hero elemanları, featured öğeler */
.ozimeks-shadow-xl {
    box-shadow:
        0 25px 50px -12px rgba(0, 75, 113, 0.14),
        0 12px 24px -8px rgba(0, 75, 113, 0.08);
}

/* Hover geçişli shadow (kart üzerine gelince yükselme hissi) */
.ozimeks-shadow-hover {
    box-shadow:
        0 4px 6px -1px rgba(0, 75, 113, 0.06),
        0 2px 4px -2px rgba(0, 75, 113, 0.04);
    transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.ozimeks-shadow-hover:hover {
    box-shadow:
        0 20px 40px -8px rgba(0, 75, 113, 0.12),
        0 8px 16px -4px rgba(0, 75, 113, 0.06);
    transform: translateY(-2px);
}

/* Glow efekti — CTA butonlar, odaklanmış input'lar */
.ozimeks-shadow-glow {
    box-shadow: 0 0 0 4px rgba(0, 75, 113, 0.10);
}
.ozimeks-shadow-glow-lg {
    box-shadow: 0 0 0 6px rgba(0, 75, 113, 0.08), 0 8px 24px -4px rgba(0, 75, 113, 0.12);
}

/* İç gölge — input alanları, gömülü paneller */
.ozimeks-shadow-inset {
    box-shadow: inset 0 2px 4px 0 rgba(0, 75, 113, 0.05);
}

/* CSS Değişkenleri olarak da erişim */
:root {
    --shadow-sm:    0 1px 2px 0 rgba(0, 75, 113, 0.04), 0 1px 3px 0 rgba(0, 75, 113, 0.06);
    --shadow:       0 4px 6px -1px rgba(0, 75, 113, 0.06), 0 2px 4px -2px rgba(0, 75, 113, 0.04);
    --shadow-md:    0 10px 15px -3px rgba(0, 75, 113, 0.08), 0 4px 6px -4px rgba(0, 75, 113, 0.04);
    --shadow-lg:    0 20px 40px -8px rgba(0, 75, 113, 0.10), 0 8px 16px -4px rgba(0, 75, 113, 0.06);
    --shadow-xl:    0 25px 50px -12px rgba(0, 75, 113, 0.14), 0 12px 24px -8px rgba(0, 75, 113, 0.08);
    --shadow-glow:  0 0 0 4px rgba(0, 75, 113, 0.10);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 75, 113, 0.05);
}

/* ============================================================================
 * 6) ZENGİN METİN İÇERİĞİ TİPOGRAFİSİ (Editör Çıktıları)
 * ============================================================================
 * Tailwind preflight h1-h6, ul, ol vb. tüm stilleri sıfırlar.
 * wp_editor, klasik editör veya term_description gibi alanlarda
 * gelen HTML içeriklerini .ozimeks-rich-content sarmalayıcısı ile
 * doğru şekilde göstermek için bu stiller tanımlanmıştır.
 */

.ozimeks-rich-content h1,
.ozimeks-rich-content h2,
.ozimeks-rich-content h3,
.ozimeks-rich-content h4,
.ozimeks-rich-content h5,
.ozimeks-rich-content h6 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.ozimeks-rich-content h1 { font-size: 2.25rem;   }
.ozimeks-rich-content h2 { font-size: 1.75rem;   }
.ozimeks-rich-content h3 { font-size: 1.375rem;  }
.ozimeks-rich-content h4 { font-size: 1.125rem;  }
.ozimeks-rich-content h5 { font-size: 1rem;      }
.ozimeks-rich-content h6 { font-size: 0.875rem;  }

.ozimeks-rich-content p {
    margin-top: 0;
    margin-bottom: 1em;
    line-height: 1.75;
    color: #334155;
}

.ozimeks-rich-content ul,
.ozimeks-rich-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.ozimeks-rich-content ul { list-style-type: disc;    }
.ozimeks-rich-content ol { list-style-type: decimal; }

.ozimeks-rich-content li {
    margin-bottom: 0.35em;
    line-height: 1.65;
    color: #334155;
}

.ozimeks-rich-content strong,
.ozimeks-rich-content b {
    font-weight: 700;
    color: #0f172a;
}

.ozimeks-rich-content em,
.ozimeks-rich-content i {
    font-style: italic;
}

.ozimeks-rich-content a {
    color: #004B71;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.ozimeks-rich-content a:hover {
    color: #003653;
}

.ozimeks-rich-content blockquote {
    border-left: 4px solid #004B71;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
}

.ozimeks-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.ozimeks-rich-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.ozimeks-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.ozimeks-rich-content th,
.ozimeks-rich-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}
.ozimeks-rich-content th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}

/* İlk element üst boşluğunu sıfırla */
.ozimeks-rich-content > *:first-child {
    margin-top: 0;
}


/* ============================================================================
 * 8) POST 11621 — SEKTÖR KARTLARI 2-1-2 DÜZENİ (CSS GRID)
 * ============================================================================
 * Flexbox % hesaplamalarında tarayıcı farkları ve Elementor değişkenleri taşırma yapıyor.
 * Çözüm: CSS Grid ile zorunlu 2 kolonlu yapı. Asla alt alta düşmez.
 */

/* ── Kart wrapper: CSS Grid ── */
.elementor-element-1bb2ad06 > .e-con-inner {
    display:               grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap:                   10px !important;
    
    /* Elementor flex override iptali */
    flex-direction: unset !important;
    flex-wrap:      unset !important;
    align-items:    unset !important;
}

/* ── Tüm kartlar: Grid Hücresi ── */
.elementor-element-1bb2ad06 > .e-con-inner > .e-con {
    width:      100% !important;
    max-width:  100% !important;
    flex:       unset !important;
    min-width:  0 !important;
    box-sizing: border-box !important;
}

/* ── 3. kart (Gıda ve Catering): tam satır ── */
.elementor-element-66a1bb5a {
    grid-column: 1 / -1 !important;
    width:       100% !important;
    max-width:   100% !important;
}

/* ── Mobil (≤600px): tek kolon ── */
@media (max-width: 600px) {
    .elementor-element-1bb2ad06 > .e-con-inner {
        grid-template-columns: 1fr !important;
    }
    .elementor-element-66a1bb5a {
        grid-column: 1 !important;
    }
}


/* ============================================================================
 * 7) BLOG / POST İÇERİK TİPOGRAFİSİ
 * ============================================================================
 * Tailwind preflight h1-h6 boyutlarını ve margin'lerini sıfırlar.
 * Elementor text-editor widget ve klasik WP entry-content alanlarında
 * referans görseldeki gibi kurumsal tipografi hiyerarşisi uygulanır.
 *
 * Hedef selektörler:
 *   .elementor-widget-text-editor  → Elementor "Metin Editörü" widget'ı
 *   .entry-content                 → Klasik WP içerik alanı
 *   .wp-block-post-content         → Gutenberg blok içeriği
 */

/* ── Ortak değişkenler ── */
:root {
    --likya-post-heading-font:  "Plus Jakarta Sans", sans-serif;
    --likya-post-body-font:     "Manrope", sans-serif;
    --likya-post-heading-color: #0f172a;
    --likya-post-body-color:    #374151;
    --likya-post-accent-color:  #004B71;
}

/* ── Wrapper bazlı sarmalayıcı ── */
.elementor-widget-text-editor,
.entry-content,
.wp-block-post-content {
    font-family:  var(--likya-post-body-font);
    font-size:    15px;
    line-height:  1.75;
    color:        var(--likya-post-body-color);
}

/* ── Paragraflar ── */
.elementor-widget-text-editor p,
.entry-content p,
.wp-block-post-content p {
    margin-top:    0;
    margin-bottom: 1.25rem;
    font-size:     15px;
    line-height:   1.75;
    color:         var(--likya-post-body-color);
}

/* ── H1-H6 Temel Stiller ── */
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
    font-family:   var(--likya-post-heading-font);
    font-weight:   700;
    color:         var(--likya-post-heading-color);
    line-height:   1.25;
    margin-top:    2.25rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

/* ── H Boyutları ── */
.elementor-widget-text-editor h1, .entry-content h1, .wp-block-post-content h1 {
    font-size:   2.1rem;
    font-weight: 800;
    margin-top:  0;
}
.elementor-widget-text-editor h2, .entry-content h2, .wp-block-post-content h2 {
    font-size:   1.6rem;
    font-weight: 700;
    margin-top:  2.5rem;
    padding-bottom: 0.4rem;
    border-bottom:  1px solid #e2e8f0;
}
.elementor-widget-text-editor h3, .entry-content h3, .wp-block-post-content h3 {
    font-size:   1.25rem;
    font-weight: 700;
    margin-top:  2rem;
}
.elementor-widget-text-editor h4, .entry-content h4, .wp-block-post-content h4 {
    font-size:   1.05rem;
    font-weight: 700;
    color:       var(--likya-post-accent-color);
    margin-top:  1.75rem;
}
.elementor-widget-text-editor h5, .entry-content h5, .wp-block-post-content h5 {
    font-size:   0.95rem;
    font-weight: 600;
    margin-top:  1.5rem;
}
.elementor-widget-text-editor h6, .entry-content h6, .wp-block-post-content h6 {
    font-size:   0.875rem;
    font-weight: 600;
    margin-top:  1.25rem;
    color:       #64748b;
}

/* ── İlk heading üst boşluk sıfırlama ── */
.elementor-widget-text-editor > .elementor-widget-container > *:first-child,
.elementor-widget-text-editor > .elementor-widget-container > h1:first-child,
.elementor-widget-text-editor > .elementor-widget-container > h2:first-child,
.elementor-widget-text-editor > .elementor-widget-container > h3:first-child,
.entry-content > *:first-child {
    margin-top: 0 !important;
}

/* ── Bold-as-Heading Deseni
   Eski içeriklerde başlık olarak kullanılan <p><strong>...</strong></p> kalıbını
   H3 görünümüne dönüştürür. :has() modern tarayıcıların tümünde desteklenir.
── */
.elementor-widget-text-editor p:has(> strong:only-child),
.entry-content p:has(> strong:only-child),
.wp-block-post-content p:has(> strong:only-child) {
    font-family:   var(--likya-post-heading-font);
    font-size:     1.1rem;
    /* font-weight:   700; */
    color:         var(--likya-post-heading-color);
    line-height:   1.3;
    margin-top:    2rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.elementor-widget-text-editor p:has(> strong:only-child) strong,
.entry-content p:has(> strong:only-child) strong,
.wp-block-post-content p:has(> strong:only-child) strong {
    font-weight: 700;
    color: inherit;
}

/* ── Listeler ── */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.entry-content ul,
.entry-content ol {
    padding-left:  1.5rem;
    margin-bottom: 1.25rem;
}
.elementor-widget-text-editor ul { list-style-type: disc;    }
.elementor-widget-text-editor ol { list-style-type: decimal; }
.entry-content ul { list-style-type: disc;    }
.entry-content ol { list-style-type: decimal; }

.elementor-widget-text-editor li,
.entry-content li {
    margin-bottom: 0.4rem;
    line-height:   1.7;
    color:         var(--likya-post-body-color);
}

/* ── Linkler ── */
.elementor-widget-text-editor a,
.entry-content a {
    color:                  var(--likya-post-accent-color);
    text-decoration:        underline;
    text-underline-offset:  3px;
    transition:             color 0.2s ease;
}
.elementor-widget-text-editor a:hover,
.entry-content a:hover {
    color: #003653;
}

/* ── Alıntı / Blockquote ── */
.elementor-widget-text-editor blockquote,
.entry-content blockquote {
    border-left:  4px solid var(--likya-post-accent-color);
    padding-left: 1rem;
    margin:       1.5rem 0;
    font-style:   italic;
    color:        #475569;
}

/* ── Yatay çizgi ── */
.elementor-widget-text-editor hr,
.entry-content hr {
    border:     none;
    border-top: 1px solid #e2e8f0;
    margin:     2.5rem 0;
}

/* ── Strong / Em ── */
.elementor-widget-text-editor strong,
.elementor-widget-text-editor b,
.entry-content strong,
.entry-content b {
    font-weight: 700;
    color:       #1e293b;
}

/* ── Tablo ── */
.elementor-widget-text-editor table,
.entry-content table {
    width:           100%;
    border-collapse: collapse;
    margin-bottom:   1.25rem;
    font-size:       14px;
}
.elementor-widget-text-editor th,
.elementor-widget-text-editor td,
.entry-content th,
.entry-content td {
    border:   1px solid #e2e8f0;
    padding:  0.5rem 0.75rem;
    text-align: left;
}
.elementor-widget-text-editor th,
.entry-content th {
    background-color: #f1f5f9;
    font-weight:      600;
    color:            #0f172a;
}

