/* LinkDrive v2.0 - Enhanced Mobile UI */

/* Base styles */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
}

/* Removed animated background to keep homepage simple */

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

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Text clamping utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Neon NEW badge effect */
.neon-new-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffed4e 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    animation: neon-pulse 2s ease-in-out infinite alternate;
    box-shadow: 
        0 0 8px rgba(255, 107, 53, 0.8),
        0 0 15px rgba(255, 107, 53, 0.6),
        0 0 25px rgba(255, 107, 53, 0.4),
        inset 0 0 8px rgba(255, 237, 78, 0.3);
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 237, 78, 0.6),
        0 0 15px rgba(255, 107, 53, 0.4);
    letter-spacing: 0.5px;
    transform: scale(1);
}

.neon-new-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.6) 0%,
        rgba(247, 147, 30, 0.5) 25%,
        rgba(255, 237, 78, 0.6) 50%,
        rgba(247, 147, 30, 0.5) 75%,
        rgba(255, 107, 53, 0.6) 100%);
    border-radius: inherit;
    z-index: -1;
    animation: neon-border-rotate 3s linear infinite;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 
            0 0 8px rgba(255, 107, 53, 0.8),
            0 0 15px rgba(255, 107, 53, 0.6),
            0 0 25px rgba(255, 107, 53, 0.4),
            inset 0 0 8px rgba(255, 237, 78, 0.3);
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 237, 78, 0.6),
            0 0 15px rgba(255, 107, 53, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 
            0 0 12px rgba(255, 107, 53, 1),
            0 0 20px rgba(255, 107, 53, 0.8),
            0 0 35px rgba(255, 107, 53, 0.6),
            inset 0 0 12px rgba(255, 237, 78, 0.5);
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 1),
            0 0 15px rgba(255, 237, 78, 0.8),
            0 0 25px rgba(255, 107, 53, 0.6);
        transform: scale(1.05);
    }
}

@keyframes neon-border-rotate {
    0% {
        background: linear-gradient(45deg, 
            rgba(255, 107, 53, 0.6) 0%,
            rgba(247, 147, 30, 0.5) 25%,
            rgba(255, 237, 78, 0.6) 50%,
            rgba(247, 147, 30, 0.5) 75%,
            rgba(255, 107, 53, 0.6) 100%);
    }
    25% {
        background: linear-gradient(45deg, 
            rgba(247, 147, 30, 0.5) 0%,
            rgba(255, 237, 78, 0.6) 25%,
            rgba(247, 147, 30, 0.5) 50%,
            rgba(255, 107, 53, 0.6) 75%,
            rgba(247, 147, 30, 0.5) 100%);
    }
    50% {
        background: linear-gradient(45deg, 
            rgba(255, 237, 78, 0.6) 0%,
            rgba(247, 147, 30, 0.5) 25%,
            rgba(255, 107, 53, 0.6) 50%,
            rgba(247, 147, 30, 0.5) 75%,
            rgba(255, 237, 78, 0.6) 100%);
    }
    75% {
        background: linear-gradient(45deg, 
            rgba(247, 147, 30, 0.5) 0%,
            rgba(255, 107, 53, 0.6) 25%,
            rgba(247, 147, 30, 0.5) 50%,
            rgba(255, 237, 78, 0.6) 75%,
            rgba(247, 147, 30, 0.5) 100%);
    }
    100% {
        background: linear-gradient(45deg, 
            rgba(255, 107, 53, 0.6) 0%,
            rgba(247, 147, 30, 0.5) 25%,
            rgba(255, 237, 78, 0.6) 50%,
            rgba(247, 147, 30, 0.5) 75%,
            rgba(255, 107, 53, 0.6) 100%);
    }
}

/* Neon border effect for latest uploads - always fully active like first image */
.neon-border-always-active {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 12px rgba(251, 146, 60, 0.6),
        0 0 20px rgba(251, 146, 60, 0.5),
        0 0 35px rgba(251, 146, 60, 0.4),
        inset 0 0 12px rgba(251, 146, 60, 0.25);
}

.neon-border-always-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(251, 146, 60, 0.4) 0%,
        rgba(139, 92, 246, 0.3) 25%,
        rgba(251, 146, 60, 0.4) 50%,
        rgba(139, 92, 246, 0.3) 75%,
        rgba(251, 146, 60, 0.4) 100%);
    border-radius: 14px;
    z-index: -1;
    animation: neonGlow 2.5s ease-in-out infinite alternate;
}

.neon-border-always-active:hover {
    box-shadow: 
        0 0 12px rgba(251, 146, 60, 0.6),
        0 0 20px rgba(251, 146, 60, 0.5),
        0 0 35px rgba(251, 146, 60, 0.4),
        inset 0 0 12px rgba(251, 146, 60, 0.25);
}

