/* Custom styles for Byborg Enterprise Video Comparison */

/* Dark theme colors */
:root {
    --byborg-dark: #121212;
    --byborg-gray: #1e1e1e;
    --byborg-accent: #3b82f6;
    --byborg-text: #ffffff;
    --byborg-text-secondary: #a0aec0;
}

/* Layout structure */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    overflow: hidden;
}

main {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#video-list {
    overflow-y: auto;
    padding-bottom: 20px;
    padding-left:10px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--byborg-accent) var(--byborg-gray);
}

/* Custom scrollbar for webkit browsers */
#video-list::-webkit-scrollbar {
    width: 8px;
}

#video-list::-webkit-scrollbar-track {
    background: var(--byborg-gray);
    border-radius: 4px;
}

#video-list::-webkit-scrollbar-thumb {
    background-color: var(--byborg-accent);
    border-radius: 4px;
}

/* Improve video item visibility during scrolling */
.video-item {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 4px;
    margin-bottom: 8px;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: var(--byborg-gray);
}

.video-item.active {
    border-left: 3px solid var(--byborg-accent);
    padding-left: calc(1rem - 3px);
    background-color: rgba(59, 130, 246, 0.1);
}

footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

/* Help modal styles */
#help-modal {
    transition: opacity 0.3s ease;
}

#help-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#help-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none !important;
    }
}

/* Provider selection styling */
.provider-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.provider-btn.active {
    color: var(--byborg-accent);
    font-weight: 600;
    border-bottom: 2px solid var(--byborg-accent);
}

.provider-btn:hover {
    color: var(--byborg-accent);
}

/* Video item styling */
.video-item {
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #2d2d2d;
    border-color: #2d2d2d;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    border-color: #3b3b3b;
}

.video-item.active {
    border-color: var(--byborg-accent);
    background-color: rgba(59, 130, 246, 0.2);
}

/* Player styling has been removed - using default Video.js styling */

/* Mobile optimizations */
@media (max-width: 768px) {
    .provider-btn {
        padding: 0.5rem;
    }
    
    .provider-btn img {
        height: 2rem;
    }
    
    /* Player mobile optimizations removed - using default Video.js responsive behavior */
}

/* Player visibility and transition styles removed - using default Video.js behavior */

/* Prevent scrolling when player is active */
body.overflow-hidden {
    overflow: hidden;
}

/* Keyboard navigation focus styling */
.keyboard-focus {
    outline: 2px solid var(--byborg-accent) !important;
    box-shadow: 0 0 8px var(--byborg-accent);
    position: relative;
    z-index: 1;
}

/* Animation for transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

.slide-down {
    animation: slideDown 0.3s ease-out;
}

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

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
