/* Header Mega Menu CSS - Dinamik Kategoriler */

/* Category Count Badges */
.category-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* Sub Category Styling */
.sub-category {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    padding-left: 1rem;
    opacity: 0.8;
}

.sub-category:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

/* View All Link */
.view-all-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.view-all-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-all-link a:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* Mega Stats Styling */
.mega-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), #5b21b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mega CTA Button */
.mega-cta {
    margin-top: 1rem;
}

.mega-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #5b21b6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mega-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white !important;
}

.mega-cta-btn i {
    font-size: 1.1rem;
}

/* Mega Menu Column Headers */
.mega-dropdown-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mega-dropdown-content h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Enhanced List Styling */
.mega-dropdown-content ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mega-dropdown-content ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mega-dropdown-content ul li a:hover::before {
    transform: scaleY(1);
}

.mega-dropdown-content ul li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 1rem;
}

.mega-dropdown-content ul li a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mega-dropdown-content ul li a:hover i {
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Responsive Mega Menu */
@media (max-width: 1024px) {
    .mega-dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .mega-stats {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .mega-dropdown-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mega-dropdown-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: 100%;
        max-height: 80vh;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
    }
    
    .mega-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mega-cta-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .category-count {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}

/* Dark Mode Enhancements */
[data-theme="dark"] .stat-item {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .stat-item:hover {
    background: var(--bg-secondary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .mega-cta-btn {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .mega-dropdown-content ul li a:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Animation for Stats Numbers */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Loading state for stats */
.mega-stats.loading .stat-number {
    background: var(--bg-tertiary);
    color: transparent;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Enhanced hover effects */
.mega-dropdown-content ul li {
    position: relative;
}

.mega-dropdown-content ul li::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f054'; /* fa-chevron-right */
    font-size: 0.8rem;
}

.mega-dropdown-content ul li:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Priority indicators for popular items - REMOVED HOT labels */ 