/* ============================================
   EASYTUTOR LAYOUT THEME STYLES
   Ethiopian Educational Theme with Preloader
   ============================================ */

:root {
    --primary: #0A8A4E;
    --primary-dark: #006837;
    --primary-light: #10B861;
    --secondary: #F2C300;
    --secondary-dark: #D4AA00;
    --secondary-light: #F4D03F;
    --accent: #D62828;
    --accent-dark: #B71C1C;
    --accent-light: #E53935;
    --background-light: #F8F9FA;
    --text-primary: #2B2B2B;
    --text-secondary: #555555;
    --success: #0A8A4E;
    --warning: #F2C300;
    --error: #D62828;
}

/* Typography */
.font-display {
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* Button Styles */
.btn-primary {
    @apply bg-primary hover:bg-primary-dark text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-secondary {
    @apply bg-secondary hover:bg-secondary-dark text-text-primary font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-accent {
    @apply bg-accent hover:bg-accent-dark text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-outline-primary {
    @apply border-2 border-primary text-primary hover:bg-primary hover:text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300;
}

/* Card Styles */
.card-ethiopian {
    @apply bg-card-light border border-border-light rounded-xl shadow-sm hover:shadow-xl transition-all duration-300 hover:-translate-y-1;
}

.card-ethiopian-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Navbar Styles */
.navbar-ethiopian {
    @apply bg-card-light shadow-lg border-b border-border-light;
}

.navbar-link {
    @apply text-text-secondary hover:text-primary transition-colors duration-200 font-medium;
}

.navbar-link-active {
    @apply text-primary font-semibold;
}

/* Hero Section */
.hero-ethiopian {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
}

.hero-overlay {
    background: rgba(10, 138, 78, 0.1);
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Styles */
.footer-ethiopian {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
}

/* Learning-focused Components */
.course-card {
    @apply card-ethiopian p-6 hover:border-primary transition-all duration-300;
}

.tutor-card {
    @apply card-ethiopian p-6 text-center hover:bg-gradient-to-br hover:from-primary/5 hover:to-secondary/5;
}

.achievement-badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold bg-secondary/20 text-secondary-dark;
}

.progress-ring {
    stroke: var(--primary);
    stroke-width: 4;
    fill: none;
}

/* Interactive Elements */
.interactive-hover {
    @apply transition-all duration-300 hover:scale-105 hover:shadow-lg cursor-pointer;
}

/* Status Indicators */
.status-success {
    @apply bg-success/10 text-success-dark border border-success/20;
}

.status-warning {
    @apply bg-warning/10 text-warning-dark border border-warning/20;
}

.status-error {
    @apply bg-error/10 text-error-dark border border-error/20;
}

/* Dark Mode Adaptations */
.dark .card-ethiopian {
    @apply bg-card-dark border-border-dark;
}

.dark .navbar-ethiopian {
    @apply bg-card-dark border-border-dark;
}

.dark .course-card {
    @apply bg-card-dark border-border-dark;
}

.dark .tutor-card {
    @apply bg-card-dark border-border-dark;
}

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

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

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

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

/* ============================================
   PRELOADER STYLES - Modern & Creative
   ============================================ */

/* Main Preloader Wrapper */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-wrapper.slide-up {
    animation: slideUpExit 1s ease-in-out forwards;
}

@keyframes slideUpExit {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Modern Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animated Background - Simplified */
.preloader-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

@keyframes preloader-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Main Content Container */
.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo Container with Multiple Animations */
.logo-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoEntry 1s ease-out;
}

@keyframes logoEntry {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo Glow Effect - Simplified */
.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow-simple 2s ease-in-out infinite;
}

@keyframes pulse-glow-simple {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Logo Image */
.preloader-logo {
    position: relative;
    width: 200px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Rotating Rings Around Logo */
.logo-ring,
.logo-ring-2 {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: rotate 4s linear infinite;
}

.logo-ring {
    width: 250px;
    height: 250px;
    border-top-color: #F2C300;
    border-right-color: #F2C300;
}

.logo-ring-2 {
    width: 280px;
    height: 280px;
    border-bottom-color: #D62828;
    border-left-color: #D62828;
    animation-direction: reverse;
    animation-duration: 3s;
}

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

/* Loading Text with Gradient */
.loading-text-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #F2C300 50%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Animated Loading Dots */
.loading-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Loading Icons with Wave Animation */
.loading-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.loading-icon {
    font-size: 2.5rem;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    animation: iconWave 1.5s ease-in-out infinite;
}

.loading-icon:nth-child(1) { animation-delay: 0s; }
.loading-icon:nth-child(2) { animation-delay: 0.1s; }
.loading-icon:nth-child(3) { animation-delay: 0.2s; }
.loading-icon:nth-child(4) { animation-delay: 0.3s; }
.loading-icon:nth-child(5) { animation-delay: 0.4s; }
.loading-icon:nth-child(6) { animation-delay: 0.5s; }
.loading-icon:nth-child(7) { animation-delay: 0.6s; }
.loading-icon:nth-child(8) { animation-delay: 0.7s; }

@keyframes iconWave {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Progress Bar Container */
.progress-container {
    width: 350px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #10B861 0%, 
        #F2C300 25%, 
        #D62828 50%, 
        #F2C300 75%, 
        #10B861 100%);
    background-size: 200% 100%;
    animation: progressGradient 3s ease-in-out infinite;
    border-radius: 50px;
    transition: width 0.3s ease;
    box-shadow: 0 0 30px rgba(242, 195, 0, 0.8), 0 0 60px rgba(214, 40, 40, 0.4);
}

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

.progress-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shimmerMove 2s infinite;
}

@keyframes shimmerMove {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.progress-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Solar System Orbital Animation */
.solar-system {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Orbital Rings (Visual Guide) */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 4s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.orbit-ring-1 {
    width: 180px;
    height: 180px;
}

.orbit-ring-2 {
    width: 280px;
    height: 280px;
    animation-delay: 1s;
}

.orbit-ring-3 {
    width: 180px;
    height: 180px;
    animation-delay: 2s;
}

/* Orbit Container - Rotates to create orbital motion */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-timing-function: linear;
}

.particle {
    position: absolute;
    color: white;
    font-size: 2.5rem;
    opacity: 0.7;
    animation: particleFloat 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 20%;
    top: 80%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    left: 80%;
    top: 10%;
    animation-delay: 2s;
    animation-duration: 5s;
}

.particle:nth-child(4) {
    left: 90%;
    top: 70%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 50%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.particle:nth-child(6) {
    left: 30%;
    top: 30%;
    animation-delay: 2.5s;
    animation-duration: 7.5s;
}

.particle:nth-child(7) {
    left: 70%;
    top: 60%;
    animation-delay: 0.5s;
    animation-duration: 5.5s;
}

.particle:nth-child(8) {
    left: 15%;
    top: 55%;
    animation-delay: 3.5s;
    animation-duration: 6.8s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50px, -150px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(-150px, 50px) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes counterOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Circular Orbital Animation - Closer Circles */
.planet { 
    position: absolute; 
    color: white; 
    font-size: 2.5rem; 
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(242, 195, 0, 0.5); 
    animation-timing-function: linear; 
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)); 
}

/* Inner Circle - 4 icons at 180px radius */
.orbit-1 { width: 180px; height: 180px; animation: orbit 10s linear infinite; }
.orbit-1 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 10s linear infinite; color: #F2C300; }

.orbit-2 { width: 180px; height: 180px; animation: orbit 12s linear infinite reverse; }
.orbit-2 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 12s linear infinite reverse; color: #10B861; }

.orbit-3 { width: 180px; height: 180px; animation: orbit 11s linear infinite; }
.orbit-3 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 11s linear infinite; color: #D62828; }

.orbit-4 { width: 180px; height: 180px; animation: orbit 13s linear infinite reverse; }
.orbit-4 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 13s linear infinite reverse; color: #F4D03F; }

/* Outer Circle - 4 icons at 280px radius */
.orbit-5 { width: 280px; height: 280px; animation: orbit 15s linear infinite; }
.orbit-5 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 15s linear infinite; color: #E53935; }

.orbit-6 { width: 280px; height: 280px; animation: orbit 17s linear infinite reverse; }
.orbit-6 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 17s linear infinite reverse; color: #10B861; }

.orbit-7 { width: 280px; height: 280px; animation: orbit 16s linear infinite; }
.orbit-7 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 16s linear infinite; color: #F2C300; }

.orbit-8 { width: 280px; height: 280px; animation: orbit 18s linear infinite reverse; }
.orbit-8 .planet { top: 0; left: 50%; transform: translate(-50%, -50%); animation: counterOrbit 18s linear infinite reverse; color: #FFFFFF; }

/* Orbital Animation Keyframes */
@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-container {
        width: 250px;
        height: 250px;
    }

    .preloader-logo {
        width: 150px;
    }

    .logo-ring {
        width: 200px;
        height: 200px;
    }

    .logo-ring-2 {
        width: 230px;
        height: 230px;
    }

    .loading-text {
        font-size: 1.5rem;
    }

    .progress-container {
        width: 280px;
    }

    .progress-text {
        font-size: 1rem;
    }
}
