/* ============================================
   MAIN.CSS - Sistema Modular de Estilos
   Fluência em 6 Meses - Design System
   ============================================

   Estrutura:
   1. Base (variáveis, reset, animações)
   2. Componentes (UI reutilizável)
   3. Layout (estrutura da página)

   ============================================ */

/* ========== BASE ========== */
@import url('./base/variables.css');
@import url('./base/animations.css');

/* ========== COMPONENTES ========== */
@import url('./components/header.css');
@import url('./components/progress.css');
@import url('./components/controls.css');
@import url('./components/search.css');
@import url('./components/month-week.css');
@import url('./components/content-items.css');
@import url('./components/video-cards.css');
@import url('./components/timeline.css');
@import url('./components/complementary.css');
@import url('./components/modal.css');
@import url('./components/footer-pwa.css');
@import url('./components/language-toggle.css');

/* ========== RESET & ESTILOS BASE ========== */
* {
  scrollbar-color: var(--accent-color) var(--primary-bg);
  scrollbar-width: thin;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Body Base */
body {
  background-color: var(--primary-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(79, 172, 254, 0.15) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(142, 45, 226, 0.1) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  font-weight: 400;
  padding: 20px;
  line-height: 1.6;
}

/* Container Principal */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: containerEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Links Simples (estilo padrão) */
.simple-links-container {
  padding: 15px;
}

.links-category {
  margin-bottom: 25px;
}

.links-category h4 {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simple-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.simple-link:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.link-name {
  font-weight: 600;
  font-size: 14px;
}

.link-desc {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.simple-link i {
  color: var(--accent-color);
  font-size: 14px;
  margin-left: 10px;
}

.links-tips {
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(155, 81, 224, 0.1));
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
}

.links-tips p {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
}

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsividade Base */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
}
