@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Discohook Theme Colors */
  --bg-main: #1e1f22;
  --bg-card: #2b2d31;
  --bg-card-hover: #313338;
  --bg-sidebar: #2b2d31;
  --bg-sidebar-hover: #35373c;
  --border-color: #3f4147;
  --text-primary: #f2f3f5;
  --text-secondary: #b5bac1;
  --link-color: #00a8fc;
  --link-hover: #19b2ff;
  
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--link-hover);
}

/* Layout Centralizado Max-Width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

/* Typography Headings */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

h1.main-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

/* Grid System for Cards (Index Page) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Styles */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: #53555b;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* ── Card em Destaque (Discord / Comunidade) ────────────────── */
.card-featured {
  display: block;
  position: relative;
  background: linear-gradient(135deg, rgba(88,101,242,0.15) 0%, rgba(114,137,218,0.08) 100%);
  border: 1.5px solid rgba(88,101,242,0.6);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-decoration: none;
  color: var(--text-primary);
  margin-top: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(88,101,242,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.card-featured:hover {
  border-color: rgba(88,101,242,0.9);
  background: linear-gradient(135deg, rgba(88,101,242,0.22) 0%, rgba(114,137,218,0.12) 100%);
  transform: translateY(-2px);
}

.card-featured-badge {
  display: inline-block;
  background: rgba(88,101,242,0.25);
  border: 1px solid rgba(88,101,242,0.5);
  color: #adb9ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-featured .card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-featured .card-desc {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.card-featured-cta {
  display: inline-block;
  color: #adb9ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-featured:hover .card-featured-cta {
  color: #ffffff;
}



/* Internal Layout (Sidebar + Main Content) */
.internal-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .internal-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Sidebar */
.sidebar {
  width: 100%;
  background-color: var(--bg-sidebar);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: var(--spacing-xl);
  border: 1px solid var(--border-color);
}

@media (max-width: 767px) {
  .sidebar {
    position: static;   /* Remove o sticky no mobile */
    width: 100%;
  }
}

@media (min-width: 768px) {
  .sidebar {
    width: 260px;
    flex-shrink: 0;
  }
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item {
  display: block;
  padding: 8px var(--spacing-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sidebar-nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background-color: rgba(255, 255, 255, 0.05); /* Slight highlight */
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 0 #5865f2; /* Sobrepõe sem ocupar espaço físico ou empurrar o texto */
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0; /* Prevents flex items from spilling over */
}

.main-content h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.main-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 15px;
}

/* Internal Structured Block (Like Action blocks in image 2) */
.structured-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.block-header {
  padding: 12px var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.block-content {
  padding: var(--spacing-md);
}

/* Fields mimicking input/dropdown in Discohook */
.field-group {
  margin-bottom: var(--spacing-md);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-input-mock {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
}

/* Utilities */
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-lg { margin-top: var(--spacing-lg); }

/* ── Download Button ─────────────────────────────────────── */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(88,101,242,0.2) 0%, rgba(88,101,242,0.1) 100%);
  border: 1px solid rgba(88,101,242,0.45);
  color: #adb9ff;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-bottom: var(--spacing-lg);
}
.download-btn:hover {
  background: linear-gradient(135deg, rgba(88,101,242,0.35) 0%, rgba(88,101,242,0.2) 100%);
  border-color: rgba(88,101,242,0.7);
  color: #ffffff;
}
.download-btn .download-icon {
  font-size: 16px;
}

/* ── Benefit List Component ─────────────────────────────────── */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0 var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid #5865F2; /* Destaque lateral Discord-style */
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  transition: transform 0.2s, background-color 0.2s;
}

.benefit-item:hover {
  transform: translateX(4px);
  background-color: var(--bg-card-hover);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(88,101,242,0.15);
  border-radius: 8px;
  margin-right: 14px;
  font-size: 16px;
  flex-shrink: 0;
}


/* ── Checklist Component ─────────────────────────────────── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--spacing-md) 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.15s;
}

.checklist-item label {
  flex: 1;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-item:hover {
  background-color: var(--bg-card-hover);
}

.checklist-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid #4e5058;
  border-radius: 3px;
  background-color: var(--bg-main);
  cursor: pointer;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
}

.checklist-item input[type="checkbox"]:checked {
  background-color: #5865f2;
  border-color: #5865f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10.28 2.28L4 8.56 1.72 6.28a1 1 0 00-1.44 1.44l3 3a1 1 0 001.44 0l7-7a1 1 0 00-1.44-1.44z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.checklist-item input[type="checkbox"]:checked ~ label {
  text-decoration: line-through;
  opacity: 0.5;
}

/* ── Prompt Card Component  ────────────────────────────────── */
.prompt-card {
  position: relative;
  background-color: #1a1b1e;
  border: 1px solid var(--border-color);
  border-left: 3px solid #5865f2;
  border-radius: var(--radius-md);
  margin: var(--spacing-md) 0;
  overflow: hidden;
}

.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(88, 101, 242, 0.06);
}

.prompt-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7289da;
}

.prompt-copy-btn {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #adb9ff;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.prompt-copy-btn:hover {
  background: rgba(88, 101, 242, 0.3);
}

.prompt-copy-btn.copied {
  color: #57f287;
  border-color: rgba(87, 242, 135, 0.4);
  background: rgba(87, 242, 135, 0.08);
}

.prompt-card-body {
  padding: 14px 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: #d4d7dc;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Step Grid Component ─────────────────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: var(--spacing-lg) 0;
}

@media (max-width: 768px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-number {
  background-color: #5865f2;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ── Callout Component ────────────────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin: var(--spacing-md) 0;
  font-size: 14px;
  line-height: 1.55;
}

.callout-info {
  background-color: rgba(0, 168, 252, 0.08);
  border: 1px solid rgba(0, 168, 252, 0.3);
  border-left: 3px solid #00a8fc;
}

.callout-warning {
  background-color: rgba(250, 168, 26, 0.08);
  border: 1px solid rgba(250, 168, 26, 0.3);
  border-left: 3px solid #faa81a;
}

.callout-inspiration {
  background-color: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-left: 3px solid #5865f2;
}

.callout-danger {
  background-color: rgba(218, 55, 60, 0.1);
  border: 1px solid rgba(218, 55, 60, 0.3);
  border-left: 3px solid #da373c;
}

.callout-icon {
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}

.callout-body {
  color: var(--text-secondary);
}

.callout-body strong {
  color: var(--text-primary);
}

.callout-body strong:first-of-type {
  display: block;
  margin-bottom: 4px;
}

/* ── ODS Grid Component ─────────────────────────────────── */
.ods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: var(--spacing-md) 0;
}

@media (max-width: 768px) {
  .ods-grid {
    grid-template-columns: 1fr;
  }
}

.ods-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.ods-card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  background-color: rgba(88, 101, 242, 0.05);
  transform: translateY(-2px);
}

/* ── Modal Component ─────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--bg-card);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  border-top: 4px solid #5865f2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(1);
  transition: transform 0.2s ease;
}

.modal.hidden .modal-content {
  transform: scale(0.95);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 18px;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 12px;
  padding-right: 24px;
  line-height: 1.4;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
