/* Custom Styles for ArtLearn Platform - Professional Edition */

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
.spinner {
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    border-top: 4px solid #667eea;
    width: 50px;
    height: 50px;
    animation: rotate 1s linear infinite;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */
.gradient-primary {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #f0abfc 0%, #c084fc 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-animated {
    background: linear-gradient(270deg, #f97316, #ec4899, #fb923c);
    background-size: 600% 600%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   CARD STYLES
   ============================================ */
.card-3d {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

.card-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-glow {
    transition: all 0.3s ease;
}

.card-glow:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6),
                0 0 60px rgba(249, 115, 22, 0.4);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.8);
    transform: translateY(-2px);
}

/* ============================================
   IMAGE EFFECTS
   ============================================ */
.image-preview {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-preview:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.8) 0%, rgba(236, 72, 153, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-center;
    color: white;
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-bar {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ============================================
   TOOLTIPS
   ============================================ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    font-size: 14px;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #f97316 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-primary {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card-hover, .card-lift {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.focus-visible:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f97316;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   CUSTOM COMPONENTS
   ============================================ */

/* Neon effect */
.neon-text {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.8),
                 0 0 20px rgba(249, 115, 22, 0.6),
                 0 0 30px rgba(249, 115, 22, 0.4);
}

/* ============================================
   PREMIUM ENHANCEMENTS
   ============================================ */

/* Mesh Gradient Background */
.mesh-gradient {
    background: 
        radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(251, 146, 60, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(249, 115, 22, 0.2) 0px, transparent 50%);
}

/* Frosted Glass */
.frosted-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Soft Neumorphism */
.soft-shadow {
    box-shadow: 
        20px 20px 60px rgba(6, 182, 212, 0.1),
        -20px -20px 60px rgba(255, 255, 255, 0.8);
}

/* Premium Hover */
.premium-hover {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-hover::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #f97316, #ec4899, #fb923c);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.4s;
}

.premium-hover:hover::before {
    opacity: 0.7;
}

.premium-hover:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Animated Border */
@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-border {
    position: relative;
    background: white;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #f97316, #ec4899, #fb923c, #f97316);
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

/* Liquid Button */
.liquid-button {
    position: relative;
    overflow: hidden;
}

.liquid-button::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;
}

.liquid-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Typing Effect */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-cursor {
    animation: blink 1s infinite;
}

/* Parallax Layers */
.parallax-slow {
    transform: translateZ(-1px) scale(2);
}

.parallax-fast {
    transform: translateZ(1px) scale(0.5);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.2s ease-out;
}

/* Shine Effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
}

.shine:hover::after {
    animation: shine 1.5s ease-in-out;
}

/* Perspective Card */
.perspective-card {
    perspective: 1000px;
}

.perspective-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.perspective-card:hover .perspective-card-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Floating Labels */
.floating-label {
    position: absolute;
    pointer-events: none;
    left: 1.25rem;
    top: 1rem;
    transition: all 0.2s;
    color: #6b7280;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #06b6d4;
    background: white;
    padding: 0 0.25rem;
}

/* Stagger Animation */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Morphing Shapes */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morphing {
    animation: morph 8s ease-in-out infinite;
}

/* Premium Gradient Text */
.premium-text {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #fb923c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Interactive Shadow */
.interactive-shadow {
    transition: box-shadow 0.3s ease;
}

.interactive-shadow:hover {
    box-shadow: 
        0 0 20px rgba(249, 115, 22, 0.4),
        0 0 40px rgba(236, 72, 153, 0.3),
        0 0 60px rgba(251, 146, 60, 0.2);
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
}

