/* 
  TV Time Personal - Design Clean Light & Mobile First
  Estilo minimalista com alto contraste, fundo claro e bottom nav bar
*/

:root {
  --bg-main: #f9fafb;
  --bg-surface: #ffffff;
  --bg-header: #111827;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent-color: #2563eb; /* Clean Blue Accent */
  --accent-purple: #7c3aed;
  --border-light: #e5e7eb;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 70px; /* Espaço para a Bottom Nav Bar no Mobile */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide Scrollbars in Carousels */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Horizontal Snap Carousel */
.carousel-snap {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.carousel-snap > * {
  scroll-snap-align: start;
}

/* Card Styling Clean Light */
.clean-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clean-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Bottom Navigation Bar Fixa */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  padding: 8px 0;
  transition: color 0.15s ease;
  text-align: center;
}

.bottom-nav-item.active {
  color: #111827;
  font-weight: 700;
}

.bottom-nav-item.active i {
  color: #2563eb;
  transform: scale(1.1);
}

/* Sub-Tab Navigation Pills */
.sub-tab-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  background-color: #f3f4f6;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sub-tab-pill:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.sub-tab-pill.active {
  background-color: #111827;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

/* Modal Clean Backdrop */
.clean-modal-backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Star Rating Selector */
.star-rating {
  display: inline-flex;
  gap: 2px;
}
.star-rating .star {
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating .star.active {
  color: #f59e0b;
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-light {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.75rem;
}

/* Prevenção de Auto-Zoom no iOS Safari em Campos de Entrada */
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
textarea,
select {
  font-size: 16px !important;
}

@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Botão Carregar Mais (Estilo Destaque) */
.btn-load-more {
  background-color: #00b4d8;
  color: #ffffff;
  transition: all 0.2s ease;
}
.btn-load-more:hover {
  background-color: #0096c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -4px rgba(0, 180, 216, 0.4);
}
.btn-load-more:active {
  transform: translateY(0);
}

/* Bottom Nav Bar Mobile Active State */
.bottom-nav-item {
  color: #64748b;
  transition: all 0.2s ease;
}
.bottom-nav-item.active {
  color: #2563eb;
  font-weight: 700;
}
.bottom-nav-item.active i {
  transform: translateY(-2px);
  color: #2563eb;
}


