/* style.css */

/* Importa a fonte principal */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/*
  DEFINIÇÃO DOS TEMAS (VARIÁVEIS GLOBAIS)
*/
:root {
  --bg-color: #141414;
  --bg-color-secondary: #000000;
  --text-color: #ffffff;
  --text-color-secondary: #e5e5e5;
  --primary-color: #E50914; /* Vermelho Netflix */
  --card-bg: #2f2f2f;
  --header-bg: rgba(20, 20, 20, 0.5); /* Fundo semi-transparente para o header */
  --border-color: #303030;

  /* Cores para o Carrossel Swiper */
  --swiper-theme-color: #ffffff;
  --swiper-navigation-size: 34px;
}

[data-theme="light"] {
  --bg-color: #f4f4f4;
  --bg-color-secondary: #ffffff;
  --text-color: #141414;
  --text-color-secondary: #333333;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.7);
  --border-color: #e0e0e0;
  --swiper-theme-color: #141414; /* Cor do Swiper no tema claro */
}

/* --- ESTILOS GERAIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

main {
  padding-top: 90px; /* Garante espaço para o header fixo */
}

/* --- COMPONENTES GLOBAIS (HEADER E FOOTER) --- */

/* HEADER */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}
[data-theme="light"] .main-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo img { height: 35px; }
.main-nav { margin-left: 2rem; }
.main-nav a { color: var(--text-color-secondary); text-decoration: none; margin-right: 1.2rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--text-color); }

.user-options { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; font-size: 1.2rem; }

.theme-toggle-btn { background: none; border: none; color: var(--text-color); cursor: pointer; font-size: 1.2rem; }
html[data-theme="dark"] .theme-toggle-btn .fa-sun { display: none; }
html[data-theme="light"] .theme-toggle-btn .fa-moon { display: none; }

/* FOOTER */
.main-footer {
  text-align: center;
  padding: 2rem 3rem;
  color: var(--text-color-secondary);
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

/* --- ESTILOS DA PÁGINA INICIAL (HOME) --- */

/* SWIPER CAROUSEL (HERO) */
.hero-carousel {
  width: 100%;
  height: 90vh;
  position: relative;
}
.swiper-slide {
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
}
.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-color-secondary) 10%, transparent 60%), linear-gradient(to top, var(--bg-color-secondary) 5%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 3rem;
  max-width: 50%;
}
.hero-title { font-size: 3.5rem; font-weight: 900; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-description { font-size: 1.2rem; margin: 1.5rem 0; line-height: 1.5; max-width: 600px; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }
.btn { border: none; padding: 0.8rem 1.8rem; border-radius: 4px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: transform 0.2s; }
.btn:hover { transform: scale(1.05); }
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-secondary { background-color: rgba(109, 109, 110, 0.7); color: #fff; margin-left: 1rem; }
.btn .me-2 { margin-right: 0.5rem; }

.swiper-button-next, .swiper-button-prev { color: var(--swiper-theme-color); transition: transform 0.2s, opacity 0.2s; }
.swiper-button-next:hover, .swiper-button-prev:hover { transform: scale(1.2); }
.hero-carousel:hover .swiper-button-next, .hero-carousel:hover .swiper-button-prev { opacity: 1; }
.swiper-pagination-bullet { background: var(--swiper-theme-color); opacity: 0.6; }
.swiper-pagination-bullet-active { opacity: 1; transform: scale(1.2); }

/* LINHAS DE CURSOS (SHELVEs) */
.course-shelves { padding: 0 3rem; margin-top: -10vh; position: relative; z-index: 12; }
.course-row { margin-bottom: 3rem; }
.row-title { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 700; }
.row-content { display: flex; overflow-x: auto; overflow-y: hidden; gap: 15px; padding: 10px 0 20px 0; }
.row-content::-webkit-scrollbar { height: 8px; }
.row-content::-webkit-scrollbar-track { background: #333; border-radius: 4px; }
.row-content::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
.row-content::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

