/* Custom Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth transitions for dark mode */
* {
    transition-property: background-color, border-color;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

/* Custom gradient text animation */
.gradient-text {
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Story ring animation */
.story-ring {
    background: linear-gradient(45deg, #f43f5e, #8b5cf6, #f43f5e);
    background-size: 200% 200%;
    animation: gradient-rotate 3s ease infinite;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass morphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.7);
}

/* Like animation */
@keyframes like-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-animation {
    animation: like-bounce 0.3s ease-in-out;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Prevent text selection on UI elements */
nav button,
nav a {
    user-select: none;
    -webkit-user-select: none;
}

/* Image hover zoom */
.image-zoom {
    transition: transform 0.3s ease;
}
.image-zoom:hover {
    transform: scale(1.02);
}

/* Comment input animation */
.comment-input:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-full {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}