/* ============================================
   MINIMALIST MEGA MENU - CLEAN DESIGN
   ============================================ */

/* Mega Menu Container */
.mega-menu-wrapper {
    position: static;
}

.mega-menu-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.mega-menu-trigger .dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.mega-menu-trigger:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Menu Overlay - Minimalist Design */
.mega-menu-overlay {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 0;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Content */
.mega-menu-content {
    padding: 24px;
}

/* Tools Grid - Clean Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Tool Item - Simple Design */
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    text-align: center;
    cursor: pointer;
}

.tool-item:hover {
    background: #fafafa;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Tool Icon - Minimalist */
.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #f8f8f8;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tool-item:hover .tool-icon-wrapper {
    background: #f0f0f0;
}

.tool-icon-wrapper img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Tool Info */
.tool-info {
    width: 100%;
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.tool-desc {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
}

/* Coming Soon Tool */
.tool-item.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-item.coming-soon:hover {
    transform: none;
    background: #ffffff;
    border-color: #f0f0f0;
    box-shadow: none;
}

.coming-soon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #888888;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Status Bar */
.status-bar {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555555;
}

.status-item svg {
    width: 16px;
    height: 16px;
    color: #4CAF50;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ============================================
   RESPONSIVE DESIGN (MOBİL DÜZENLEME)
   ============================================ */

@media (max-width: 1200px) {
    .mega-menu-overlay {
        width: 90%;
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TABLET VE MOBİL (768px altı) */
@media (max-width: 768px) {
    /* Navbar Konteyner Düzeni */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px; /* Mobilde kenar boşluğunu biraz azalt */
        height: 60px; /* Mobilde navbar yüksekliği ideal */
    }

    /* 1. LOGO: En solda ve sabit */
    .nav-logo {
        order: 1;
        margin-right: auto; /* Sağındaki her şeyi en uca it */
        z-index: 10002; /* Overlay üstünde kalsın */
    }

    /* 2. MASAÜSTÜ MENÜSÜ: Kesinlikle gizle */
    .nav-menu { 
        display: none !important; 
    }

    /* 3. MOBİL KULLANICI ADI (Giriş Yapılınca) */
    .nav-actions-mobile { 
        display: flex !important; 
        align-items: center; 
        gap: 10px; 
        order: 2; /* Hamburgerden önce gelsin */
        margin-right: 15px; /* Hamburger ile arasına boşluk */
    }

    .navbar-username-mobile {
        font-size: 0.9rem;
        color: var(--gray-700);
        font-weight: 600;
        white-space: nowrap;      /* Alt satıra inme */
        overflow: hidden;         /* Taşarsa gizle */
        text-overflow: ellipsis;  /* Üç nokta koy (...) */
        max-width: 150px;         /* İsim çok uzunsa sınırla */
        display: inline-block;
    }

    /* 4. HAMBURGER BUTONU: En sağda */
    .hamburger-menu { 
        display: flex !important; 
        order: 3;
    }

    /* Overlay Menü Ayarları */
    .mega-menu-overlay {
        position: fixed;
        top: 0; /* En tepeden başlasın */
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%; /* Tam ekran genişlik */
        height: 100vh; /* Tam ekran yükseklik */
        border-radius: 0;
        border: none;
        margin-top: 0;
        transform: translateX(100%); /* Varsayılan olarak sağda gizli */
        transition: transform 0.3s ease-in-out;
        opacity: 1; /* Opacity yerine transform ile animasyon */
        visibility: visible;
        display: flex; /* İçeriği yönetmek için */
        flex-direction: column;
        background: white;
    }
    
    .mega-menu-overlay.active {
        transform: translateX(0); /* Ekrana kaydır */
        opacity: 1;
        visibility: visible;
    }
    
    .mega-menu-content {
        padding: 0;
        overflow-y: auto; /* İçerik taşarsa scroll olsun */
        flex: 1;
        width: 100%;
    }
    
    /* Mobil Grid Düzeni */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }
    
    .tool-item {
        padding: 16px 10px;
    }
    
    .tool-icon-wrapper {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
    
    .tool-icon-wrapper img {
        width: 22px;
        height: 22px;
    }
    
    .status-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 20px;
    }
}

/* KÜÇÜK MOBİL (576px altı) */
@media (max-width: 576px) {
    /* "Hoş geldin" yazısını kaldırıp sadece ismi gösterelim veya fontu küçültelim */
    .navbar-username-mobile {
        font-size: 0.85rem;
        max-width: 100px; /* Daha dar alan */
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tool-item {
        padding: 14px 8px;
    }
    
    .tool-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .tool-icon-wrapper img {
        width: 20px;
        height: 20px;
    }
    
    .tool-name {
        font-size: 13px;
    }
    
    .tool-desc {
        font-size: 11px;
    }
    
    .status-bar {
        padding: 12px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR (375px altı) */
@media (max-width: 375px) {
    .tools-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    
    /* Çok küçükse kullanıcı adını gizle, sadece menüde görünsün */
    .nav-actions-mobile {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

.mega-menu-overlay:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.tool-item:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .mega-menu-overlay,
    .tool-item,
    .tool-icon-wrapper,
    .mega-menu-trigger .dropdown-arrow,
    .hamburger-menu span {
        transition: none;
    }
}