
/* Elementor Canvas Off-Canvas Menu – structural CSS only, renkler inline ile override ediliyor */

/* Wrapper sits inline so you can place it in Elementor header */
.ecm-wrapper {
    position: relative;
    display: inline-block;
    z-index: 9990;
}

/* Hamburger button */
.ecm-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: transparent;
    border: none;
}

.ecm-toggle i {
    font-size: 22px;
}

/* Overlay */
.ecm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9980;
}

/* Panel */
.ecm-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80%;
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 9985;
    box-sizing: border-box;
}

.ecm-panel-inner {
    height: 100%;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Close button */
.ecm-close {
    cursor: pointer;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
}

.ecm-close i {
    font-size: 20px;
}

/* Menu */
.ecm-menu-nav {
    margin: 0;
    padding: 0;
}

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

/* Level 1 items */
.ecm-menu-list > li {
    position: relative;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ecm-menu-list > li:last-child {
    border-bottom: none;
}

/* Menu links */
.ecm-menu-list a {
    display: block;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 4px;
}

/* Submenu basic styling */
.ecm-menu-list li .sub-menu {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
}

.ecm-menu-list li.ecm-open-sub > .sub-menu {
    display: block;
}

.ecm-menu-list li .sub-menu li {
    padding: 6px 0;
    border-bottom: none;
}

.ecm-menu-list li .sub-menu a {
    font-size: 14px;
    font-weight: 400;
}

/* Submenu toggle arrow (> iconu) */
.ecm-sub-toggle {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
}

.ecm-sub-toggle i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Açıkken ok yönünü çevir (>) -> (v gibi) */
.ecm-menu-list li.ecm-open-sub > .ecm-sub-toggle i {
    transform: rotate(90deg);
}

/* Login / Register buttons – menüden hemen sonra */
.ecm-auth-buttons {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Button base */
.ecm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
}

/* Varsayılan, renkler inline ile override ediliyor */
.ecm-btn-login {
}

.ecm-btn-register {
}

/* Open state */
.ecm-wrapper.ecm-open .ecm-panel {
    transform: translateX(0);
}

.ecm-wrapper.ecm-open .ecm-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Basic responsiveness */
@media (min-width: 1024px) {
    .ecm-panel {
        width: 320px;
    }
}
