/* ================================================================
   MCD 360° Menu Builder — Frontend CSS
   Version: 3.1.0
   ================================================================

   NOT: Ana dropdown CSS'i artık her panel için inline olarak
   üretilir (class-frontend.php → get_critical_css). Bu dosya
   sadece MOBİL slide-panel + paylaşılan utility için kullanılır.
   ================================================================ */

/* ── Hamburger butonu (mobil) ── */
.mcd360-hamburger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.mcd360-hamburger span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
    display: block;
}
.mcd360-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mcd360-hamburger.is-open span:nth-child(2) { opacity: 0; }
.mcd360-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobil slide panel ── */
@media (max-width: 767px) {
    .mcd360-hamburger { display: flex !important; }

    .mcd360-mobile-panel {
        position: fixed !important;
        top: 0; right: -100%;
        width: 90%; max-width: 360px; height: 100vh;
        background: #fff !important;
        z-index: 999999 !important;
        transition: right .3s ease;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .mcd360-mobile-panel.is-open { right: 0; }

    .mcd360-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid #f0f0f0;
        background: #fafbfd;
        flex-shrink: 0;
    }
    .mcd360-mobile-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
    .mcd360-mobile-close { background: none; border: 0; font-size: 22px; cursor: pointer; color: #666; padding: 4px 8px; }

    .mcd360-mobile-nav { padding: 8px 0; flex: 1; }
    .mcd360-mobile-nav-item {
        display: flex; align-items: center; gap: 10px;
        padding: 14px 18px; cursor: pointer; font-size: 14px;
        color: #1a1a1a; border-bottom: 1px solid #f5f5f5;
        text-decoration: none !important; background: #fff;
    }
    .mcd360-mobile-nav-item:hover { background: #fafbfd; }
    .mcd360-mobile-nav-item svg { width: 18px; height: 18px; color: #0066cc; flex-shrink: 0; }
    .mcd360-mobile-nav-item span { flex: 1; }
    .mcd360-mobile-chevron { color: #666; font-size: 18px; transition: transform .2s; }
    .mcd360-mobile-chevron.is-open { transform: rotate(90deg); }

    .mcd360-mobile-sub {
        max-height: 0; overflow: hidden;
        background: #fafbfd;
        transition: max-height .3s ease;
    }
    .mcd360-mobile-sub.is-open { max-height: 2000px; }
    .mcd360-mobile-card {
        display: block; padding: 12px 18px 12px 50px;
        text-decoration: none !important; color: #1a1a1a;
        font-size: 13px; border-bottom: 1px solid #efefef;
    }
    .mcd360-mobile-card:hover {
        background: rgba(0, 102, 204, 0.05);
        color: #0066cc;
    }

    .mcd360-mobile-backdrop {
        position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999998;
        opacity: 0; visibility: hidden;
        transition: opacity .3s, visibility 0s .3s;
    }
    .mcd360-mobile-backdrop.is-open {
        opacity: 1; visibility: visible;
        transition: opacity .3s, visibility 0s 0s;
    }

    body.mcd360-no-scroll { overflow: hidden; }
}

@media (min-width: 768px) {
    .mcd360-mobile-panel { display: none !important; }
    .mcd360-mobile-backdrop { display: none !important; }
}

/* ── Elementor editor placeholder ── */
.mcd360-elementor-placeholder {
    background: linear-gradient(135deg, #f0f4ff, #fff);
    border: 2px dashed #c0d8ff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-family: -apple-system, sans-serif;
}
.mcd360-elementor-placeholder__icon { font-size: 32px; margin-bottom: 8px; color: #0066cc; }
.mcd360-elementor-placeholder__title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.mcd360-elementor-placeholder__meta { font-size: 12px; color: #666; }
.mcd360-elementor-placeholder__meta span { display: inline-block; margin: 0 8px; }
.mcd360-elementor-placeholder__warning {
    background: #fff3e0; color: #e65100;
    font-size: 12px; padding: 8px 12px;
    border-radius: 6px; margin-top: 10px;
}
.mcd360-elementor-placeholder__hint { font-size: 11px; color: #888; margin-top: 8px; }
.mcd360-elementor-placeholder__hint a { color: #0066cc; text-decoration: none; }
