/* Custom CSS for OneTimeView */

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

/* Smooth transitions for all interactive elements */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.animate-slide-in {
    animation: slideInLeft 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #805ad5;
}

/* Form sections & typography tweaks for better hierarchy */
.bg-card label {
    color: #EDE9FE; /* soft lavender for headings */
}

.bg-card p.text-text-secondary {
    color: #C4B5FD; /* keep secondary but ensure consistency */
}

/* Slight card separation between stacked form sections */
.bg-card > div + div {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .bg-card > div + div {
        padding-top: 0.75rem;
        margin-top: 0.25rem;
    }
}

/* File upload area */
.upload-area {
    border: 2px dashed #6b46c1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area:hover {
    border-color: #805ad5;
    background-color: rgba(107, 70, 193, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.2);
}

.upload-area.dragging {
    border-color: #d946ef;
    background-color: rgba(217, 70, 239, 0.15);
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(217, 70, 239, 0.3);
}

/* Progress bar */
.progress-bar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Copy button animation */
.copy-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.copy-btn:active {
    transform: scale(0.96);
}

/* Toast notification */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pulse animation for view button */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth hover effects for cards */
.bg-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

/* Smooth link transitions */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover effects */
button,
.inline-block {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary CTA buttons */
.bg-cta {
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.35);
}

.bg-cta:hover {
    box-shadow: 0 22px 55px rgba(147, 51, 234, 0.5);
}

.bg-cta:active {
    transform: scale(0.97);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
}

/* Smooth icon transitions */
svg {
    transition: all 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    h1,
    h2,
    h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure hero section fits on mobile screens */
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }

    /* Reduce animation intensity on mobile for performance */
    * {
        transition-duration: 0.2s !important;
    }

    .animate-fade-in,
    .animate-fade-in-up,
    .animate-slide-in,
    .animate-scale-in {
        animation-duration: 0.5s !important;
    }
}