/* static/css/landing-page.css */
/* ✅ ENHANCED VERSION - Midnight Black & Gold Professional Theme */

/* ==================== BASE STYLES ==================== */
body {
    font-family: 'Inter', 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1e293b 50%, #334155 100%);
    color: #f3f4f6;
}

[dir="rtl"] {
    font-family: 'Cairo', 'Amiri', sans-serif;
}

/* ==================== PREMIUM ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(217, 119, 6, 0.5), 0 0 80px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(245, 158, 11, 0.7), 0 0 120px rgba(217, 119, 6, 0.4);
    }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== ANIMATION CLASSES ==================== */
.float-animation { animation: float 8s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.slide-in-up { animation: slideInUp 0.8s ease-out backwards; }
.scale-in { animation: scaleIn 0.6s ease-out backwards; }
.animate-slide-in { animation: slideIn 0.3s ease-out; }
.fade-in { animation: fadeIn 0.8s ease-out; }

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* ==================== GLASS CARD ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(217, 119, 6, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(217, 119, 6, 0.2);
    border-color: rgba(217, 119, 6, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

/* ==================== FEATURE PILL ==================== */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(217, 119, 6, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid rgba(217, 119, 6, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(217, 119, 6, 0.25);
    transform: translateY(-2px);
    border-color: rgba(217, 119, 6, 0.5);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

/* ==================== AUTH PANEL ==================== */
#authPanel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    max-height: 90vh;
    overflow-y: auto;
}

#authPanel.show {
    display: block;
    animation: scaleIn 0.3s ease-out;
}

#authOverlay {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#authOverlay.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* ==================== SETTINGS POPOVER ==================== */
#settingsPopover {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#settingsPopover.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== ROADMAP ==================== */
.roadmap-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(217, 119, 6, 0.4);
}

#roadmapDetails {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(217, 119, 6, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(217, 119, 6, 0.6);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.3);
}

/* ==================== DARK MODE ENHANCEMENTS ==================== */
body.dark-mode,
html.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    color: #e5e7eb;
}

body.dark-mode .glass-card {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(217, 119, 6, 0.2);
}

body.dark-mode .glass-card:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(217, 119, 6, 0.4);
}

body.dark-mode nav {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(217, 119, 6, 0.2);
}

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

body.dark-mode .nav-link:hover {
    color: #fbbf24;
}

body.dark-mode .dropdown {
    background: #1e293b !important;
    border: 1px solid rgba(217, 119, 6, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .dropdown a {
    color: #d1d5db;
}

body.dark-mode .dropdown a:hover {
    background: rgba(217, 119, 6, 0.15) !important;
    color: #fbbf24;
}

body.dark-mode .mobile-menu {
    background: rgba(10, 10, 10, 0.98);
}

body.dark-mode .mobile-menu a {
    color: #d1d5db;
}

body.dark-mode .mobile-menu a:hover {
    background: rgba(217, 119, 6, 0.15) !important;
    color: #fbbf24;
}

body.dark-mode #settingsButton {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

body.dark-mode #settingsButton:hover {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.4);
}

body.dark-mode #settingsButton i {
    color: #d1d5db;
}

body.dark-mode #settingsPopover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
    border-color: rgba(217, 119, 6, 0.3);
}

body.dark-mode #settingsPopover h3,
body.dark-mode #settingsPopover h4 {
    color: #f3f4f6;
}

body.dark-mode #settingsPopover p {
    color: #d1d5db;
}

body.dark-mode #settingsPopover .lang-btn,
body.dark-mode #settingsPopover .theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(217, 119, 6, 0.2);
}

body.dark-mode #settingsPopover .lang-btn:hover,
body.dark-mode #settingsPopover .theme-btn:hover {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.4);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f3f4f6;
}

body.dark-mode p {
    color: #d1d5db;
}

body.dark-mode section.bg-white {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(217, 119, 6, 0.2) !important;
    color: #f3f4f6 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #9ca3af !important;
}

body.dark-mode select option {
    background: #1e293b;
    color: #f3f4f6;
}

body.dark-mode #authPanel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

body.dark-mode #authPanel h2 {
    color: #f3f4f6;
}

body.dark-mode #authPanel label {
    color: #d1d5db;
}

body.dark-mode .text-gray-600 {
    color: #d1d5db !important;
}

body.dark-mode .text-gray-700 {
    color: #e5e7eb !important;
}

body.dark-mode .text-gray-900 {
    color: #f9fafb !important;
}

body.dark-mode #accountDropdown {
    background: #1e293b !important;
    border-color: rgba(217, 119, 6, 0.3);
}

body.dark-mode #accountDropdown a {
    color: #d1d5db;
}

body.dark-mode #accountDropdown a:hover {
    background: rgba(217, 119, 6, 0.15) !important;
    color: #fbbf24;
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* ==================== SELECTION STYLING ==================== */
::selection {
    background: rgba(217, 119, 6, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(217, 119, 6, 0.3);
    color: white;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}