/* ==========================================================================
   YouSocial - YouTube Content Generator Stylesheet
   Modern, Clean, High-Contrast UI for Creators
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-red: #ff0033;
  --primary-red-hover: #e6002e;
  --primary-red-active: #cc0028;
  --primary-red-light: #fff0f3;
  --primary-red-subtle: rgba(255, 0, 51, 0.08);

  /* Dark Neutrals */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Surfaces & Backgrounds */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-focus: #ff0033;
  --border-card: #e2e8f0;

  /* Accents & Status */
  --accent-green: #10b981;
  --accent-green-light: #ecfdf5;
  --accent-blue: #3b82f6;
  --accent-blue-light: #eff6ff;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fffbeb;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-red-hover);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1 0 auto;
  padding: 2.5rem 0 4rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.08s ease-out, transform 0.08s ease-out;
  will-change: opacity, transform;
}

.main-content.page-transitioning {
  opacity: 0.85;
  transform: translateY(2px);
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
  border-radius: var(--radius-md);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 0, 51, 0.3);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--primary-red);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-red);
  background-color: var(--primary-red-subtle);
}

.nav-link.active {
  color: var(--primary-red);
  background-color: var(--primary-red-light);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--primary-red);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.header-cta:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 51, 0.25);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 0, 51, 0.15);
}

.hero-badge svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-red);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--primary-red);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.sample-topics {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sample-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sample-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-chip:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background-color: var(--primary-red-light);
}

/* Card & Form Container */
.app-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

.card-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-md);
}

.card-icon-badge svg {
  width: 1.2rem;
  height: 1.2rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.form-label-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-label .required {
  color: var(--primary-red);
  margin-left: 0.2rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
  box-sizing: border-box;
  min-height: 46px;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2.25'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.15rem;
  padding-right: 2.6rem;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  position: relative;
  z-index: 1;
}

.form-select:hover {
  border-color: #cbd5e1;
  background-color: #fafbfc;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.15);
}

.form-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Preset Template Selector Bar */
.preset-selector-card {
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.04) 0%, rgba(255, 240, 243, 0.6) 100%);
  border: 1px dashed rgba(255, 0, 51, 0.25);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.preset-label svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary-red);
}

.preset-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preset-select {
  background-color: #ffffff !important;
  border-color: rgba(255, 0, 51, 0.2);
  font-weight: 600;
  color: var(--text-dark);
}

.preset-select:hover {
  border-color: var(--primary-red);
}

/* Dropdown Component */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.dropdown-chevron {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 230px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.45rem;
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  animation: dropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.dropdown-item svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
}

.dropdown-item:hover svg {
  color: var(--primary-red);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 0.3rem 0;
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.topic-input {
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
  min-height: 85px;
}

.input-counter-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Collapsible Advanced Settings */
.advanced-accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-page);
  margin: 1.25rem 0 1.5rem;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background-color var(--transition-fast);
}

.accordion-toggle:hover {
  background-color: var(--bg-card-subtle);
}

.accordion-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.accordion-title-group svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary-red);
}

.accordion-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 1.25rem;
  display: block;
}

.accordion-body.hidden {
  display: none;
}

/* Primary Button */
.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff0033 0%, #e6002e 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.35);
  transition: all var(--transition-normal);
}

.btn-generate:hover:not(:disabled) {
  background: linear-gradient(135deg, #e6002e 0%, #cc0028 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 51, 0.4);
}

.btn-generate:active:not(:disabled) {
  transform: translateY(0);
}

.btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-generate svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Loading State */
.loading-container {
  display: none;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.loading-container.active {
  display: block;
}

.spinner-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-red-light);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-red);
  width: 1.5rem;
  height: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.loading-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto;
}

/* Error Banner */
.alert-banner {
  display: none;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
}

.alert-banner.active {
  display: flex;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-error svg {
  color: #dc2626;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Results UI */
.results-section {
  display: none;
}

.results-section.active {
  display: block;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.results-title-group h2 {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.results-title-group h2 svg {
  color: var(--primary-red);
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--text-muted);
}

.btn-secondary svg {
  width: 1rem;
  height: 1rem;
}

/* Result Blocks */
.result-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  transition: box-shadow var(--transition-fast);
}

.result-card:hover {
  box-shadow: var(--shadow-md);
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.result-heading-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.result-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.result-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.result-meta-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* Copy Buttons */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
  background-color: var(--primary-red-light);
}

.btn-copy.copied {
  color: #ffffff;
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-copy svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* 1. Titles Section */
.titles-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.title-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.title-item-card:hover {
  border-color: #cbd5e1;
  background-color: #ffffff;
}

.title-text-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.title-index {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: #e2e8f0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.title-content {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.title-meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.char-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.char-badge.safe {
  background-color: #ecfdf5;
  color: #065f46;
}

.char-badge.warn {
  background-color: #fffbeb;
  color: #92400e;
}

/* 2. Description Section */
.desc-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
}

.desc-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.desc-stats-group {
  display: flex;
  gap: 1.25rem;
}

.desc-stat strong {
  color: var(--text-dark);
}

/* 3. Tags & Keywords Section */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tag-chip:hover {
  background-color: var(--primary-red-light);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.tag-chip svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.6;
}

.hashtag-chip {
  display: inline-flex;
  align-items: center;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hashtag-chip:hover {
  background-color: #dbeafe;
}

/* 4. Hook Section */
.hook-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid #fed7d7;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.hook-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hook-pill {
  background-color: #fee2e2;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.hook-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.6;
}

/* 5. Thumbnail Text Section */
.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.thumbnail-idea-card {
  background-color: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  border: 1px solid #1e293b;
}

.thumbnail-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ff4d6d;
}

.thumbnail-text-content {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0.5rem 0;
  line-height: 1.25;
}

.thumbnail-card-footer {
  display: flex;
  justify-content: flex-end;
}

.thumbnail-idea-card .btn-copy {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.thumbnail-idea-card .btn-copy:hover {
  background: #ffffff;
  color: #0f172a;
}

/* 6. Video Outline Section */
.outline-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.outline-timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.45rem;
  width: 2px;
  background-color: var(--border-light);
}

.outline-step {
  position: relative;
  margin-bottom: 1.25rem;
}

.outline-step:last-child {
  margin-bottom: 0;
}

.outline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  background-color: var(--primary-red);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-red-light);
}

.outline-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.outline-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.outline-step-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Static Content Pages (About, Privacy, Terms, Disclaimer, Contact) */
.page-header {
  text-align: center;
  padding: 2rem 1rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.content-article {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.info-callout {
  background-color: var(--accent-blue-light);
  border-left: 4px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  color: #1e3a8a;
}

.warning-callout {
  background-color: #fffbeb;
  border-left: 4px solid var(--accent-amber);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  color: #92400e;
}

/* Feature Grid for About Page */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature-box-icon {
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-box-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.feature-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.925rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  max-width: 380px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-copy {
  color: #64748b;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success svg {
  color: #10b981;
}

.toast.toast-error {
  background-color: #991b1b;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .col-8, .col-6, .col-4, .col-3 {
    grid-column: span 12;
  }

  .hero-title {
    font-size: 2rem;
  }

  .app-card {
    padding: 1.5rem;
  }

  .content-article {
    padding: 1.75rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .header-cta {
    display: none;
  }

  .title-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .title-meta-right {
    width: 100%;
    justify-content: space-between;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
