/*
  Simple CSS Bundle
  Optimized bundle for simple pages (about, privacy, terms, help, cookie-preferences)
  Imports only core styles and minimal components needed for these pages
*/

@import './core.css';
@import './components/modal.css';

/* Add Item nav button: green by default on simple pages (core.css only defines :hover) */
.nav-link.add-item-btn,
.add-item-btn {
  background: linear-gradient(135deg, var(--lime-vibrant) 0%, var(--lime-dark) 100%) !important;
  color: #FFFFFF !important;
  border: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 150ms ease, background 200ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 1;
}
.nav-link.add-item-btn:hover,
.add-item-btn:hover {
  background: linear-gradient(120deg, var(--lime-vibrant) 0%, var(--lime-dark) 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 219, 0, 0.4);
}

/* Add-item modal: required so modal displays and scrolls on About, Terms, Privacy, Help, Cookie-preferences */
#addItemModal .modal-content {
  max-width: 700px;
  min-height: 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
}
#addItemModal .modal-header-title {
  flex: 1;
  min-width: 0;
}
#addItemModal .modal-header .modal-subtitle {
  margin: 4px 0 0 0;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: normal;
}
#addItemModal .modal-body {
  padding: 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
#addItemModal .add-item-form .url-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
#addItemModal #openUrlLinkBtn {
  display: none;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
}
#addItemModal #openUrlLinkBtn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
#addItemModal .add-item-autofill-field[readonly],
#addItemModal input.add-item-autofill-field {
  background: #f3f4f6;
  color: #6b7280;
  cursor: default;
  border-color: #e5e7eb;
}
#addItemModal .add-item-condition-pills-readonly .condition-pill {
  pointer-events: none;
  opacity: 0.85;
  cursor: default;
}
#addItemModal .url-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
#addItemModal .url-input-wrapper input {
  flex: 1;
}

/* Form and labels */
.modal label,
.add-item-form label,
.form-group label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #1f2937;
  margin-bottom: 8px;
  display: block;
}
.modal .form-group,
.add-item-form .form-group {
  margin-bottom: 18px;
  position: relative;
  overflow: visible;
}
.add-item-form .form-group input {
  position: relative;
  z-index: 10;
  background: white;
}
.add-item-form {
  overflow: visible;
}
.required {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.75rem;
  vertical-align: super;
  line-height: 0;
}
.form-help {
  display: block;
  color: #6b7280;
  font-size: 0.8125rem;
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Condition pills */
.condition-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.condition-pill {
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  font-family: inherit;
  flex: 1;
  min-width: 90px;
  text-align: center;
}
.condition-pill:hover {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #1f2937;
}
.condition-pill.active {
  background: #eab308;
  border-color: #eab308;
  color: white;
  font-weight: 600;
}
.condition-pill.active:hover {
  background: #e68900;
  border-color: #e68900;
}
.condition-pill:focus-visible {
  outline: 2px solid #eab308;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .condition-pill {
    min-width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
  }
}

/* Price input */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.price-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  font-size: 1rem;
}
.price-input-wrapper input {
  padding-left: 28px;
  width: 100%;
}

/* URL validation icon */
.url-validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Modal actions and buttons */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.btn-secondary {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: #e5e7eb;
}
.submit-button {
  background: #1fdb00;
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.submit-button:hover:not(:disabled) {
  background: #1bc200;
}
.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #9ca3af;
}

/* Inputs in modal */
#modalItemUrl,
#modalItemName,
#modalItemPrice {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

