/* ===== CLAIM & DELAY ANALYSIS COURSE STYLES ===== */
/* Premium dark theme with gold accents */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #103356;
    --primary-light: #1a4a7a;
    --primary-dark: #0a2240;
    --gold: #d4af37;
    --gold-light: #f5e6b3;
    --gold-dark: #b8960c;
    --bg-dark: #020617;
    --text-white: #ffffff;
    --text-slate: #94a3b8;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif !important;
}

html[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* RTL Hero Section - Text alignment (Desktop Only) */
@media (min-width: 1024px) {
    html[dir="rtl"] #hero .lg\:text-left {
        text-align: right !important;
    }

    html[dir="rtl"] #hero .lg\:mx-0 {
        margin-right: 0 !important;
        margin-left: auto !important;
    }

    /* RTL Instructor Section */
    html[dir="rtl"] #instructor .lg\:text-left {
        text-align: right !important;
    }

    html[dir="rtl"] #instructor .lg\:items-start {
        align-items: flex-end !important;
    }
}

/* RTL Footer Connect Section */
html[dir="rtl"] footer .md\:text-right {
    text-align: left !important;
}

html[dir="rtl"] footer .md\:justify-end {
    justify-content: flex-start !important;
}

/* ===== GLASSMORPHISM ===== */
.glass-nav {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
}

.glass-form {
    background: rgba(16, 51, 86, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #d4af37 0%, #f5e6b3 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f5e6b3 50%, #d4af37 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== ANIMATIONS ===== */
/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Slow Float for background elements */
@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite;
}

/* Pulse Slow */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Bounce Slow */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* ===== VIDEO CARDS ===== */
.video-card {
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card video {
    background: #0f172a;
    border-radius: 0.75rem;
}

.video-card video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.video-badge {
    transition: all 0.3s ease;
}

.video-badge.completed {
    animation: completePulse 0.5s ease-out;
}

@keyframes completePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== PAIN CARD HOVER ===== */
.pain-card {
    transition: all 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== CURRICULUM CARD HOVER ===== */
.curriculum-card {
    transition: all 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
    border-color: rgba(212, 175, 55, 0.2);
}

/* ===== AUDIENCE PILL ===== */
.audience-pill {
    transition: all 0.3s ease;
}

.audience-pill:hover {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ===== LOADING STATE ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== FORM STATES ===== */
input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

input.error {
    border-color: #ef4444 !important;
}

input.success {
    border-color: #22c55e !important;
}

/* ===== SECTION REVEAL ANIMATION ===== */
#course-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#course-section.hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

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

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
section {
    position: relative;
}

/* ===== SELECTION STYLE ===== */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

/* ===== LINK STYLES ===== */
a {
    transition: color 0.3s ease;
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* ===== VIDEO PLAYER ENHANCEMENTS ===== */
video {
    width: 100%;
    border-radius: 0.75rem;
    background: #0f172a;
}

video::-webkit-media-controls-enclosure {
    border-radius: 0 0 0.75rem 0.75rem;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 51, 86, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #22c55e;
}

.toast.error {
    border-color: #ef4444;
}