/* ========================================
   PrismRetouch — Main Component Styles
   Extracted from index.html inline styles
   ======================================== */

/* Loading spinner */
.loading-spinner {
    border: 3px solid rgba(59,130,246,0.2);
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Compare card images */
.compare-card img {
    max-height: 280px;
    object-fit: contain;
    width: 100%;
    background: #f8fafc;
}
@media (min-width: 640px) {
    .compare-card img { max-height: 350px; }
}
@media (min-width: 768px) {
    .compare-card img { max-height: 450px; min-height: 380px; }
}

/* Fade-in transition */
.fade-in { transition: opacity 0.3s ease; }

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(78, 205, 196, 0.15) 0%, transparent 40%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}
@keyframes gradientShift {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-20px) scale(1.1); }
}

/* Floating decorative elements */
.floating-elements {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    overflow: hidden;
    z-index: 0;
}
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}
@media (max-width: 639px) {
    .floating-elements { display: none; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Modern gradient button */
.modern-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}
.modern-button:active { transform: translateY(0px); }
.modern-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Pricing card */
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.pricing-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Popular pricing card highlight */
.pricing-popular {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.5);
    position: relative;
}
.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    background-size: 200% 200%;
    animation: shimmer-border 3s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes shimmer-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Draggable Before/After Comparison Slider */
.example-comparison {
    position: relative;
    max-width: 300px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    cursor: ew-resize;
    border: 2px solid rgba(255,255,255,0.3);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
@media (max-width: 639px) {
    .example-comparison { max-width: 260px; margin-bottom: 16px; }
}
@media (min-width: 640px) {
    .example-comparison { max-width: 400px; }
}
@media (min-width: 768px) {
    .example-comparison { max-width: 500px; }
}
.example-comparison img {
    width: 100%;
    display: block;
    pointer-events: none;
}
.example-before-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 2;
}
.example-before-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.slider-handle {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.slider-handle::after {
    content: '\27E8 \27E9';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}
.example-label {
    position: absolute;
    bottom: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 5;
}
.example-label.left { left: 12px; }
.example-label.right { right: 12px; }

/* Scroll-triggered fade-in reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Skeleton loading animation */
.skeleton-pulse {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero particle canvas */
#heroParticles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: toast-in 0.3s ease-out, toast-out 0.3s ease-in 4.7s forwards;
    max-width: 90vw;
    text-align: center;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
