/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #334155;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  min-height: 100vh;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.header-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 1rem;
}

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

.header-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 2rem;
}

.header-divider {
  border-left: 1px solid #cbd5e1;
  height: 40px;
}

.header-title-section {
  padding-left: 1rem;
}

.header-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.header-title-accent {
  color: #2563eb;
}

.header-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.125rem;
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background: #f1f5f9;
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
}

.mobile-menu-close-icon {
  display: none;
}

.mobile-menu-btn.active .mobile-menu-icon:not(.mobile-menu-close-icon) {
  display: none;
}

.mobile-menu-btn.active .mobile-menu-close-icon {
  display: block;
}

/* ==================== NAVIGATION ==================== */
.desktop-nav {
  display: none;
  gap: 0.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.nav-item,
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover {
  background: #f1f5f9;
}

.nav-item svg,
.mobile-nav-item svg {
  width: 16px;
  height: 16px;
}

.nav-item.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.nav-item.editor-item.active {
  background: #e0e7ff;
  color: #4338ca;
}

.badge {
  font-size: 0.75rem;
  padding: 0.375rem;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 4px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  animation: slideDown 0.2s ease-out;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mobile-nav-item {
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
}

.mobile-nav-item.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.mobile-nav-item.editor-item.active {
  background: #e0e7ff;
  color: #4338ca;
}

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

/* ==================== MAIN CONTENT ==================== */
.main-content {
  max-width: 896px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  text-align: center;
  padding: 1rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 672px;
  margin: 0 auto;
}

/* ==================== SECTION CARDS ==================== */
.section-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.section-card-editor {
  border: 2px solid #a5b4fc;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.section-content {
  padding: 2rem;
}

.section-content-editor {
  background: linear-gradient(to bottom right, #eef2ff, #faf5ff, #ffffff);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 24px;
  height: 24px;
  color: #2563eb;
}

.section-icon-editor {
  background: linear-gradient(to bottom right, #6366f1, #a855f7);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.section-icon-editor svg {
  color: white;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.section-subtitle-editor {
  font-size: 0.875rem;
  color: #6366f1;
  font-weight: 500;
  margin-top: 0.125rem;
}

/* Editor Banner */
.editor-banner {
  background: linear-gradient(to right, #6366f1, #a855f7);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-banner-content svg {
  width: 20px;
  height: 20px;
}

.editor-banner-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==================== TEXT CONTENT ==================== */
.text-content {
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ==================== STEP LIST ==================== */
.step-list {
  list-style: none;
  margin: 1rem 0;
}

.step-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.step-text {
  color: #64748b;
  padding-top: 0.125rem;
}

/* ==================== CTA BUTTON ==================== */
.cta-button-container {
  margin-top: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563eb;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #1d4ed8;
}

.cta-button svg {
  width: 16px;
  height: 16px;
}

/* ==================== INFO BOXES ==================== */
.info-box {
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.info-box-blue {
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.info-box-title {
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box-title svg {
  width: 16px;
  height: 16px;
}

.info-box-text {
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.info-box-list {
  font-size: 0.875rem;
  color: #334155;
  list-style: none;
}

.info-box-list li {
  margin-bottom: 0.25rem;
}

/* ==================== TIP BOXES ==================== */
.tip-box {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.tip-box-info {
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.tip-box-content {
  display: flex;
  gap: 0.75rem;
}

.tip-icon {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.tip-icon-info {
  color: #2563eb;
}

.tip-text {
  font-size: 0.875rem;
  color: #334155;
}

.tip-list {
  list-style: none;
}

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tip-list li:last-child {
  margin-bottom: 0;
}

.tip-list-compact {
  list-style: disc;
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.tip-list-compact li {
  margin-bottom: 0.25rem;
}

.inline-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.inline-code {
  background: white;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: monospace;
}

/* ==================== FEATURE GRID ==================== */
.feature-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f8fafc;
  transition: background 0.2s;
}

.feature-item:hover {
  background: #f1f5f9;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.feature-title {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.feature-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* ==================== VIEW MODES (Navigate Section) ==================== */
.view-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.view-mode-card {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}

.view-mode-card:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.view-mode-icon {
  width: 32px;
  height: 32px;
  color: #2563eb;
  margin: 0 auto 0.75rem;
}

.view-mode-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.view-mode-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* ==================== ACCORDION ==================== */
.accordion {
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.accordion-item-editor {
  border: 2px solid #c7d2fe;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.accordion-title {
  font-weight: 500;
  color: #334155;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.2s;
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.accordion-inner {
  padding-bottom: 1rem;
}

.accordion-section {
  margin-bottom: 1rem;
}

.accordion-section:last-child {
  margin-bottom: 0;
}

.accordion-heading {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.accordion-list {
  list-style: none;
}

.accordion-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.code-snippet {
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: #2563eb;
  font-family: monospace;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.simple-list {
  list-style: none;
  font-size: 0.875rem;
  color: #64748b;
}

.simple-list li {
  margin-bottom: 0.25rem;
}

.accordion-text {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.accordion-text:last-child {
  margin-bottom: 0;
}

.accordion-note {
  padding-top: 0.5rem;
  color: #4f46e5;
}

/* ==================== SUBSECTION ==================== */
.subsection {
  margin: 1.5rem 0;
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1e293b;
  
  /* Spacing and Divider */
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0; /* Light gray underline */
}

.subsection-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

/* ==================== SHARING SECTION ==================== */
.sharing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.sharing-card {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.sharing-icon {
  width: 32px;
  height: 32px;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.sharing-title {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.sharing-description {
  font-size: 0.875rem;
  color: #64748b;
}

.sharing-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.sharing-option:last-child {
  margin-bottom: 0;
}

.sharing-option-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ==================== EDITOR DIVIDER ==================== */
.editor-divider {
  position: relative;
  padding: 3rem 0;
  margin: 2rem 0;
}

.editor-divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #c7d2fe;
}

.editor-divider-badge {
  position: relative;
  max-width: fit-content;
  margin: 0 auto;
  background: linear-gradient(to right, #6366f1, #a855f7);
  padding: 1rem 2rem;
  color: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid white;
}

.editor-divider-badge svg {
  width: 24px;
  height: 24px;
}

.editor-divider-title {
  font-weight: 700;
  font-size: 1.125rem;
}

.editor-divider-subtitle {
  font-size: 0.75rem;
  color: #e0e7ff;
}

/* ==================== UPLOAD METHODS ==================== */
.upload-methods-section {
  margin: 1.5rem 0;
}

.upload-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.upload-method-card {
  padding: 1rem;
  border: 2px dashed #c7d2fe;
  border-radius: 12px;
  background: rgba(238, 242, 255, 0.5);
}

.upload-method-icon {
  width: 32px;
  height: 32px;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.upload-method-title {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.upload-method-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* ==================== EDITOR FEATURE BOX ==================== */
.editor-feature-box {
  /* Old:
  background: linear-gradient(to right, #eef2ff, #faf5ff);
  border: 2px solid #c7d2fe;
  */
  background: linear-gradient(to right, #fef3c7, #fffbeb); /* warm, orangy */
  border: 2px solid #fbbf24; /* amber border to match */
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.editor-feature-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.editor-feature-icon {
  width: 20px;
  height: 20px;
  color: #6366f1;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.editor-feature-icon {
  color: #f59e0b; /* optional: match the orange accent */
}
.editor-feature-title {
  font-weight: 600;
  color: #312e81;
  margin-bottom: 0.5rem;
}

.editor-feature-list {
  list-style: none;
  font-size: 0.875rem;
  color: #334155;
}

.editor-feature-list li {
  margin-bottom: 0.5rem;
}

.editor-feature-list li:last-child {
  margin-bottom: 0;
}

/* ==================== TAGS SECTION ==================== */
.tags-best-practices {
  /* background: linear-gradient(to bottom right, #eef2ff, #faf5ff); */
  background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
  border: 2px solid #c7d2fe;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.tags-best-practices-title {
  font-weight: 600;
  color: #312e81;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tags-best-practices-title svg {
  width: 20px;
  height: 20px;
}

.tags-examples-section {
  margin-bottom: 0.75rem;
}

.tags-examples-label {
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.tags-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  background: white;
  color: #4f46e5;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 2px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tags-best-practices-list {
  list-style: none;
  font-size: 0.875rem;
  color: #334155;
}

.tags-best-practices-list li {
  margin-bottom: 0.25rem;
}

/* ==================== METADATA SECTION ==================== */
.metadata-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.metadata-type-card {
  padding: 1rem;
  border-radius: 12px;
}

.metadata-type-indigo {
  background: linear-gradient(to bottom right, #eef2ff, #ffffff);
  border: 2px solid #c7d2fe;
}

.metadata-type-purple {
  background: linear-gradient(to bottom right, #faf5ff, #ffffff);
  border: 2px solid #d8b4fe;
}

.metadata-type-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
}

.metadata-type-indigo .metadata-type-icon {
  color: #6366f1;
}

.metadata-type-purple .metadata-type-icon {
  color: #a855f7;
}

.metadata-type-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.metadata-type-description {
  font-size: 0.875rem;
  color: #64748b;
}

.metadata-type-description code {
  font-size: 0.75rem;
  background: white;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0;
  /* margin-top: 4rem; */
}

.footer-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.footer-brand-name {
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-brand-text {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
  .header-subtitle {
    display: block;
  }
}

@media (min-width: 768px) {
  .header-logo {
    height: 2.5rem;
  }

  .header-title {
    font-size: 1.25rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }

  .main-content {
    padding: 3rem 1rem;
  }

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

  .section-content {
    padding: 2.5rem;
  }

  .footer-content {
    flex-direction: row;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-brand-header {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .sharing-grid,
  .metadata-types-grid {
    grid-template-columns: 1fr;
  }
}

/* Special warning style for the tag list item */
.tag-warning-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  
  /* Red/Rose Theme */
  background: #fff1f2; 
  border: 1px solid #fda4af; 
  color: #9f1239; 
  
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  list-style: none; /* Removes default bullet point */
}

/* Style the icon inside the warning */
.tag-warning-item i {
  width: 20px;
  height: 20px;
  color: #e11d48;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Ensure the code snippet inside looks good on the red background */
.tag-warning-item .inline-code {
  background: #fff;
  border: 1px solid #fecdd3;
  color: #be123c;
}


/* ==================== FLEXIBLE BOX SYSTEM ==================== */

/* 1. Base Structure - Apply this to the container */
.styled-box {
  padding: 1.25rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid transparent; /* Border color defined by modifier */
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Optional: Add hover effect for interactive boxes */
.styled-box.interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 2. Interior Elements Styling */
.styled-box-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.styled-box-title svg {
  width: 20px;
  height: 20px;
}

/* Remove bottom margin from last child to keep spacing tight */
.styled-box > *:last-child {
  margin-bottom: 0;
}


/* ==================== COLOR THEMES ==================== */

/* --- EXISTING STYLES --- */

/* 1. Blue (Info/General) */
.box-blue {
  background-color: #eff6ff; /* blue-50 */
  border-color: #bfdbfe;     /* blue-200 */
  border: 1px solid #93c5fd;
}

.box-blue .styled-box-title { color: #1e40af; } /* blue-800 */
.box-blue .styled-box-title svg { color: #2563eb; } /* blue-600 */

/* 2. Amber (Pro Tips/Warnings) - Matches your screenshot */
.box-amber {
  background-color: #fffbeb; /* amber-50 */
  border-color: #fcd34d;     /* amber-300 */
  border: 1px solid #92400e;
}
.box-amber .styled-box-title { color: #92400e; } /* amber-800 */
.box-amber .styled-box-title svg { color: #d97706; } /* amber-600 */


/* --- NEW STYLES --- */

/* 3. Purple (Editor/Permissions) */
.box-purple {
  background-color: #faf5ff; /* purple-50 */
  border-color: #d8b4fe;     /* purple-300 */
  border:1px solid #6b21a8;
}
.box-purple .styled-box-title { color: #6b21a8; } /* purple-800 */
.box-purple .styled-box-title svg { color: #9333ea; } /* purple-600 */

/* 4. Green (Success/Best Practice) */
.box-green {
  background-color: #f0fdf4; /* green-50 */
  border-color: #86efac;     /* green-300 */
  border: 1px solid #16a34a;
}
.box-green .styled-box-title { color: #166534; } /* green-800 */
.box-green .styled-box-title svg { color: #16a34a; } /* green-600 */

/* 5. Rose (Danger/Critical Alert) */
.box-rose {
  background-color: #fff1f2; /* rose-50 */
  border-color: #fda4af;     /* rose-300 */
  border: 1px solid #e11d48;
}
.box-rose .styled-box-title { color: #9f1239; } /* rose-800 */
.box-rose .styled-box-title svg { color: #e11d48; } /* rose-600 */


/* 6. Slate (Technical/Neutral/Code) */
.box-slate {
  background-color: #f8fafc; /* slate-50 */
  border-color: #cbd5e1;     /* slate-300 */
}
.box-slate .styled-box-title { color: #334155; } /* slate-700 */
.box-slate .styled-box-title svg { color: #64748b; } /* slate-500 */

/* ==================== IMAGE MODAL ==================== */

/* 1. The Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9); /* Dark blue/slate overlay */
  backdrop-filter: blur(5px); /* Modern blur effect */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

/* 2. Active State (shown via JS) */
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* 3. The Image */
.modal-content-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh; /* Leave room for padding */
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-image {
  transform: scale(1);
}

/* 4. Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
  z-index: 10000;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

/* 5. Pointer for content images */
/* This targets images inside your subsections so users know they are clickable */
.subsection img, 
.step-text img {
  cursor: zoom-in;
  transition: transform 0.2s;
}

.subsection img:hover, 
.step-text img:hover {
  opacity: 0.9;
}

/* ==================== ZOOM HINT ==================== */
.zoom-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;       /* Space between icon and text */
  margin-top: 0.5rem; /* Space between image and hint */
  margin-bottom: 1rem;
  
  font-size: 0.8rem; /* Small, professional text size */
  color: #64748b;     /* Slate-500 (matches your theme) */
  font-weight: 500;
  user-select: none;  /* Prevent text selection when clicking */
}

/* The Magnifying Glass Icon (embedded SVG) */
.zoom-hint::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  /* Cloudinary Blue/Slate mixed color for the icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ==================== TERMINOLOGY SECTION ==================== */
.terminology-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.term-item {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.term-item:last-child {
  border-bottom: none;
}

.term-item:nth-child(even) {
  background: #f8fafc; /* Alternating stripe color */
}

/* The Left Column (The Term) */
.term-name {
  flex: 0 0 200px; /* Fixed width for labels */
  padding: 1rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-right: 1px solid #e2e8f0;
}

.term-name svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

/* The Right Column (The Definition) */
.term-def {
  flex: 1;
  padding: 1rem;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
}

/* Responsive: Stack on mobile */
@media (max-width: 640px) {
  .term-item {
    flex-direction: column;
  }
  
  .term-name {
    flex: none;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
  }
  
  .term-def {
    padding: 1rem;
  }
}
/* ==================== ONBOARDING PAGE SPECIFIC ==================== */

/* 1. Generic Feather Icon Alignment */
.feather {
  vertical-align: middle;
}

/* 2. Fix icons inside the numbered circles in Step List */
.step-number svg {
  width: 16px;
  height: 16px;
  stroke-width: 3px; /* Make the checkmark bolder */
}

/* 3. Fix icons in the Naming Examples (Correct/Incorrect cards) */
.example-label svg {
  width: 16px;
  height: 16px;
}

/* 4. Fix icons in the 2FA Mini Steps */
.mini-step svg {
  width: 24px;
  height: 24px;
  color: #64748b;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* ==================== APP DOWNLOAD LINKS ==================== */
.app-downloads {
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.app-row:last-child {
  margin-bottom: 0;
}

.app-name {
  font-weight: 600;
  color: #334155;
}

.store-links {
  display: flex;
  gap: 0.5rem;
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.store-link:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* Ensure brand SVGs fill the button correctly */
.store-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor; /* Allows color change on hover */
}
