/* Brat Generator - light, textibox-aligned styling */

:root {
  --brat-green: #8ace00;
  --brat-pink: #ff7fd5;
  --brat-purple: #b468ff;
  --brat-ink: #0f0f0f;
  --brat-card: #ffffff;
  --brat-soft: #f6f7f0;
  --brat-border: #e4e7d9;
  --brat-muted: #6c6f63;
  --brat-shadow: 0 18px 70px rgba(18, 20, 10, 0.08);
}

.brat-generator {
  padding: 3.5rem 0 4rem;
  background: #fafafa;
}

.brat-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brat-title {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 4vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brat-ink);
}

.brat-description {
  max-width: 760px;
  margin: 0 auto;
  color: var(--brat-ink);
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.88;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  background: #f0f0f0;
  border: 1px solid #000;
  color: #404040;
  font-size: 13px;
  font-weight: 600;
}

.brat-app {
  background: #ffffff;
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #000;
  overflow: visible;
  max-width: 1200px;
  margin: 0 auto;
}

.mode-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border-bottom: 1px solid #000;
}

.mode-tab {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  background: #f0f0f0;
  border: 1px solid #000;
  border-radius: 0;
  font-weight: 700;
  color: #0f0f0f;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-tab:hover {
  background: #e3e3e3;
  color: #000;
}

.mode-tab.active {
  background: #000;
  color: white;
  border-color: #000;
}

.tab-icon {
  font-size: 1.1rem;
}

.tab-label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brat-content {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(360px, 0.75fr);
  align-items: start;
  min-height: 0;
}

.control-panel {
  border-right: 1px solid #000;
  background: #ffffff;
}

.panel-content {
  display: none;
  padding: 1.2rem 1.3rem 1.35rem;
  gap: 1rem;
}

.panel-content.active {
  display: block;
}

.control-group {
  margin-bottom: 1.4rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brat-ink);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

textarea,
select {
  width: 100%;
  border: 1px solid #000;
  border-radius: 2px;
  background: #ffffff;
  color: var(--brat-ink);
  font-family: inherit;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

textarea {
  min-height: 120px;
  padding: 1.05rem 1.1rem;
  line-height: 1.6;
  resize: vertical;
}

textarea::placeholder {
  color: #9aa08c;
}

select {
  padding: 0.9rem 1.1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(20,20,20,0.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

textarea:focus,
select:focus {
  outline: none;
  border-color: #000;
  background: white;
  box-shadow: none;
}

.color-presets {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.color-btn {
  width: 46px;
  height: 46px;
  border-radius: 2px;
  border: 1px solid #000;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  background: white;
  box-shadow: none;
}

.color-picker-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.color-picker {
  width: 46px;
  height: 46px;
  border-radius: 2px;
  border: 1px solid #000;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  background: white;
  box-shadow: none;
  position: relative;
}

.color-picker-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brat-ink);
  pointer-events: none;
}

.color-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 #000;
}

.color-picker-wrapper:hover .color-picker {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 #000;
}

.color-picker:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 #000;
}

.color-btn.active {
  border-color: #000;
  box-shadow: 4px 4px 0 #000;
}

.color-btn.active::after {
  content: '✓';
  display: block;
  text-align: center;
  color: var(--brat-ink);
  font-size: 14px;
  font-weight: 700;
}

.color-picker {
  padding: 0;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="range"] {
  flex: 1;
  appearance: none;
  height: 6px;
  background: #d9d9d9;
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brat-ink);
  border: 2px solid #000;
  box-shadow: none;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brat-ink);
  border: 2px solid #000;
  box-shadow: none;
  cursor: pointer;
}

