/* ============================================================
   COREFLIX — Design System
   Paleta: Coral Suave + Minimalista Premium
   ============================================================ */

:root {
  /* Cores base */
  --bg-primary:     #0A0808;
  --bg-surface:     #181414;
  --bg-elevated:    #221C1C;
  --bg-overlay:     rgba(10, 8, 8, 0.85);

  /* Texto */
  --text-primary:   #F5F0F0;
  --text-secondary: #8A8080;
  --text-muted:     #5A5050;

  /* Destaque coral */
  --accent:         #FF7F7F;
  --accent-hover:   #E06B6B;
  --accent-soft:    rgba(255, 127, 127, 0.15);
  --accent-glow:    rgba(255, 127, 127, 0.25);

  /* Status */
  --success:        #6BCB77;
  --error:          #FF6B6B;
  --warning:        #FFB347;

  /* Bordas */
  --border:         #2A2222;
  --border-accent:  rgba(255, 127, 127, 0.3);

  /* Tipografia */
  --font-main:      'Inter', system-ui, -apple-system, sans-serif;

  /* Raios */
  --radius-sm:      6px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --radius-full:    9999px;

  /* Sombras */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent:  0 4px 20px rgba(255, 127, 127, 0.2);

  /* Transições */
  --transition:     all 0.2s ease;
  --transition-slow: all 0.4s ease;

  /* Navbar */
  --navbar-height:  64px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

input, select, textarea {
  font-family: var(--font-main);
  outline: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

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

/* ============================================================
   TIPOGRAFIA
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-md);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   INPUTS
   ============================================================ */

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-success {
  background: rgba(107, 203, 119, 0.15);
  color: var(--success);
}

.badge-dark {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1        { gap: 8px; }
.gap-2        { gap: 16px; }
.gap-3        { gap: 24px; }
.gap-4        { gap: 32px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVIDADE BASE
   ============================================================ */

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .section { padding: 40px 0; }
  h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Footer disclaimer */
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 8px auto 0;
  line-height: 1.6;
  padding: 0 16px;
}
