/**
 * @file: recipe-form.css
 * @description: Стилі для форми подачі рецептів
 * @created: 2025-10-30
 */

/* Form Wrapper */
.gotuimo-recipe-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Notifications */
.gotuimo-form-notifications {
  margin-bottom: 30px;
  padding: 15px 20px;
  border-radius: 8px;
  background: #f0f0f0;
}

.gotuimo-form-message.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 8px;
}

.gotuimo-form-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 8px;
}

/* Form Sections */
.gotuimo-form-section {
  margin-bottom: 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gotuimo-form-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.4em;
  color: #333;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Form Fields */
.gotuimo-form-field {
  margin-bottom: 20px;
}

.gotuimo-form-field label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.gotuimo-form-field input[type="text"],
.gotuimo-form-field input[type="number"],
.gotuimo-form-field textarea,
.gotuimo-form-field select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.gotuimo-form-field input:focus,
.gotuimo-form-field textarea:focus,
.gotuimo-form-field select:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.gotuimo-form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.gotuimo-form-field small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 13px;
}

/* Form Row */
.gotuimo-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Image Upload */
.gotuimo-form-field input[type="file"] {
  padding: 10px;
  border: 2px dashed #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
}

.gotuimo-image-preview,
.step-image-preview {
  margin-top: 15px;
}

.gotuimo-image-preview img,
.step-image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ingredient Row */
.gotuimo-ingredient-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px 45px 15px 15px; /* Додатковий правий padding для кнопки */
  background: #f9f9f9;
  border-radius: 8px;
  position: relative;
}

/* Поле групи (приховане, якщо не заповнене) */
.gotuimo-ingredient-row .ingredient-group {
  width: 100%;
}

/* Перший ряд: Назва інгредієнта */
.ingredient-row-first {
  width: 100%;
  margin-bottom: 12px;
}

.ingredient-row-first .select2-container {
  width: 100% !important;
}

/* Другий ряд: Кількість, Одиниця, Примітка */
.ingredient-row-second {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 10px;
  width: 100%;
}

.ingredient-row-second input {
  width: 100%;
}

/* Контейнер інгредієнтів - дозволити overflow для Select2 dropdown */
.gotuimo-ingredients-container {
  overflow: visible !important;
}

.gotuimo-ingredient-row input,
.gotuimo-ingredient-row .select2-container {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.gotuimo-ingredient-row input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  height: 42px;
  width: 100% !important;
}

/* Стилі Select2 для інгредієнтів - використовуємо глобальні стилі вище */

/* Instruction Row */
.gotuimo-instruction-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px 45px 15px 15px; /* Додатковий правий padding для кнопки */
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  position: relative; /* Для absolute positioning кнопки */
}

.instruction-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  flex-shrink: 0;
}

.instruction-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Вертикальний відступ між елементами */
}

.instruction-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
}

.instruction-image-upload {
  /* margin-top видалено, тепер gap керує відступами */
}

