/**
 * V2 Results Styles - RFC-002 Format
 * Coverage bar + vertical segment list layout
 */

/* ============================================================================
   Container & Header
   ============================================================================ */

/* Override legacy #results-container styles when using v2 */
#results-container.v2-results-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  margin-top: 1.5rem;
}


.v2-results-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.v2-results-header {
  padding: 0 0 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  border: none;
}

.results-title {
  margin-bottom: 0.375rem;
}

.results-count {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
}

.results-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--secondary-text-color);
}

.context-sep {
  opacity: 0.4;
}

/* ============================================================================
   Result Tile
   ============================================================================ */

.v2-result-tile {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.v2-result-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   Result Header
   ============================================================================ */

.v2-result-header {
  margin-bottom: 1rem;
}

.result-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.result-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
}

.result-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-color);
}

.result-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--secondary-text-color);
  opacity: 0.4;
}

.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.coverage-badge.complete {
  color: #2E7D32;
}

.coverage-badge.complete .coverage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #E8F5E9;
  border-radius: 50%;
  font-size: 0.625rem;
}

.coverage-badge.partial {
  color: #E65100;
}

.coverage-badge.partial .coverage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #FFF3E0;
  border-radius: 50%;
  font-size: 0.625rem;
}

.stay-type {
  color: var(--secondary-text-color);
}

.guest-fit {
  color: var(--secondary-text-color);
}

/* ============================================================================
   Mini Calendar
   ============================================================================ */

.v2-mini-calendar {
  margin-bottom: 1.25rem;
}

.cal-months-row {
  display: flex;
  margin-bottom: 2px;
}

.cal-month {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 0;
  border-bottom: 1px solid var(--border-color);
}

.cal-dates-row {
  display: grid;
  margin-bottom: 4px;
}

.cal-date {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--secondary-text-color);
  padding: 2px 0;
}

.coverage-track {
  display: flex;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}

.coverage-segment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
}

.coverage-segment .segment-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coverage-segment .segment-nights {
  flex-shrink: 0;
  opacity: 0.85;
  font-weight: 500;
}