.slider-value {
  min-width: 46px;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  background: #f0f0f0;
  border: 1px solid #000;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.alignment-buttons,
.fit-buttons,
.style-buttons {
  display: flex;
  gap: 0.6rem;
}

.align-btn,
.fit-btn,
.style-btn {
  flex: 1;
  height: 42px;
  border: 1px solid #000;
  border-radius: 2px;
  background: white;
  color: var(--brat-ink);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.align-btn:hover,
.fit-btn:hover,
.style-btn:hover {
  color: var(--brat-ink);
  border-color: var(--brat-ink);
}

.align-btn.active,
.fit-btn.active,
.style-btn.active {
  background: var(--brat-ink);
  color: white;
  border-color: #000;
  box-shadow: 4px 4px 0 #000;
}

.style-btn {
  font-size: 16px;
  font-weight: 700;
}

.fit-btn {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.text-layer-tabs {
  display: flex;
  gap: 0.5rem;
}

.text-layer-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid #000;
  border-radius: 2px;
  background: white;
  color: var(--brat-ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.text-layer-tab:hover {
  background: #f0f0f0;
  transform: translate(-1px, -1px);
}

.text-layer-tab.active {
  background: var(--brat-ink);
  color: white;
  box-shadow: 3px 3px 0 #000;
}

.text-layer-tab.has-content {
  border-color: var(--brat-green);
  border-width: 2px;
}

.upload-area {
  border: 1px dashed #000;
  border-radius: 2px;
  padding: 1.45rem;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.upload-area:hover {
  border-color: #000;
  background: #f5f5f5;
  box-shadow: none;
  transform: translate(-2px, -2px);
}

.upload-area.dragover {
  border-color: var(--brat-ink);
  background: rgba(0, 0, 0, 0.02);
}

.upload-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--brat-muted);
}

.upload-text {
  font-weight: 700;
  color: var(--brat-ink);
  margin-bottom: 0.35rem;
}

.upload-subtext {
  font-size: 13px;
  color: var(--brat-muted);
}

.upload-tip {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(138, 206, 0, 0.1);
  border: 1px solid rgba(138, 206, 0, 0.3);
  border-radius: 3px;
  font-size: 12px;
  color: #3a5c00;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

.toggle-row {
  display: none;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: #0f0f0f;
  margin-top: 0.6rem;
}

.inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-actions button {
  border: 1px solid #000;
  background: white;
  color: var(--brat-ink);
  padding: 0.55rem 0.9rem;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.inline-actions button:hover {
  transform: translate(-1px, -1px);
}

.preview-panel {
  padding: 1.2rem;
  background: #ffffff;
  position: sticky;
  top: 90px;
}

.canvas-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #000;
  border-radius: 2px;
  min-height: 360px;
  max-height: 800px;
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 0.6rem;
}

.text-layers-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  display: none; /* Hidden by default, shown only in image mode */
  /* Position and size are set dynamically by JS to match canvas exactly */
}

.html-text-layer {
  position: absolute;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: center;
  transform-origin: center center;
  transition: none;
  line-height: 1.1;
  /* max-width is set dynamically by JS to match Canvas wrapping */
  /* No padding - positioning is calculated to match canvas exactly */
}

.html-text-layer.dragging {
  cursor: grabbing;
}

.html-text-layer.active {
  outline: 2px dashed #00FF00;
  outline-offset: 5px;
}

.canvas-container.transparent-bg {
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #fff;
}

#brat-canvas {
  max-width: 100%;
  max-height: 720px;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  border: 2px solid #000;
  object-fit: contain;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brat-muted);
  gap: 0.35rem;
  pointer-events: none;
}

.empty-state.hidden {
  opacity: 0;
}

.empty-icon {
  font-size: 2.8rem;
}

.empty-text {
  font-weight: 700;
  color: var(--brat-ink);
}

.empty-subtext {
  font-size: 14px;
  color: var(--brat-muted);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
  min-width: 150px;
  height: 48px;
  border-radius: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.action-buttons .btn-secondary {
  background: #f0f0f0;
  color: #0f0f0f;
  border: 1px solid #000;
}

.action-buttons .btn-secondary:hover {
  border-color: #000;
  transform: translate(-1px, -1px);
}

.advanced-toggle {
  width: 100%;
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  border: 1px solid #000;
  background: #f5f5f5;
  font-weight: 600;
  color: var(--brat-ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease;
}

.advanced-toggle:hover {
  transform: translate(-1px, -1px);
}

.advanced-section {
  display: none;
  border-top: 1px dashed var(--brat-border);
  padding-top: 0.5rem;
}

.advanced-section.open {
  display: block;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brat-ink);
  color: white;
  padding: 0.85rem 1.2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 4px 4px 0 #000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.brat-generator .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0;
  background: #0f0f0f;
  color: #ffffff;
  border: 1px solid #000;
  font-weight: 750;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.brat-generator .btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}


@media (max-width: 1100px) {
  .brat-content {
    grid-template-columns: 1fr;
  }

  .control-panel {
    border-right: none;
    border-bottom: 1px solid var(--brat-border);
  }

  .panel-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .brat-generator {
    padding: 5rem 0 3rem;
  }

  .brat-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .brat-description {
    font-size: 1rem;
  }

  .hero-tags {
    gap: 0.4rem;
  }

  .hero-tags span {
    font-size: 11px;
    padding: 0.25rem 0.5rem;
  }

  .brat-app {
    box-shadow: 4px 4px 0 #000;
  }

  .brat-content {
    display: flex;
    flex-direction: column-reverse;
  }

  .mode-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }

  .mode-tab {
    flex: 1 1 30%;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  .tab-icon {
    font-size: 1rem;
  }

  .tab-label {
    font-size: 0.8rem;
  }

  .panel-content {
    padding: 1rem;
  }

  .control-group {
    margin-bottom: 1rem;
  }

  .control-group label {
    font-size: 11px;
    margin-bottom: 0.5rem;
  }

  textarea {
    min-height: 100px;
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  select {
    padding: 0.75rem;
    font-size: 16px;
  }

  .color-btn,
  .color-picker {
    width: 40px;
    height: 40px;
  }

  .slider-value {
    min-width: 40px;
    font-size: 13px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .action-buttons .btn-primary,
  .action-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
    min-width: auto;
    height: 44px;
  }

  .preview-panel {
    padding: 1rem;
    position: static;
  }

  .canvas-container {
    min-height: 300px;
    max-height: 400px;
    padding: 0.4rem;
  }

  #brat-canvas {
    max-height: 380px;
  }

  .text-layer-tabs {
    gap: 0.25rem;
  }

  .text-layer-tab {
    padding: 0.5rem 0.75rem;
    font-size: 12px;
  }

  .upload-area {
    padding: 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .upload-tip {
    font-size: 11px;
  }
}

/* Google AdSense Sections */
.ad-section {
  padding: 2.5rem 0;
  background: #fafafa;
  border-bottom: 1px solid #e4e7d9;
}

.ad-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SEO Content Sections */
.content-section {
  padding: 4rem 0;
  background: #ffffff;
  border-bottom: 1px solid #e4e7d9;
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-section h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--brat-ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.content-section h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--brat-ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 1.25rem;
}

.content-section strong {
  font-weight: 700;
  color: var(--brat-ink);
}

/* About Section */
.about-section {
  background: #fafafa;
}

/* How-to Section */
.howto-section {
  background: #ffffff;
}

.howto-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fafafa;
  border: 1px solid #000;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #000;
}

.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brat-green);
  color: #000;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 2px;
  border: 2px solid #000;
  flex-shrink: 0;
}

