/* ============================================
   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
   ============================================ */

@media (max-width: 1200px) {
    .mega-menu-overlay {
        width: 90%;
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid #e5e5e5;
        margin-top: 0;
        transform: none;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mega-menu-overlay.active {
        transform: none;
        left: 0;
    }
    
    .mega-menu-content {
        padding: 20px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .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;
    }
}

@media (max-width: 576px) {
    .mega-menu-content {
        padding: 16px;
    }
    
    .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;
    }
}

@media (max-width: 375px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.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;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mega-menu-overlay,
    .tool-item,
    .tool-icon-wrapper,
    .mega-menu-trigger .dropdown-arrow {
        transition: none;
    }
    
    .mega-menu-overlay.active {
        animation: none;
    }
}