/* Custom CSS for YouTube Clone */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: #ff0000;
}

/* Video Cards */
.video-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.small-video .card-img-top {
    height: 100px;
    object-fit: cover;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: #f8f9fa;
}

/* Hero Section */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Forms */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Comments Section */
.comments-section {
    max-height: 400px;
    overflow-y: auto;
}

.comments-section::-webkit-scrollbar {
    width: 6px;
}

.comments-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.comments-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.comments-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Like Button */
.like-btn.liked {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Subscribe Button */
.subscribe-btn.subscribed {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Video Player */
.ratio-16x9 {
    background-color: #000;
}

/* Profile Pictures */
.rounded-circle {
    object-fit: cover;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-card .card-img-top {
        height: 150px;
    }
    
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Badge Styles */
.badge {
    font-size: 0.75em;
}

/* Card Headers */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Button Group */
.btn-group .btn {
    font-size: 0.875rem;
}

/* Channel Header */
.channel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Video Stats */
.video-stats {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Search Results */
.search-result-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Upload Form */
.upload-form {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Thumbnail Preview */
.thumbnail-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Channel Stats */
.channel-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.channel-stat {
    text-align: center;
}

.channel-stat .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.channel-stat .label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
}