.instruction-image-upload label {
  display: inline-block;
  padding: 8px 15px;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.instruction-image-upload label:hover {
  background: #e0e0e0;
}

.instruction-image-upload input[type="file"] {
  display: none;
}

/* Buttons */
.gotuimo-btn-primary,
.gotuimo-btn-secondary,
/* Видалено - дублікат */

.gotuimo-btn-primary {
  background: #e74c3c;
  color: white;
  width: 100%;
  font-size: 18px;
}

.gotuimo-btn-primary:hover:not(:disabled) {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.gotuimo-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.gotuimo-btn-secondary {
  background: #3498db;
  color: white;
}

.gotuimo-btn-secondary:hover {
  background: #2980b9;
}

/* Видалено - дублікат */

/* Submit Section */
.gotuimo-form-submit {
  text-align: center;
}

.gotuimo-form-note {
  margin-top: 15px;
  color: #999;
  font-size: 14px;
}

/* Select2 Overrides */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 42px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
}

/* Глобальний стиль для всіх single Select2 в формі */
.gotuimo-recipe-form-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 12px !important;
  padding-right: 0 !important;
  color: #333 !important;
  text-align: left !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
  width: 100% !important; /* Займати всю доступну ширину в flex-контейнері */
  flex-grow: 1 !important; /* Розтягуватись в flex-контейнері */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 8px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 5px 8px !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin: 0 !important;
  padding: 3px 0 !important;
  height: 32px !important;
  line-height: 32px !important;
  min-width: 150px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 4px 12px 4px 4px !important;
  padding: 0px 6px !important;
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  border: none !important;
  border-radius: 10px !important;
  height: auto !important;
  min-height: 28px !important;
  line-height: 1.4 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  overflow: visible !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: white !important;
  color: #DC2626 !important;
  border: 1.5px solid #DC2626 !important;
  border-radius: 50% !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: #DC2626 !important;
  color: white !important;
  border-color: #DC2626 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}


/* Select2 в ingredient row */
.gotuimo-ingredient-row .select2-container {
  align-self: start;
  width: 100% !important;
  max-width: 100% !important;
}

.gotuimo-ingredient-row .select2-container--default .select2-selection--single {
  height: 42px !important;
  box-sizing: border-box !important;
}

.gotuimo-ingredient-row .select2-container .select2-selection {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Select2 Dropdown */
.select2-dropdown {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.select2-results__option {
  padding: 10px 12px !important;
}

.select2-results__option--highlighted {
  background-color: #e74c3c !important;
}

/* Кнопки видалення */
.gotuimo-btn-remove {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  background: #DC2626 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 10 !important;
}

.gotuimo-btn-remove::before {
  content: "✕" !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.gotuimo-btn-remove:hover {
  background: #B91C1C !important;
  transform: scale(1.15) !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

/* Приховати placeholder та курсор у Select2 */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  caret-color: transparent !important; /* Приховати курсор */
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
  opacity: 0 !important; /* Приховати placeholder */
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::-webkit-input-placeholder {
  opacity: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::-moz-placeholder {
  opacity: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gotuimo-recipe-form-wrapper {
    padding: 10px;
  }

  .gotuimo-form-section {
    padding: 20px;
  }

  .gotuimo-form-row {
    grid-template-columns: 1fr;
  }

  .gotuimo-ingredient-row {
    padding: 15px 45px 15px 15px; /* Правий padding для кнопки і на мобілці */
  }
  
  .ingredient-row-second {
    grid-template-columns: 1fr; /* На мобілці всі поля друго ряду в один стовпець */
    gap: 10px;
  }

  .gotuimo-instruction-row {
    grid-template-columns: 1fr;
  }

  .instruction-number {
    margin: 0 auto 10px;
  }
}

/* Error State */
.gotuimo-form-field.has-error input,
.gotuimo-form-field.has-error textarea,
.gotuimo-form-field.has-error select {
  border-color: #e74c3c;
}

.gotuimo-form-field .error-message {
  display: block;
  margin-top: 5px;
  color: #e74c3c;
  font-size: 13px;
}

/* ========================================
   ГРУПОВА СТРУКТУРА (v2.0)
   ======================================== */

/* Hint для користувача */
.form-hint {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  color: #1e40af;
  font-size: 14px;
  line-height: 1.6;
}

/* Група інгредієнтів/інструкцій */
.gotuimo-ingredient-group,
.gotuimo-instruction-group {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.gotuimo-ingredient-group:hover,
.gotuimo-instruction-group:hover {
  border-color: #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Заголовок групи */
.group-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px dashed #dee2e6;
}

.group-name-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ced4da;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  background: #ffffff;
  transition: all 0.3s;
}

.group-name-input:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.group-name-input::placeholder {
  font-weight: 400;
  color: #adb5bd;
}

/* Кнопка видалення групи */
.gotuimo-btn-remove-group {
  padding: 10px 16px;
  background: #dc3545;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.gotuimo-btn-remove-group:hover {
  background: #c82333;
  transform: scale(1.05);
}

/* Контейнер для інгредієнтів/інструкцій всередині групи */
.group-ingredients,
.group-instructions {
  margin-bottom: 15px;
}

/* Кнопка додавання в групу */
.gotuimo-btn-add-to-group {
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: #495057;
  border: 2px dashed #ced4da;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.gotuimo-btn-add-to-group:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}

/* Інгредієнт всередині групи */
.gotuimo-ingredient-group .gotuimo-ingredient-row {
  background: #ffffff;
  margin-bottom: 12px;
  border: 1px solid #e9ecef;
}

.gotuimo-ingredient-group .gotuimo-ingredient-row:last-child {
  margin-bottom: 0;
}

/* Інструкція всередині групи */
.gotuimo-instruction-group .gotuimo-instruction-row {
  background: #ffffff;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
}

.gotuimo-instruction-group .gotuimo-instruction-row:last-child {
  margin-bottom: 0;
}

/* Адаптивність для груп */
@media (max-width: 768px) {
  .group-header {
    flex-direction: column;
    align-items: stretch;
  }

  .gotuimo-btn-remove-group {
    width: 100%;
  }

  .gotuimo-ingredient-group,
  .gotuimo-instruction-group {
    padding: 15px;
  }
}

/* ========================================
   DRAG AND DROP (v2.1)
   ======================================== */

/* Drag handle для інгредієнтів/інструкцій */
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  color: #adb5bd;
  font-size: 20px;
  font-weight: bold;
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.drag-handle:hover {
  color: #495057;
  transform: scale(1.1);
}

.drag-handle:active {
  cursor: grabbing;
  color: #212529;
}

/* Drag handle для груп */
.drag-handle-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 15px;
  color: #868e96;
  font-size: 24px;
  font-weight: bold;
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

.drag-handle-group:hover {
  color: #212529;
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.drag-handle-group:active {
  cursor: grabbing;
  color: #000;
  background: rgba(0, 0, 0, 0.12);
}

/* Оновлений інгредієнт ряд з handle */
.gotuimo-ingredient-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Оновлений інструкція ряд з handle */
.gotuimo-instruction-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Стилі під час перетягування */
.sortable-ghost {
  opacity: 0.4;
  background: #e3f2fd !important;
  border: 2px dashed #2196f3 !important;
}

.sortable-drag {
  opacity: 0.8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
  cursor: grabbing !important;
}

.sortable-chosen {
  background: #f8f9fa;
}

/* Курсор для сортабельних контейнерів */
.sortable-ingredients,
.sortable-instructions {
  min-height: 50px;
}

/* Placeholder під час drag */
.sortable-fallback {
  opacity: 0;
}

/* Анімація drop */
@keyframes drop-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Групи теж мають бути сортабельними */
#ingredient-groups-wrapper,
#instruction-groups-wrapper {
  min-height: 100px;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
  .drag-handle {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  
  .drag-handle-group {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  
  .sortable-ghost {
    opacity: 0.5;
  }
}

/* ============================================
   🎨 TOOLTIPS & GENERAL HINT
   ============================================ */

/* Загальна підказка вгорі форми */
.gotuimo-general-hint {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  animation: fadeInDown 0.6s ease-out;
}

.general-hint-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.general-hint-text {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.general-hint-text strong {
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}

/* Tooltip container */
.gotuimo-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
  cursor: help;
}

/* Tooltip icon (кружечок з ?) */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tooltip-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Tooltip bubble (спливаюче вікно) */
.gotuimo-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  background: #2d3748;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  white-space: normal;
  word-wrap: break-word;
}

/* Tooltip arrow (стрілочка) */
.gotuimo-tooltip::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: #2d3748;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1001;
}

/* Показ tooltip при hover */
.gotuimo-tooltip:hover::before,
.gotuimo-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip активний стан (для мобільних, через JS) */
.gotuimo-tooltip.active::before,
.gotuimo-tooltip.active::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Позиціонування для label (щоб не виходило за межі) */
label .gotuimo-tooltip {
  position: relative;
}

label .gotuimo-tooltip::before {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(5px);
}

label .gotuimo-tooltip::after {
  left: auto;
  right: 20px;
  transform: translateX(0) translateY(5px);
}

label .gotuimo-tooltip:hover::before,
label .gotuimo-tooltip.active::before {
  transform: translateX(0) translateY(0);
}

label .gotuimo-tooltip:hover::after,
label .gotuimo-tooltip.active::after {
  transform: translateX(0) translateY(0);
}

/* Адаптив для tooltip */
@media (max-width: 768px) {
  .gotuimo-tooltip::before {
    min-width: 240px;
    max-width: calc(100vw - 40px);
    font-size: 13px;
    padding: 12px 15px;
  }
  
  .tooltip-icon {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
}

/* Анімація fadeInDown для загальної підказки */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анімація pulse для іконки */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
