/**
 * Modern Hamburger Menü Stilleri
 */

/* Hamburger İkon Stili */
.mhm-hamburger-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mhm-hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger İkon Animasyonu - Aktif Durumda */
.mhm-hamburger-icon.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mhm-hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.mhm-hamburger-icon.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Menü Konteyner Stili */
.mhm-menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: #101010;
    overflow-y: auto;
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: none; /* Başlangıçta gizli */
    flex-direction: column;
}

/* !Önemli: Aktif sınıfı eklendiğinde görünür ve sol kenara konumlandırılır */
.mhm-menu-container.active {
    left: 0 !important;
    display: flex !important;
    opacity: 1 !important;
}

.mhm-menu-wrapper {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dikey merkezleme için center kullanıyoruz */
    align-items: center; /* Yatayda da merkeze alıyoruz */
    height: 100%;
    box-sizing: border-box;
    position: relative; /* Alt içerik için referans */
}

/* İçerik konteynerı - içeriği ortalamak için */
.mhm-menu-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 80%; /* Menü içeriği yüksekliği */
    overflow-y: auto; /* İçerik çok uzunsa scroll olsun */
    margin-bottom: 80px; /* Alt kısımda sosyal medya ikonları için yer bırak */
}

/* Logo Stili */
.mhm-logo {
    text-align: left;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
}

.mhm-logo a {
    display: inline-block;
    transition: all 0.3s ease;
}

.mhm-logo a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.mhm-logo img {
    width: 250px !important;
    height: auto;
}

.mhm-logo a:active {
    transform: translateY(0);
}

.mhm-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    transition: all 0.3s ease;
}

/* Logo Animasyonu */
.mhm-menu-container.active .mhm-logo img {
    animation: logoFadeIn 0.6s ease forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menü Öğeleri Stili */
.mhm-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
    text-align: left;
}

.mhm-menu li {
    margin-bottom: 15px;
    opacity: 1 !important; /* Opacity'i her zaman 1 yap */
    text-align: left;
}

.mhm-menu a {
    color: #fff !important; /* Rengi her zaman beyaz yap */
    font-size: 16px;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    opacity: 1 !important; /* Opacity'i her zaman 1 yap */
}

.mhm-menu a:hover {
    border-left: 3px solid #fff;
    padding-left: 15px;
}

/* Alt Menüler */
.mhm-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.mhm-menu .menu-item-has-children.active .sub-menu {
    display: block;
}

/* Sosyal Medya İkonları */
.mhm-social-icons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute; /* Mutlak konumlandırma ile her zaman altta kalmasını sağlıyoruz */
    bottom: 30px; /* Alt kenardan boşluk */
    left: 0;
    right: 0;
}

.mhm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mhm-social-icon:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Font Awesome ikon stilleri */
.mhm-social-icon i {
    font-size: 18px;
    position: relative;
    z-index: 2;
    color: #fff !important;
}

.mhm-social-icon:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Sosyal Medya İkon Animasyonları */
.mhm-social-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.mhm-social-icon:hover:before {
    transform: scale(2);
    opacity: 1;
}

/* Özel İkon Renkleri */
.mhm-social-icon.linkedin:hover {
    background-color: #0077b5;
}

.mhm-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.mhm-social-icon.vimeo:hover {
    background-color: #1ab7ea;
}

/* Menü açıldığında sosyal medya ikonlarının animasyonu */
.mhm-menu-container.active .mhm-social-icon {
    animation: socialIconPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.mhm-menu-container.active .mhm-social-icon:nth-child(1) {
    animation-delay: 0.3s;
}

.mhm-menu-container.active .mhm-social-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.mhm-menu-container.active .mhm-social-icon:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes socialIconPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    80% {
        transform: scale(1.1) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Sosyal medya ikonları görünmeme sorununu çözen ek stiller */
.mhm-menu-container.active .mhm-social-icons {
    display: flex !important;
    opacity: 1 !important;
}

.mhm-menu-container.active .mhm-social-icon {
    opacity: 1 !important;
    display: flex !important;
}

/* Arka Plan Overlay */
.mhm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0; /* Başlangıçta tamamen şeffaf */
    visibility: hidden;
    transition: all 0.3s ease;
}

.mhm-overlay.active {
    opacity: 0.5; /* Aktif olduğunda yarı şeffaf */
    visibility: visible;
}

/* Fallback - GSAP kullanılamadığında */
@supports not (animation-name: gsap) {
    .mhm-menu-container.active {
        transition: left 0.4s ease;
    }
    
    .mhm-menu li {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive Ayarlar */
@media screen and (max-width: 768px) {
    .mhm-menu-container {
        width: 250px;
    }
    
    .mhm-logo img {
        max-width: 80%;
    }
} 