.neon-border-always-active:hover::before {
    background: linear-gradient(45deg, 
        rgba(251, 146, 60, 0.5) 0%,
        rgba(139, 92, 246, 0.4) 25%,
        rgba(251, 146, 60, 0.5) 50%,
        rgba(139, 92, 246, 0.4) 75%,
        rgba(251, 146, 60, 0.5) 100%);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% {
        opacity: 0.5;
        filter: blur(5px);
    }
    100% {
        opacity: 0.8;
        filter: blur(3px);
    }
}

/* Neon glow effect only for poster images - always active */
.neon-poster-only {
    box-shadow: 
        0 0 12px rgba(251, 146, 60, 0.6),
        0 0 20px rgba(251, 146, 60, 0.5),
        0 0 35px rgba(251, 146, 60, 0.4),
        inset 0 0 8px rgba(251, 146, 60, 0.2);
    border-radius: 8px; /* Match the rounded-lg class */
}

.neon-poster-only:hover {
    box-shadow: 
        0 0 15px rgba(251, 146, 60, 0.7),
        0 0 25px rgba(251, 146, 60, 0.6),
        0 0 40px rgba(251, 146, 60, 0.5),
        inset 0 0 8px rgba(251, 146, 60, 0.2);
}

/* Lazy poster container with rounded borders to match image radius */
.lazy-poster-container {
    border-radius: 8px; /* Match the rounded-lg class */
    overflow: hidden;
}

.lazy-poster-container.loaded {
    border-radius: 8px; /* Maintain rounded corners after loading */
}

.neon-title-hover:hover {
    text-shadow: 
        0 0 5px rgba(251, 146, 60, 0.8),
        0 0 10px rgba(251, 146, 60, 0.6),
        0 0 15px rgba(251, 146, 60, 0.4);
}

/* Mobile loading animations */
@keyframes mobileSpinnerRotation {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Premium crown rotation animation */
@keyframes premiumCrownRotate {
    0% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    25% {
        transform: rotate(5deg) scale(1.05);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    }
    50% {
        transform: rotate(0deg) scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
    }
    75% {
        transform: rotate(-5deg) scale(1.05);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    }
    100% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
}

.premium-crown {
    animation: premiumCrownRotate 3s ease-in-out infinite;
}

.mobile-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.loader-icon {
    animation: mobileSpinnerRotation 2s infinite linear;
    margin-bottom: 1rem;
}

/* Enhanced loading dots for mobile */
@keyframes mobileDotBounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.loading-dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: mobileDotBounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Mobile card animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInUp 0.4s ease-out;
}

/* Touch interactions */
.active\:bg-dark-border:active {
    background-color: #3a3a3a !important;
    transform: scale(0.98);
}

.active\:scale-95:active {
    transform: scale(0.95);
}

/* Enhanced quality buttons */
.quality-button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4500 100%);
    border: none;
    border-radius: 20px;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quality-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quality-button:hover::before {
    left: 100%;
}

.quality-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.quality-button:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Enhanced action buttons - smaller size */
.action-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.stream-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3);
}

.stream-button:hover {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.play-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.play-button:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Enhanced card styling */
.movie-card {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Glowing effects */
.glow-orange {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.glow-green {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Enhanced loading animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.loading-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Removed enhanced search styling to keep original simple design */

/* Modal enhancements */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Copy link animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

/* Trending section styles */
.trending-movie-card {
    transition: all 0.3s ease;
}

.trending-movie-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.trending-search-tag {
    transition: all 0.2s ease;
}

.trending-search-tag:hover {
    transform: scale(1.05);
}

/* Line clamp utility for trending movies */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Emoji flash animation for placeholders */
@keyframes emojiFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.emoji-flash {
    animation: emojiFlash 2s infinite ease-in-out;
}

/* Animated download icon */
@keyframes pulseDownload {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes bounceDownload {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.animated-download {
    animation: pulseDownload 2s infinite ease-in-out;
    transition: all 0.3s ease;
}

.animated-download:hover {
    animation: bounceDownload 0.6s ease-in-out;
    transform: scale(1.1);
}

.pulse-icon {
    animation: pulseDownload 1.5s infinite ease-in-out;
}

/* Search input enhancements - Orange neon border with pulse */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.3), 0 0 20px rgba(249, 115, 22, 0.1), inset 0 0 10px rgba(249, 115, 22, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.5), 0 0 30px rgba(249, 115, 22, 0.2), inset 0 0 15px rgba(249, 115, 22, 0.2);
    }
}

#searchInput {
    border: 2px solid #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3), 0 0 20px rgba(249, 115, 22, 0.1), inset 0 0 10px rgba(249, 115, 22, 0.1);
    animation: neonPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    color: #fbbf24;
}

#searchInput::placeholder {
    color: #f97316;
}

#searchInput:hover {
    border-color: #ea580c;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6), 0 0 40px rgba(249, 115, 22, 0.3), inset 0 0 15px rgba(249, 115, 22, 0.2);
    animation: none;
}

