/* Dashboard Layout Styles - زواجنت */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navigation Bar */
.nav {
    position: relative;
    z-index: 50;
    background: linear-gradient(135deg, 
        hsl(var(--brand-primary)) 0%, 
        hsl(var(--brand-accent)) 50%, 
        hsl(var(--brand-primary)) 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Logo Container */
.logo-container {
    animation: float 6s ease-in-out infinite;
}

.logo-icon {
    transition: all 0.3s ease;
}

.logo-glow {
    transition: opacity 0.3s ease;
}

.group:hover .logo-glow {
    opacity: 0.75;
}

.group:hover .logo-icon {
    transform: scale(1.1);
}

/* Navigation Links */
.nav-link {
    position: relative;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #e9d5ff;
    transform: translateY(-2px);
}

.nav-text {
    position: relative;
    z-index: 10;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    padding: 0.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.theme-toggle-btn:hover {
    color: #e9d5ff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* User Profile Button */
.user-profile-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.user-profile-btn:hover {
    color: #e9d5ff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    left: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    z-index: 50;
    transform-origin: top left;
    transition: all 0.2s ease-in-out;
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Auth Buttons */
.auth-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.auth-btn:hover {
    transform: scale(1.05);
}

.login-btn {
    color: white;
    border: 2px solid white;
    background: transparent;
}

.login-btn:hover {
    background: white;
    color: #7c3aed;
}

.register-btn {
    background: white;
    color: #7c3aed;
}

.register-btn:hover {
    background: #f3f4f6;
}

/* Mobile Menu */
.mobile-menu-btn {
    padding: 0.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    color: #e9d5ff;
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu {
    display: none;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background-color: #f3f4f6;
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '💕';
    position: absolute;
    font-size: 20px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-hearts::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-hearts::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

/* Background Pattern */
.bg-pattern {
    animation: pulse 4s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
}

@keyframes gradientShift {
    0% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
    100% { 
        background-position: 0% 50%; 
    }
}

/* Gradient Animation */
.bg-gradient-to-r {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-link {
        font-size: 0.875rem;
    }
    
    .logo-container {
        animation: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* Dark Mode Support */
.dark .dropdown-menu {
    background: #1f2937;
    border-color: #374151;
}

.dark .dropdown-item {
    color: #d1d5db;
}

.dark .dropdown-item:hover {
    background-color: #374151;
}

.dark .mobile-menu {
    background: #1f2937;
    border-color: #374151;
}

.dark .mobile-nav-link {
    color: #d1d5db;
}

.dark .mobile-nav-link:hover {
    background-color: #374151;
}

/* Utility Classes */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Focus States */
.nav-link:focus,
.theme-toggle-btn:focus,
.user-profile-btn:focus,
.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .logo-container,
    .floating-hearts::before,
    .floating-hearts::after,
    .bg-pattern,
    .bg-gradient-to-r {
        animation: none;
    }
    
    .nav-link:hover,
    .theme-toggle-btn:hover,
    .user-profile-btn:hover,
    .mobile-menu-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover {
        border-color: white;
    }
    
    .dropdown-menu {
        border-width: 2px;
    }
}

