/* Social Marts - Custom Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #FF6B9D);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9333ea, #FF5A8D);
}

/* Glass Morphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Button Hover Effects */
button, .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::before, .btn::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;
}

button:hover::before, .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* Pulse Animation for Live Elements */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.count-up {
    display: inline-block;
    animation: countUp 0.5s ease;
}

/* Progress Bar Animation */
@keyframes progress {
    from {
        width: 0%;
    }
}

.animated-progress {
    animation: progress 2s ease;
}

/* Modal Backdrop Blur */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #FF6B9D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 40;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Badge Animation */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.badge-animated {
    animation: badge-pulse 2s ease infinite;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(168, 85, 247, 0.1);
    border-top-color: #a855f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Zoom on Hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Custom Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.3);
    color: inherit;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer, .fab, #purchase-modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}

/* Dark Theme - Gray/Desaturated Aesthetic */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --accent-primary: #94a3b8;
    --accent-secondary: #64748b;
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .text-neutral-800 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-neutral-600 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .glass {
    background: rgba(26, 26, 26, 0.8);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

[data-theme="dark"] ::selection {
    background: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] *:focus-visible {
    outline: 3px solid rgba(148, 163, 184, 0.5);
}

/* Dark Theme - Override All Purple with Gray */
[data-theme="dark"] .fab {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.4);
}

[data-theme="dark"] .fab:hover {
    box-shadow: 0 15px 40px rgba(148, 163, 184, 0.6);
}

[data-theme="dark"] .spinner {
    border: 3px solid rgba(148, 163, 184, 0.1);
    border-top-color: #94a3b8;
}

[data-theme="dark"] .card-hover-glow:hover {
    box-shadow: 0 10px 25px -5px rgba(148, 163, 184, 0.4);
}

[data-theme="dark"] .text-primary-500,
[data-theme="dark"] .text-primary-600 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bg-primary-500,
[data-theme="dark"] .bg-primary-600 {
    background-color: #94a3b8 !important;
}

[data-theme="dark"] .border-primary-500 {
    border-color: #94a3b8 !important;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Theme Switcher Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.theme-switcher-container button:hover {
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.4);
}

/* Theme Variables - Interactive & Spacey */

/* LIGHT THEME - Original Professional */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --text-primary: #171717;
    --text-secondary: #525252;
    --accent-primary: #a855f7;
    --accent-secondary: #FF6B9D;
}

[data-theme="light"] body {
    background-color: #ffffff;
    color: #171717;
}

[data-theme="light"] nav {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #e5e5e5;
}

/* DARK THEME - Desaturated Gray Space Aesthetic */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #999999;
    --accent-primary: #b8b8b8;
    --accent-secondary: #888888;
}

[data-theme="dark"] body {
    background: #0a0a0a;
    color: #e5e5e5;
}

[data-theme="dark"] nav {
    background-color: rgba(10, 10, 10, 0.95);
    border-color: #333333;
}

[data-theme="dark"] .glass,
[data-theme="dark"] .bg-white {
    background-color: rgba(26, 26, 26, 0.9) !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .text-neutral-600,
[data-theme="dark"] .text-neutral-700 {
    color: #999999 !important;
}

[data-theme="dark"] .text-neutral-800,
[data-theme="dark"] .text-neutral-900 {
    color: #e5e5e5 !important;
}

[data-theme="dark"] .border-neutral-100,
[data-theme="dark"] .border-neutral-200 {
    border-color: #333333 !important;
}

[data-theme="dark"] .bg-gradient-to-br,
[data-theme="dark"] .from-primary-400 {
    background: linear-gradient(to bottom right, #666666, #999999) !important;
}

/* Desaturate all accent colors in dark mode */
[data-theme="dark"] .text-primary-600,
[data-theme="dark"] .text-accent-coral,
[data-theme="dark"] .text-accent-gold {
    color: #b8b8b8 !important;
}

[data-theme="dark"] .bg-primary-600,
[data-theme="dark"] .bg-accent-coral {
    background-color: #666666 !important;
}



/* SPACEY INTERACTIVE EFFECTS - All Themes */

/* Enhanced hover effects on all cards */
.bg-white:hover,
.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button glow effects */
button:hover {
    box-shadow: 0 10px 30px -5px currentColor;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Link underline animations */
a {
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Spacey padding increases */
.container {
    padding: 4rem 2rem;
}

section {
    margin-bottom: 8rem;
}

/* Floating animation for cards */
@keyframes float-spacey {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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



/* Enhanced click feedback */
button:active {
    transform: scale(0.95);
}

/* Card entrance animations */
@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-animate {
    animation: card-entrance 0.6s ease-out forwards;
}

/* Spacey borders with glow */
.border-glow {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(45deg, #a855f7, #FF6B9D);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s ease;
}

.border-glow:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    button, .btn {
        border: 2px solid currentColor;
    }
}

/* Custom Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #a855f7 0%, #FF6B9D 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD700 100%);
}

.gradient-tertiary {
    background: linear-gradient(135deg, #87CEEB 0%, #a855f7 100%);
}

/* Frosted Glass Card */
.frosted-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Smooth Reveal Animation */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: reveal 0.6s ease forwards;
}

/* Stagger Children Animation */
.stagger-children > * {
    opacity: 0;
    animation: reveal 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.glow-coral {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #a855f7, #FF6B9D, #FFD700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #e0e0e0 40px,
        #f0f0f0 80px
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.4s ease infinite;
}