#searchInput:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.8), 0 0 50px rgba(249, 115, 22, 0.4), inset 0 0 20px rgba(249, 115, 22, 0.3);
    outline: none;
    animation: none;
}

/* Blinking Eye Animation */
.blink-eye {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    animation: eyeGlow 3s ease-in-out infinite;
}

.eyeball {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f0f0);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pupil {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 35% 35%, #333333, #000000);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pupilMove 4s ease-in-out infinite;
}

.eyelid {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 50%;
    transform: scaleY(0);
    transform-origin: center;
    animation: blink 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(0);
    }
    93%, 97% {
        transform: scaleY(1);
    }
}

@keyframes eyeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.9), 0 0 35px rgba(251, 191, 36, 0.4);
    }
}

@keyframes pupilMove {
    0%, 20% {
        transform: translate(-50%, -50%);
    }
    25%, 35% {
        transform: translate(-40%, -45%);
    }
    40%, 60% {
        transform: translate(-50%, -50%);
    }
    65%, 75% {
        transform: translate(-60%, -55%);
    }
    80%, 100% {
        transform: translate(-50%, -50%);
    }
}

/* Footer message animations */
#footerMessage {
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

/* Modal animations */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#downloadModal .bg-black\/70 {
    animation: backdropFadeIn 0.3s ease-out;
}

#downloadModal .bg-dark-bg {
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Toast animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#toast {
    animation: toastSlideIn 0.3s ease-out;
}

/* Copy button success state */
.copy-success {
    background-color: #10b981 !important;
    transform: scale(1.05);
}

/* Purple gradient text */
.bg-gradient-to-r.from-accent-purple.to-accent-purple-light.bg-clip-text.text-transparent {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive improvements */
@media (max-width: 375px) {
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-xl {
        font-size: 1.1rem;
    }
    
    .text-lg {
        font-size: 1rem;
    }
}

/* Smooth state transitions */
.results-enter {
    opacity: 0;
    transform: translateY(20px);
}

.results-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Loading state improvements */
.search-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Neon border effect for pagination and general use */
.neon-border {
    position: relative;
    transition: all 0.3s ease;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(251, 146, 60, 0.3) 0%,
        rgba(139, 92, 246, 0.2) 25%,
        rgba(251, 146, 60, 0.3) 50%,
        rgba(139, 92, 246, 0.2) 75%,
        rgba(251, 146, 60, 0.3) 100%);
    border-radius: inherit;
    z-index: -1;
    animation: neonFlicker 2s ease-in-out infinite alternate;
}

.neon-border:hover::before {
    animation: neonFlicker 1.5s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0% {
        opacity: 0.3;
        filter: blur(2px);
    }
    100% {
        opacity: 0.6;
        filter: blur(1px);
    }
}

/* Card hover effects for desktop */
@media (hover: hover) {
    .bg-dark-card:hover {
        background-color: #333333;
        border-color: #8b5cf6;
    }
}

/* Prevent zoom on iOS double tap */
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    touch-action: manipulation;
}

/* Prevent text selection on interactive elements */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better text rendering */
.font-mono {
    font-feature-settings: 'liga' 0, 'calt' 0;
}

/* Safe area handling for iPhone X+ */
@supports (padding-top: env(safe-area-inset-top)) {
    .sticky.top-0 {
        padding-top: env(safe-area-inset-top);
    }
    
    .pb-20 {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    * {
        color-scheme: dark;
    }
}

/* Auto-correction notification styles */
.correction-notification {
    animation: slideInFromTop 0.3s ease-out;
    background: linear-gradient(135deg, #2a2a2a 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced search bar for auto-correction feedback */
.search-corrected {
    border-color: rgba(249, 115, 22, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2) !important;
}

/* Search Reminder Box Styles */
#searchReminderBox {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    animation: reminderPulse 4s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchReminderBox:hover {
    animation-play-state: paused;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

@keyframes reminderPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
        border-color: rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.5), 0 0 35px rgba(239, 68, 68, 0.3);
        border-color: rgba(249, 115, 22, 0.5);
    }
}

#reminderEmoji {
    animation: emojiFloat 2s ease-in-out infinite;
}

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

/* Search Reminder Messages Styles */
.search-reminder-message {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-reminder-message:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.search-reminder-message .bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}