/* Custom CSS for UltraShoot AI */

/* CRITICAL: Hide floating dark mode button on mobile - it's in the menu */
@media (max-width: 991px) {
    .theme-toggle,
    button.theme-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* CRITICAL: Force Mobile Header to Show */
@media (max-width: 768px) {
    .modern-header,
    header.modern-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.15) !important;
        padding: 12px 0 !important;
        width: 100% !important;
    }
    
    .modern-header .container,
    header.modern-header .container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .modern-header .d-flex,
    header.modern-header .d-flex {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile Controls Section */
    .d-flex.d-md-none,
    div.d-flex.d-md-none {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        gap: 15px !important;
    }
    
    .d-flex.d-md-none .btn,
    div.d-flex.d-md-none .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 10px 14px !important;
        background: rgba(6, 182, 212, 0.15) !important;
        border: 2px solid #06b6d4 !important;
        border-radius: 10px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
    
    .d-flex.d-md-none .btn i,
    div.d-flex.d-md-none .btn i {
        color: #06b6d4 !important;
        font-size: 20px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Logo Mobile */
    .header-logo,
    a.header-logo {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-logo img,
    a.header-logo img {
        height: 70px !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 576px) {
    .header-logo img,
    a.header-logo img {
        height: 55px !important;
    }
    
    .d-flex.d-md-none .btn,
    div.d-flex.d-md-none .btn {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 8px 12px !important;
    }
    
    .d-flex.d-md-none .btn i,
    div.d-flex.d-md-none .btn i {
        font-size: 18px !important;
    }
}

/* Text Shadow for better readability on background images */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

:root {
    /* Ocean Wave Theme - Professional & Modern */
    --primary-color: #0f172a;        /* Deep ocean blue */
    --secondary-color: #1e293b;      /* Storm gray */
    --accent-color: #06b6d4;         /* Cyan wave */
    --accent-secondary: #8b5cf6;     /* Soft purple */
    --success-color: #10b981;        /* Sea green */
    --warning-color: #f59e0b;        /* Sunset amber */
    --danger-color: #ef4444;         /* Coral red */
    --info-color: #3b82f6;           /* Ocean blue */
    --light-color: #f0f9ff;          /* Ocean mist */
    --dark-color: #0c4a6e;           /* Deep sea */
    --text-light: #ffffff;           /* White foam */
    --text-dark: #0f172a;            /* Deep text */
    --border-color: #e0f2fe;         /* Light cyan border */
    
    /* Professional Wave gradients */
    --wave-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 25%, #8b5cf6 75%, #6366f1 100%);
    --ocean-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 33%, #06b6d4 66%, #8b5cf6 100%);
    --soft-gradient: linear-gradient(135deg, 
        rgba(224, 242, 254, 0.4) 0%, 
        rgba(186, 230, 253, 0.5) 25%,
        rgba(224, 231, 255, 0.5) 75%, 
        rgba(221, 214, 254, 0.4) 100%);
    --hero-gradient: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(139, 92, 246, 0.8));
    --professional-gradient: linear-gradient(135deg, 
        #fff 0%, 
        rgba(224, 242, 254, 0.6) 20%,
        rgba(186, 230, 253, 0.7) 40%,
        rgba(224, 231, 255, 0.7) 60%,
        rgba(221, 214, 254, 0.6) 80%,
        #fff 100%);
}

/* Language-specific Fonts */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Arabic Font & RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* RTL-specific Adjustments */
[dir="rtl"] .navbar-brand {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

/* LTR-specific Adjustments */
[dir="ltr"] .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="ltr"] .dropdown-menu {
    left: 0;
    right: auto;
}

/* Custom Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Custom shadows */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(#{grain})"/></svg>');
    opacity: 0.1;
}

/* Features */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* Step Numbers */
.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto;
}

/* Credit Display */
.credit-display {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* Video Player */
video {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Pricing Cards */
.price-display {
    background: rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Loading Animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Badge Positioning */
.position-relative .badge {
    z-index: 10;
}

/* Success Page Styles */
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Additional mobile optimizations */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}