/* Heart Shape Text Generator — compiled styles */

html, body {
  overflow-x: hidden;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  text-transform: none;
}

#heart-text-generator * { box-sizing: border-box; }

.checkerboard {
  background-image:
    linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #3b82f6; }
input:checked + .slider:before { transform: translateX(20px); }

.text-instance { border: 2px solid #e5e7eb; border-radius: 8px; margin-bottom: 16px; transition: border-color 0.2s; word-wrap: break-word; overflow-wrap: break-word; }
.text-instance.active { border-color: #3b82f6; }
.text-instance .truncate { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.font-quicksand { font-family: 'Quicksand', sans-serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.font-pacifico { font-family: 'Pacifico', cursive; }
.font-lobster { font-family: 'Lobster', cursive; }
.font-opensans { font-family: 'Open Sans', sans-serif; }
.font-indie { font-family: 'Indie Flower', cursive; }

.canvas-container { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 300px; background: white; }
#heartCanvas { transform-origin: center center; transition: transform 0.2s ease; max-width: 100%; max-height: 100%; width: auto; height: auto; }

/* True fullscreen styles */
.fullscreen-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.fullscreen-mode .canvas-container {
  width: 90vw !important;
  height: 80vh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 80vh !important;
  border: none !important;
  border-radius: 0 !important;
}

.fullscreen-mode #heartCanvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.fullscreen-exit-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  z-index: 10001;
  font-weight: 500;
}

.fullscreen-exit-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.fullscreen-title {
  position: fixed;
  top: 20px;
  left: 20px;
  color: #374151;
  font-size: 24px;
  font-weight: bold;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Align button active state */
.align-btn.active { background-color: #3b82f6; color: white; }

/* Mobile responsive tweaks */
@media (max-width: 768px) {
  .canvas-container { min-height: 250px; max-height: 60vh; }
  #heartCanvas { max-width: 95%; max-height: 95%; }
  .grid-cols-1 { grid-template-columns: 1fr; }
  .controls-section { max-height: none; overflow-y: visible; }
  .text-instance .truncate { max-width: 120px; }
  .flex-col.md\:flex-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .flex.flex-col.md\:flex-row.items-start.md\:items-center { align-items: stretch; }

  .fullscreen-mode .canvas-container {
    width: 95vw !important;
    height: 85vh !important;
    min-height: 85vh !important;
  }
  .fullscreen-exit-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .fullscreen-title {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .canvas-container { min-height: 200px; max-height: 50vh; }
  #heartCanvas { max-width: 90%; max-height: 90%; }
  .text-instance .truncate { max-width: 100px; }

  .fullscreen-mode .canvas-container {
    width: 98vw !important;
    height: 90vh !important;
    min-height: 90vh !important;
  }
  .fullscreen-exit-btn {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .fullscreen-title {
    top: 10px;
    left: 10px;
    font-size: 18px;
  }
}

input[type="text"], input[type="number"], textarea, select { min-width: 0; width: 100%; }

@media (max-width: 640px) {
  .btn-group { display: flex; flex-direction: column; gap: 8px; }
  .btn-group button { width: 100%; }
}
