/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Toast notifications (inlined to avoid render-blocking @import) */
#toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: flex-end !important;
  visibility: visible !important;
  overflow: visible !important;
  max-width: 500px;
  will-change: auto;
  transform: none;
  filter: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 50px;
  opacity: 1 !important;
}

#toast-container .toast {
  pointer-events: auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483647 !important;
  filter: none !important;
  position: relative !important;
  transform: none !important;
}

.toast {
  padding: 16px 24px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  animation: slideIn 0.3s ease-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 180px !important;
  max-width: 420px !important;
  text-align: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  z-index: 999999 !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.toast.success {
  background-color: #10b981;
  color: white;
  border: 1px solid #059669;
}

.toast.error {
  background-color: #ef4444;
  color: white;
  border: 1px solid #dc2626;
}

@keyframes slideIn {
  0% { transform: translateX(100%) !important; opacity: 0 !important; }
  100% { transform: translateX(0) !important; opacity: 1 !important; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

.toast.hide {
  animation: slideOut 0.3s ease-in forwards;
}

.toast[data-test-visible="true"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: slideIn 0.3s ease-out !important;
}

.toast-close {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  margin-left: 12px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 4px !important;
  color: white !important;
  cursor: pointer !important;
  font-size: 20px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease !important;
}

.toast-close:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.toast-close:active {
  background-color: rgba(255, 255, 255, 0.4) !important;
}

/* Pure Tailwind 4 - No custom CSS needed */

/* Hero Section - Optimized Height */
.hero-section-container {
  min-height: 500px !important;
  padding-top: 120px !important;
  padding-bottom: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media screen and (min-width: 768px) {
  .hero-section-container {
    min-height: 600px !important;
    padding-top: 140px !important;
    padding-bottom: 100px !important;
  }
}

/* Desktop breakpoint - ensure proper spacing */
@media (min-width: 1024px) {
  .hero-section-container {
    min-height: 650px !important;
    padding-top: 160px !important;
    padding-bottom: 120px !important;
  }
}

/* Pure Tailwind 4 handles all responsive and accessibility styles */

/* Corrupted Data Alert */
[data-testid="corrupted-data-alert"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

[data-testid="corrupted-data-alert"] strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #991b1b !important;
  white-space: normal;
  word-wrap: break-word;
  overflow: visible;
}

[data-testid="corrupted-shop-library"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

[data-testid="corrupted-shop-library"] p {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #991b1b !important;
  white-space: normal;
  word-wrap: break-word;
  overflow: visible;
}

/* Report Issue Button + Dropdown */
.report-false-positive-wrapper {
  position: relative;
  margin-top: 0.5rem;
}

.report-issue-btn {
  position: static;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  color: #18181b;
  box-shadow: none;
}

.report-issue-btn:hover {
  background-color: #f4f4f5;
  border-color: #d4d4d8;
}

.report-issue-btn:focus {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

.report-issue-btn:active {
  background-color: #e4e4e7;
}

.report-flag-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.report-button-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3f3f46;
  white-space: nowrap;
  letter-spacing: 0;
}

.report-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.6rem);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.12);
  width: min(340px, 90vw);
  z-index: 20;
}

.report-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-dropdown-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.report-confidence-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #52525b;
}

.report-textarea {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #111827;
  resize: vertical;
  min-height: 90px;
}

.report-textarea:focus {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

.report-form-actions {
  display: flex;
  gap: 0.5rem;
}

.report-submit-btn {
  flex: 1;
  background: #18181b;
  color: #ffffff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.report-submit-btn:hover {
  background: #0f0f11;
}

.report-cancel-btn {
  flex: 1;
  background: #f4f4f5;
  color: #18181b;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.report-cancel-btn:hover {
  background: #e4e4e7;
}

/* Hidden shop cards for pagination */
.shop-card.hidden {
  display: none !important;
}

/* Ticker Indicator Animations */
[data-ticker-target="indicator"] {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

[data-ticker-target="indicator"].bg-blue-600 {
  animation: pulseBright 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulseBright {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}
