/* Global Styles */
body {
    background-color: #151515;
    color: white;
    min-height: 100vh;
}

/* Footer and bottom bar styling - ensure black on desktop */
@media (min-width: 769px) {
    footer, 
    .bottom-bar,
    .pagination-container,
    .pagination-fixed-bottom,
    .clip-pagination {
        background-color: #000;
        border-top: 1px solid #333;
        color: #aaa;
    }
}

/* Global black navbar styling */
.navbar {
    background-color: #000 !important;
    border-bottom: 1px solid #333;
}

/* Navbar Styles */
.navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.brand-text {
    color: #0057F6 !important;
}

.brand-highlight {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.brand-blue {
    color: #0057F6 !important;
}

.navbar .container {
    position: relative;
}

.navbar-text.catchphrase {
    color: #0057F6 !important;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 87, 246, 0.6);
    animation: glow 2s ease-in-out infinite;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 123, 255, 0.6); }
    50% { text-shadow: 0 0 20px rgba(0, 123, 255, 0.8); }
}

/* Button Styles */
.btn-primary {
    background-color: #0057F6;
    border-color: #0057F6;
}

.btn-outline-light {
    color: white;
    border-color: white;
}

/* Give buttons better contrast against black backgrounds */
.btn-outline-primary {
    border-color: #0057F6;
    color: #0057F6;
}

.btn-outline-primary:hover {
    background-color: #0057F6;
    color: #fff;
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Rain Animation */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 2; /* Lower z-index to go behind content */
    overflow: hidden;
    opacity: 0.4;
}

.rain-item {
    position: absolute;
    color: rgba(41, 98, 255, 0.6); /* Increased brightness */
    animation: fall linear infinite;
    text-shadow: 0 0 15px rgba(41, 98, 255, 0.4);
}

@keyframes fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Only show rain animation on home page */
.streams-page .rain-container {
    display: none;  /* Remove !important to allow override */
}

.streams-page .floating-playbuttons {
    display: none;  /* Remove !important to allow override */
}

/* ⚠️ WARNING: Streams page styles have been moved to streams.css
   Do not modify streams page related styles here.
   See /public/css/streams.css for streams page specific styles */
footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

/* ⚠️ WARNING: Home page styles have been moved to home.css
   Do not modify home page related styles here.
   See /public/css/home.css for home page specific styles */

/* Update modal styles */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

/* Fix modal dialog display */
.modal-dialog {
    pointer-events: auto;
}

/* Pagination Styles - Base styles */
.pagination {
    padding: 10px;
    border-radius: 5px;
}

.pagination .page-link {
    background-color: #2c2c2c;
    border-color: #444;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #0057F6;
    border-color: #0045b3;
}

.pagination .page-item.disabled .page-link {
    background-color: #1a1a1a;
    border-color: #333;
    color: #666;
}

.preview-video[data-loaded="false"] {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.preview-video[data-loaded="true"] {
    opacity: 1;
}

/* Ensure dropdown menus contrast well with black navbar */
.dropdown-menu {
    background-color: #111;
    border: 1px solid #333;
}

.dropdown-item {
    color: #eee;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #222;
    color: #fff;
}

/* Auth notification animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
}

/* Auth Loading States */
.auth-loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.auth-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #0057F6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth authentication state transitions */
.navbar .auth-container {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar .auth-container.transitioning {
    opacity: 0.5;
    transform: scale(0.98);
}