/**
 * VibeStream - Custom Stylesheet
 *
 * This file contains custom CSS rules that complement the Tailwind CSS framework.
 * It's used for defining animations, custom component styles, and other visual
 * enhancements that are either too complex or not possible with utility classes alone.
 *
 * @package     VibeStream
 * @subpackage  Assets
 * @author      Your Name
 * @version     1.0.0
 */

/* Apply base styles to the body for a smooth experience */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Page & Content Transitions --- */

/* This is the main content area that gets replaced by the SPA navigation.
   The transition creates a smooth fade-in/fade-out effect. */
#main-content {
    transition: opacity 0.3s ease-in-out;
}

/* An animation to apply to elements as they enter the page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}


/* --- Video Card Styling --- */

/* Adds a subtle hover effect to video preview cards on the homepage. */
.video-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
}
.dark .video-card:hover {
     box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -2px rgba(99, 102, 241, 0.2);
}


/* --- Custom Scrollbar --- */

/* For Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* gray-100 */
}
.dark ::-webkit-scrollbar-track {
    background: #1f2937; /* gray-800 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* gray-300 */
    border-radius: 10px;
    border: 2px solid #f1f5f9; /* gray-100 */
}
.dark ::-webkit-scrollbar-thumb {
    background: #4b5563; /* gray-600 */
    border: 2px solid #1f2937; /* gray-800 */
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* gray-400 */
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280; /* gray-500 */
}


/* --- Form Elements Styling --- */

/* Style for the file upload drop zone */
.drag-drop-area {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.drag-drop-area.is-dragging {
    background-color: #e0e7ff; /* indigo-100 */
    border-color: #6366F1; /* primary */
}
.dark .drag-drop-area.is-dragging {
    background-color: #3730a3; /* indigo-800 */
}

/* Placeholder for video progress bar */
.progress-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb; /* gray-200 */
}
.dark .progress-bar {
    background: #374151; /* gray-700 */
}

.progress-bar::-webkit-progress-bar {
    background: #e5e7eb; /* gray-200 */
    border-radius: 5px;
}
.dark .progress-bar::-webkit-progress-bar {
    background: #374151; /* gray-700 */
}

.progress-bar::-webkit-progress-value {
    background: #6366F1; /* primary */
    border-radius: 5px;
    transition: width 0.3s ease;
}
.progress-bar::-moz-progress-bar {
    background: #6366F1; /* primary */
    border-radius: 5px;
    transition: width 0.3s ease;
}
