/* Dark Mode Theme with Blue/Black Gradients */
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #05101a 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Navigation bar styling */
.navbar {
    background: linear-gradient(to right, #000000, #081830) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #002255;
}

.navbar-brand {
    color: #0b1d2a !important; /* This might be too dark on dark bg? Wait. The original was #2a0b1d (dark pinkish). Let's make it bright blue or white with shadow. */
    color: #e0e0e0 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 127, 255, 0.5);
}

.navbar-dark .navbar-nav .nav-link {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #33aaff;
}

/* Card styling */
.card {
    background: linear-gradient(145deg, #0d1117, #05080c);
    border-color: #002244;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-header {
    background: linear-gradient(to right, #15202d, #0d1117);
    border-color: #002244;
}

.card-body {
    background-color: transparent;
}

.card-footer {
    background-color: rgba(10, 20, 30, 0.7);
    border-color: #002244;
}

/* Container styling */
.container {
    background-color: rgba(10, 15, 20, 0.4);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Text colors */
.text-dark {
    color: #e0e0e0 !important;
}

.text-muted {
    color: #88aabb !important;
}

/* Form controls */
.form-control {
    background-color: #15202d;
    border-color: #003366;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #15202d;
    border-color: #0055aa;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(0, 65, 130, 0.25);
}

/* Buttons */
.btn-outline-light {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

.btn-outline-light:hover {
    background: linear-gradient(to right, #003366, #004488);
    border-color: #004488;
    color: #ffffff;
}

/* Primary buttons */
.btn.btn-primary {
    background: linear-gradient(to right, #004488, #0066cc) !important;
    border-color: #0055aa !important;
    color: #ffffff !important;
    background-image: none !important;
}

.btn.btn-primary:hover, .btn.btn-primary:focus {
    background: linear-gradient(to right, #0055aa, #0077dd) !important;
    border-color: #0066cc !important;
    color: #ffffff !important;
    background-image: none !important;
}

.btn.btn-outline-primary {
    background: transparent !important;
    border-color: #0055aa !important;
    color: #33aaff !important;
    background-image: none !important;
}

.btn.btn-outline-primary:hover, .btn.btn-outline-primary:focus {
    background: linear-gradient(to right, #004488, #0066cc) !important;
    border-color: #0055aa !important;
    color: #ffffff !important;
    background-image: none !important;
}

/* Links */
a {
    color: #33aaff;
    transition: color 0.3s ease;
}

a:hover {
    color: #66ccff;
    text-decoration: none;
}

a.text-dark {
    color: #e0e0e0 !important;
}

a.text-dark:hover {
    color: #ffffff !important;
}

/* Tables */
.table {
    color: #e0e0e0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 40, 80, 0.1);
}

.table td {
    color: rgb(255, 255, 255);
}

/* Dropdown menus */
.dropdown-menu {
    background: linear-gradient(145deg, #15202d, #0d1117);
    border-color: #003366;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #003366;
    color: #ffffff;
}

.dropdown-divider {
    border-top-color: #003366;
}

/* Video cards */
.video-card {
    background: linear-gradient(145deg, #0d1117, #05080c);
    border-color: #002244;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-duration {
    background-color: rgba(0, 40, 80, 0.7);
    color: #ffffff;
}

/* Pagination */
.pagination .page-link {
    background-color: #0d1117;
    border-color: #003366;
    color: #e0e0e0;
}

.pagination .page-link:hover {
    background-color: #003366;
    border-color: #004488;
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background-color: #004488;
    border-color: #004488;
}

/* Alerts */
.alert-danger {
    background-color: #1c263d;
    border-color: #204084;
    color: #86a0ea;
}

.alert-success {
    background-color: #1c3d1c;
    border-color: #2a8754;
    color: #75b798;
}

/* Modal */
.modal-content {
    background: linear-gradient(145deg, #15202d, #0d1117);
    border-color: #003366;
}

.modal-header, .modal-footer {
    border-color: #003366;
}

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

::-webkit-scrollbar-track {
    background: #05080c;
}

::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 5px;
}

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

/* Footer styling */
footer {
    background: linear-gradient(to right, #000000, #081830) !important;
    border-top: 1px solid #002255;
    margin-top: 30px !important;
}

/* Hover effects */
.btn, .nav-link, .card, .dropdown-item {
    transition: all 0.3s ease;
}

/* Video player styling */
.video-container {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.custom-play-button i {
    color: #fff;
    font-size: 40px;
}

.custom-play-button:hover {
    background-color: rgba(0, 127, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}
#videoPlayer {
    max-height: 70vh;
    width: 100%;
    background-color: #000;
}

/* Related Videos Styling */
.related-videos-card {
    border-radius: 8px;
    overflow: hidden;
    border-color: #002255;
}

.related-videos-card .card-header {
    background: linear-gradient(to right, #081830, #000000);
    padding: 12px 15px;
}

.related-video-item {
    transition: all 0.2s ease;
    background: linear-gradient(145deg, #0d1117, #05080c);
}

.related-video-item:hover {
    background: linear-gradient(145deg, #15202d, #0d1117);
}

.related-video-item:last-child {
    border-bottom: none !important;
}

.related-video-item img {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hover-red:hover {
    color: #33aaff !important; /* Changed from red/pink to blue */
    text-decoration: none;
}

.duration-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 1px 4px;
    border-radius: 3px;
}

.video-meta, .video-stats {
    line-height: 1.2;
}

/* Responsive share buttons */
@media (max-width: 576px) {
    .share-buttons .btn, #likeBtn {
        padding: 0.375rem 0.5rem;
    }
    
    .share-buttons .btn i, #likeBtn i {
        font-size: 1.1rem;
    }
}
