/* =============================================
   DROPDOWN SERVICES MENÜ STİLLERİ
   AKTEKNİK v2.0
   ============================================= */

/* Dropdown container */
.mega-dropdown {
    position: relative;
}

.mega-dropdown .dropdown-menu-services {
    width: 540px;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease;
    margin-top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%);
    right: auto !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services grid */
.dropdown-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px;
}

/* Service item */
.dropdown-item-service {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.25s ease;
    position: relative;
}

.dropdown-item-service:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    color: #1a1a2e;
    transform: translateX(4px);
}

.dropdown-item-service:hover .service-icon {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    transform: scale(1.1);
}

/* Service icon */
.service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #4361ee;
    transition: all 0.3s ease;
}

/* Service info */
.service-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.service-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Dropdown footer */
.dropdown-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-top: 1px solid rgba(67, 97, 238, 0.1);
}

.view-all-link {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4361ee;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.view-all-link:hover {
    color: #3a0ca3;
    background: rgba(67, 97, 238, 0.08);
}

/* Desktop hover */
@media (min-width: 992px) {
    .mega-dropdown:hover > .dropdown-menu-services {
        display: block;
    }
    
    .mega-dropdown > .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
    
    .mega-dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Nav link active state for services pages */
.nav-link.dropdown-toggle.active {
    color: #4361ee !important;
    font-weight: 600;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .mega-dropdown {
        position: static;
    }
    
    .mega-dropdown .dropdown-menu-services {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        position: relative !important;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.08);
        margin-top: 4px !important;
        animation: none;
        overflow: visible;
    }
    
    .dropdown-services-grid {
        grid-template-columns: 1fr;
        padding: 4px;
    }
    
    .dropdown-item-service {
        padding: 12px 14px;
        transform: none !important;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .service-title {
        font-size: 0.85rem;
    }
    
    .service-desc {
        font-size: 0.7rem;
    }
    
    .dropdown-footer {
        flex-direction: column;
        gap: 6px;
        padding: 10px 14px;
    }
    
    .view-all-link {
        justify-content: center;
        padding: 8px;
        background: rgba(67, 97, 238, 0.05);
        border-radius: 8px;
    }
}