/* Segment colors - Vibrant complements (works with orange/blue brand) */
.coverage-segment.segment-0 { background: #14B8A6; }  /* Teal */
.coverage-segment.segment-1 { background: #8B5CF6; }  /* Violet */
.coverage-segment.segment-2 { background: #EC4899; }  /* Pink */
.coverage-segment.segment-3 { background: #22C55E; }  /* Emerald */
.coverage-segment.segment-4 { background: #F59E0B; }  /* Amber */

.coverage-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #ffebee,
    #ffebee 4px,
    #ffcdd2 4px,
    #ffcdd2 8px
  );
  color: #c62828;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================================================
   Segment List
   ============================================================================ */

.v2-segment-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.v2-segment-card {
  display: flex;
  gap: 0.875rem;
}

.segment-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.segment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.375rem;
}

.segment-dot.segment-0 { background: #14B8A6; }  /* Teal */
.segment-dot.segment-1 { background: #8B5CF6; }  /* Violet */
.segment-dot.segment-2 { background: #EC4899; }  /* Pink */
.segment-dot.segment-3 { background: #22C55E; }  /* Emerald */
.segment-dot.segment-4 { background: #F59E0B; }  /* Amber */

.segment-line {
  flex: 1;
  width: 2px;
  background: #E0E0E0;
  margin: 4px 0;
  min-height: 24px;
}

/* Gap segment styling - Option B Inline Configurator */
/* No special styling on outer container - keeps connector aligned */
.v2-gap-segment {
  /* Connector stays aligned with regular segments */
}

.gap-dot {
  background: var(--warning-color) !important;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.gap-bell-icon {
  width: 14px;
  height: 14px;
  color: #fff;
}

.gap-line {
  border-left: 2px dashed var(--warning-color) !important;
  background: transparent !important;
  opacity: 0.6;
  flex: 1;
  margin: 6px 0 8px 0;
  min-height: 20px;
}

.gap-content {
  padding-bottom: 0.25rem !important;
}

.gap-header {
  margin-bottom: 0.5rem;
}

.gap-info {
  flex: 1;
  min-width: 0;
}

.gap-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #E65100;
  margin-bottom: 0.125rem;
}

.gap-dates {
  font-size: 0.8125rem;
  color: var(--secondary-text-color);
}

/* ============================================================================
   Gap Alert Form - Inline search-style on desktop, stacked on mobile
   ============================================================================ */

.gap-alert-form {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border: 1px dashed var(--warning-color);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin: 0.75rem 0 0 0;
}

.alert-form-hook {
  font-size: 0.8125rem;
  color: var(--text-color);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.alert-form-hook span {
  display: inline;
}

.hook-semicolon {
  display: inline;
}

/* Desktop: Inline row layout */
.alert-form-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.alert-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.alert-form-field-room {
  flex: 1;
  min-width: 140px;
}

.alert-form-field-tier {
  flex-shrink: 0;
}

.alert-form-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary-text-color);
  line-height: 1;
  margin-bottom: 0.125rem;
}

/* Select dropdown */
.alert-form-select-wrap {
  position: relative;
  display: block;
}

.alert-form-select {
  width: 100%;
  padding: 0.4375rem 1.75rem 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
}

.alert-form-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.alert-form-select optgroup {
  font-weight: 600;
  font-style: normal;
  color: var(--secondary-text-color);
  font-size: 0.75rem;
}

.alert-form-select option {
  font-weight: 500;
  color: var(--text-color);
}

.alert-form-caret {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--secondary-text-color);
  pointer-events: none;
}

/* Tier radio options - inline pills on desktop */
.alert-form-tiers {
  display: flex;
  gap: 0.375rem;
}

.alert-tier-option {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.alert-tier-option:hover {
  border-color: var(--primary-color);
}

.alert-tier-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.alert-tier-option input:checked + .alert-tier-radio {
  border-color: var(--primary-color);
}

.alert-tier-option input:checked + .alert-tier-radio::after {
  transform: scale(1);
}

.alert-tier-option:has(input:checked),
.alert-tier-option.selected {
  border-color: var(--primary-color);
  background: rgba(255, 107, 53, 0.04);
}

.alert-tier-radio {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.alert-tier-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.alert-tier-label {
  font-size: 0.75rem;
  color: var(--text-color);
}

.alert-tier-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Submit button - sized to match tier options */
.alert-form-submit {
  padding: 0.61rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
}

.alert-form-submit:hover {
  background: var(--primary-hover);
}

/* Mobile: Stacked layout */
@media (max-width: 640px) {

  .gap-alert-form {
    margin-right: 0.75rem;
  }

  .alert-form-hook > span {
    display: block;
  }

  .alert-form-hook .hook-semicolon {
    display: none;
  }

  .alert-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }

  .alert-form-field-room,
  .alert-form-field-tier {
    width: 100%;
  }

  .alert-form-tiers {
    flex-direction: column;
    gap: 0.5rem;
  }

  .alert-tier-option {
    padding: 0.5rem 0.75rem;
  }

  .alert-tier-label {
    flex: 1;
    font-size: 0.8125rem;
  }

  .alert-tier-price {
    font-size: 0.8125rem;
  }

  .alert-form-submit {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

.segment-content {
  flex: 1;
  padding-bottom: 0.875rem;
  min-width: 0;
}

.segment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.segment-room-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.segment-price-main {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-color);
  flex-shrink: 0;
}

.segment-details {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--secondary-text-color);
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.segment-sep {
  opacity: 0.4;
}

.segment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.segment-availability {
  font-weight: 600;
}

.segment-availability.good { color: #2E7D32; }
.segment-availability.low { color: #E65100; }
.segment-availability.critical { color: #C62828; }

.segment-ac {
  color: var(--secondary-text-color);
  background: #f5f5f5;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

/* ============================================================================
   Action Buttons
   ============================================================================ */

.v2-actions {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.v2-btn-book {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.v2-btn-book:hover {
  background: var(--primary-hover);
}

.v2-btn-secondary {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.v2-btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ============================================================================
   No Results State
   ============================================================================ */

.v2-no-results {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.no-results-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.no-results-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.no-results-text {
  font-size: 0.875rem;
  color: var(--secondary-text-color);
}

/* Watch form inside no-results */
.no-results-watch-form {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border: 1px dashed var(--warning-color);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

.no-results-watch-form .alert-form-hook {
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .no-results-watch-form {
    padding: 0.75rem;
  }

  .no-results-watch-form .alert-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }

  .no-results-watch-form .alert-form-field-room,
  .no-results-watch-form .alert-form-field-tier {
    width: 100%;
  }

  .no-results-watch-form .alert-form-tiers {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Legacy no-results-title for compatibility */
.v2-no-results > .no-results-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.no-results-text {
  color: var(--secondary-text-color);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ============================================================================
   Inline Alert CTA (compact, integrated)
   ============================================================================ */

.v2-inline-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--alert-bg-start) 0%, var(--alert-bg-end) 100%);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand-saffron);
  border-radius: 8px;
  margin-top: 1rem;
}

.v2-inline-alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.v2-inline-alert-content {
  flex: 1;
  min-width: 0;
}

.v2-inline-alert-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.125rem;
}

.v2-inline-alert-subtitle {
  font-size: 0.8125rem;
  color: var(--secondary-text-color);
}

.v2-inline-alert-dates {
  font-weight: 600;
  color: var(--text-color);
}

.v2-inline-alert-action {
  flex-shrink: 0;
}

.v2-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.v2-alert-btn:hover {
  background: var(--primary-hover);
}

/* Gap alert variant */
.v2-inline-alert.gap-alert {
  border-left-color: var(--warning-color);
}

/* Responsive */
@media (max-width: 640px) {
  .v2-inline-alert {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
  }

  .v2-inline-alert-action {
    width: 100%;
  }

  .v2-alert-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 640px) {
  .v2-result-tile {
    padding: 1rem;
  }

  .result-title-row {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .result-meta-row {
    gap: 0.375rem;
  }

  .coverage-track {
    height: 28px;
  }

  .coverage-segment {
    padding: 0 0.5rem;
    font-size: 0.6875rem;
  }

  .segment-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .segment-sep {
    display: none;
  }

  .segment-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ============================================================================
   Dark Mode
   ============================================================================ */

[data-theme="dark"] .v2-result-tile {
  background: var(--card-bg-color);
  border-color: var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .v2-result-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Coverage badges in dark mode */
[data-theme="dark"] .coverage-badge.complete {
  color: #81C784;
}

[data-theme="dark"] .coverage-badge.complete .coverage-icon {
  background: rgba(129, 199, 132, 0.2);
}

[data-theme="dark"] .coverage-badge.partial {
  color: #FFB74D;
}

[data-theme="dark"] .coverage-badge.partial .coverage-icon {
  background: rgba(255, 183, 77, 0.2);
}

/* Coverage track */
[data-theme="dark"] .coverage-track {
  background: #2a2a2a;
}

/* Segment colors - brighter for dark mode visibility */
/* Use dark text on bright backgrounds for readability */
[data-theme="dark"] .coverage-segment {
  color: #1a1a1a;
}
[data-theme="dark"] .coverage-segment.segment-0 { background: #2DD4BF; }  /* Teal */
[data-theme="dark"] .coverage-segment.segment-1 { background: #A78BFA; }  /* Violet */
[data-theme="dark"] .coverage-segment.segment-2 { background: #F472B6; }  /* Pink */
[data-theme="dark"] .coverage-segment.segment-3 { background: #4ADE80; }  /* Emerald */
[data-theme="dark"] .coverage-segment.segment-4 { background: #FBBF24; }  /* Amber */

/* Segment dots - match segment bars */
[data-theme="dark"] .segment-dot.segment-0 { background: #2DD4BF; }  /* Teal */
[data-theme="dark"] .segment-dot.segment-1 { background: #A78BFA; }  /* Violet */
[data-theme="dark"] .segment-dot.segment-2 { background: #F472B6; }  /* Pink */
[data-theme="dark"] .segment-dot.segment-3 { background: #4ADE80; }  /* Emerald */
[data-theme="dark"] .segment-dot.segment-4 { background: #FBBF24; }  /* Amber */

/* Segment line connector */
[data-theme="dark"] .segment-line {
  background: #444;
}

/* AC badge */
[data-theme="dark"] .segment-ac {
  background: #2a2a2a;
  color: var(--secondary-text-color);
}

/* Availability colors in dark mode */
[data-theme="dark"] .segment-availability.good {
  color: #81C784;
}

[data-theme="dark"] .segment-availability.low {
  color: #FFB74D;
}

[data-theme="dark"] .segment-availability.critical {
  color: #EF5350;
}

/* Coverage gap in dark mode */
[data-theme="dark"] .coverage-gap {
  background: repeating-linear-gradient(
    45deg,
    #3a2020,
    #3a2020 4px,
    #4a2828 4px,
    #4a2828 8px
  );
  color: #EF5350;
}

/* Gap segment in dark mode */
[data-theme="dark"] .gap-title {
  color: #FFB74D;
}

/* Gap alert form dark mode */
[data-theme="dark"] .gap-alert-form {
  background: linear-gradient(135deg, #3D3516 0%, #4A4018 100%);
  border-color: #FFB74D;
}

[data-theme="dark"] .alert-form-select {
  background: #2a2a2a;
  border-color: #444;
  color: var(--text-color);
}

[data-theme="dark"] .alert-tier-option {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .alert-tier-option:has(input:checked) {
  background: rgba(255, 107, 53, 0.1);
}

[data-theme="dark"] .alert-tier-radio {
  border-color: #555;
}

/* No results state */
[data-theme="dark"] .v2-no-results {
  background: var(--card-bg-color);
}

[data-theme="dark"] .no-results-watch-form {
  background: linear-gradient(135deg, #3D3516 0%, #4A4018 100%);
  border-color: #FFB74D;
}

/* Action buttons */
[data-theme="dark"] .v2-btn-book {
  background: var(--primary-color);
}

[data-theme="dark"] .v2-btn-book:hover {
  background: var(--primary-hover);
}

[data-theme="dark"] .v2-btn-secondary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] .v2-btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ============================================================================
   Alert CTA Integration
   ============================================================================ */

.v2-alert-cta-container {
  margin-top: 1.5rem;
}

.v2-alert-cta-container .alert-cta {
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================================
   Field Error Highlighting
   ============================================================================ */

.alert-form-tiers.has-error .alert-tier-option {
  border-color: #EF5350;
  animation: tier-shake 0.4s ease;
}

@keyframes tier-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

[data-theme="dark"] .alert-form-tiers.has-error .alert-tier-option {
  border-color: #EF5350;
}

/* ============================================================================
   Active Watches Banner
   ============================================================================ */

.v2-watches-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border: 1px solid #90CAF9;
  border-radius: 10px;
  margin-bottom: 1rem;
  animation: bannerFadeIn 0.3s ease;
}

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

.v2-watches-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #1976D2;
  border-radius: 50%;
  flex-shrink: 0;
}

.v2-watches-banner-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.v2-watches-banner-content {
  flex: 1;
  min-width: 0;
}

.v2-watches-banner-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1565C0;
  margin-bottom: 0.125rem;
}

.v2-watches-banner-subtitle {
  font-size: 0.8125rem;
  color: #1976D2;
}

.v2-watches-banner-details {
  margin-top: 0.25rem;
}

.banner-watch-detail {
  font-size: 0.8125rem;
  color: #1565C0;
  line-height: 1.4;
}

.banner-watch-detail + .banner-watch-detail {
  margin-top: 0.125rem;
}

.banner-overlap-note {
  font-size: 0.75rem;
  color: #1976D2;
  opacity: 0.8;
  font-style: italic;
}

.v2-watches-banner-action {
  flex-shrink: 0;
}

.v2-watches-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: #1976D2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.v2-watches-banner-link:hover {
  background: #1565C0;
}

.v2-watches-banner-link svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 640px) {
  .v2-watches-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.625rem;
    padding: 0.875rem;
  }

  .v2-watches-banner-action {
    width: 100%;
  }

  .v2-watches-banner-link {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 1rem;
  }
}

/* Dark mode */
[data-theme="dark"] .v2-watches-banner {
  background: linear-gradient(135deg, #1A2D3D 0%, #243A4D 100%);
  border-color: #1976D2;
}

[data-theme="dark"] .v2-watches-banner-icon {
  background: #64B5F6;
}

[data-theme="dark"] .v2-watches-banner-icon svg {
  color: #1A2D3D;
}

[data-theme="dark"] .v2-watches-banner-title {
  color: #90CAF9;
}

[data-theme="dark"] .v2-watches-banner-subtitle {
  color: #64B5F6;
}

[data-theme="dark"] .banner-watch-detail {
  color: #90CAF9;
}

[data-theme="dark"] .banner-overlap-note {
  color: #64B5F6;
}

[data-theme="dark"] .v2-watches-banner-link {
  background: #64B5F6;
  color: #1A2D3D;
}

[data-theme="dark"] .v2-watches-banner-link:hover {
  background: #90CAF9;
}
