/* Custom styles for ShortHub */

body {
    background-color: #f8f9fa;
    color: #343a40;
}

/* Red and White Theme */
.navbar {
    background-color: #dc3545 !important; /* Primary red */
}

.navbar-brand {
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.btn-primary, .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary:hover, .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.progress-bar {
    background-color: #dc3545;
}

.badge.bg-primary {
    background-color: #dc3545 !important;
}

.table th {
    background-color: #f8f9fa;
    color: #343a40;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.05);
}

footer {
    background-color: #343a40;
    color: #ffffff;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.video-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-thumbnail {
    height: 180px;
    object-fit: cover;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.card {
    border-radius: 10px;
    overflow: hidden;
}

.btn {
    border-radius: 20px;
}

.form-control, .form-select {
    border-radius: 20px;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
}

.progress {
    border-radius: 10px;
    height: 10px;
}

.list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

.list-group-item:first-child {
    border-top: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.list-group-item:last-child {
    border-bottom: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .video-thumbnail {
        height: 150px;
    }
    
    .sticky-sidebar {
        position: static;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Video player */
video {
    border-radius: 10px;
}

/* Footer */
footer {
    margin-top: 50px;
}

/* Ad styling */
.ad-container {
    background-color: #fff;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.ad-label {
    background-color: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        padding: 5px 0;
        text-decoration: none;
        color: #6c757d;
        transition: color 0.3s;
        min-height: 50px;
    }
    
    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: #dc3545;
    }
    
    .mobile-nav-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    
    .mobile-nav-text {
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    /* Adjust main content padding when mobile nav is visible */
    body {
        padding-bottom: 70px;
    }
    
    /* Ensure main content doesn't overlap with fixed nav */
    main.container.mt-4 {
        padding-bottom: 80px;
    }
    
    /* Improve mobile nav appearance */
    .mobile-nav {
        background-color: #fff;
        padding: 12px 0;
    }
    
    /* Style for disabled items */
    .mobile-nav-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}