/* Bootstrap Custom Overrides for AI-TV - Light Theme */

/* Light, clean theme */
body {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Modern navbar styling */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e9ecef !important;
}

.navbar-brand {
  font-weight: 700;
  color: #0d6efd !important;
}

/* Fix navbar on mobile */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }

  .navbar .btn {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Modern card styling with subtle shadows */
.card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  border-radius: 0;
}

.card-body {
  padding: 1rem;
}

.card-title {
  color: #212529;
  font-weight: 600;
}

.card-text {
  color: #6c757d;
}

/* Responsive video cards */
.video-card {
  height: 100%;
  transition: transform 0.2s;
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background-color: #e9ecef;
}

/* Fix container padding on mobile */
@media (max-width: 576px) {
  .container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Ensure footer stays at bottom */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background-color: #ffffff;
  border-top: 1px solid #e9ecef;
}

/* Responsive grid adjustments */
@media (max-width: 576px) {
  .row-cols-1 > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Modern alert styling */
.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
  border-radius: 8px;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
  border-radius: 8px;
}

/* Ensure proper text truncation */
.text-truncate-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Fix button spacing on mobile */
@media (max-width: 576px) {
  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-group-mobile .btn {
    width: 100%;
  }
}

/* Modern button styling */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Video player section styling */
.bg-dark {
  background-color: #212529 !important;
}

/* Channel info and video details */
.rounded-circle {
  border: 2px solid #e9ecef;
}

/* Link styling */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Badge styling */
.badge {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Form styling */
.form-control, .form-select {
  border-radius: 8px;
  border-color: #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Comments section */
#comments_list {
  margin-top: 1.5rem;
}

/* Video status indicators */
.position-relative .badge {
  font-size: 0.75rem;
}