.step-content h3 {
  margin-top: 0;
}

.step-content p {
  margin-bottom: 0;
}

/* Features Section */
.features-section {
  background: #fafafa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid #000;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #000;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #555;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  background: #ffffff;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e4e7d9;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--brat-ink);
  font-weight: 700;
}

.faq-item p {
  margin-bottom: 0;
  color: #3a3a3a;
}

/* Why Choose Section */
.why-choose-section {
  background: #fafafa;
}

.why-choose-list {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}

.why-choose-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a3a3a;
}

.why-choose-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: 700;
  color: var(--brat-green);
  font-size: 1.3rem;
}

.why-choose-list li strong {
  color: var(--brat-ink);
  font-weight: 700;
}

/* Responsive adjustments for content sections */
@media (max-width: 768px) {
  .content-section {
    padding: 3rem 0;
  }

  .content-wrapper {
    padding: 0 1rem;
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .content-section h2 {
    margin-bottom: 1.25rem;
  }

  .howto-steps {
    gap: 1.5rem;
  }

  .why-choose-list li {
    font-size: 1rem;
  }
}


@media (max-width: 480px) {
  .brat-generator {
    padding: 4.5rem 0 2rem;
  }

  .brat-title {
    font-size: 1.75rem;
  }

  .brat-description {
    font-size: 0.9375rem;
  }

  .hero-tags span {
    font-size: 10px;
    padding: 0.2rem 0.4rem;
  }

  .brat-app {
    box-shadow: 3px 3px 0 #000;
    border-radius: 2px;
  }

  .mode-tabs {
    padding: 0.4rem;
  }

  .mode-tab {
    padding: 0.5rem 0.4rem;
    gap: 0.25rem;
  }

  .tab-icon {
    font-size: 0.9rem;
  }

  .tab-label {
    font-size: 0.75rem;
  }

  .panel-content {
    padding: 0.75rem;
  }

  .color-presets {
    gap: 0.4rem;
  }

  .color-btn,
  .color-picker {
    width: 36px;
    height: 36px;
  }

  .color-picker-label {
    font-size: 10px;
  }

  .canvas-container {
    min-height: 250px;
    max-height: 350px;
  }

  #brat-canvas {
    max-height: 330px;
  }

  .preview-panel {
    padding: 0.75rem;
  }

  .action-buttons {
    gap: 0.5rem;
  }

  .action-buttons .btn-primary,
  .action-buttons .btn-secondary {
    height: 40px;
    font-size: 14px;
  }

  .advanced-toggle {
    padding: 0.6rem 0.75rem;
    font-size: 13px;
  }

  .toast {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 13px;
  }
}


/* Dark mode fixes */
[data-theme="dark"] .brat-generator {
  background: var(--background);
}

[data-theme="dark"] .brat-title {
  color: var(--foreground);
}

[data-theme="dark"] .brat-description {
  color: var(--foreground);
}

[data-theme="dark"] .brat-app {
  background: var(--card);
  border-color: var(--border);
}

[data-theme="dark"] .mode-tab {
  background: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}

[data-theme="dark"] .mode-tab:hover {
  background: var(--muted);
}

[data-theme="dark"] .hero-tags span {
  background: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}