/* Hero Section */
.hallmark-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  padding: 80px 20px 60px;
  text-align: center;
  border-bottom: 4px solid #ed8936;
  color: white;
  margin-bottom: 30px;
}

.hallmark-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hallmark-hero-title {
  font-size: 2.75rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  margin-bottom: 20px;
  font-weight: 700;
}

.hallmark-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hallmark-hero {
    padding: 60px 20px 40px;
  }
  .hallmark-hero-title {
    font-size: 2rem;
  }
}

.hallmarks-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hallmarks-search h2 {
  color: #1a365d;
  border-bottom: 3px solid #ed8936;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.hallmark-intro {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* Photo preview */
.photo-preview {
  margin: 20px 0;
  text-align: center;
}

.photo-preview img {
  max-width: 300px;
  max-height: 300px;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* AI Photo Section */
.ai-photo-section {
  background: #f0f8ff;
  border: 2px solid #1a365d;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.ai-photo-section h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.ai-photo-section p {
  color: #666;
  margin-bottom: 20px;
}

.photo-upload-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.photo-upload-container input[type="file"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#analyze-hallmark-photo {
  white-space: nowrap;
}

#analyze-hallmark-photo:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-results {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.ai-analysis-result {
  padding: 15px;
}

.ai-analysis-result h4 {
  color: #27ae60;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.analysis-body {
  line-height: 1.8;
  color: #333;
}

.analysis-body h1,
.analysis-body h2,
.analysis-body h3,
.analysis-body h4,
.analysis-body h5 {
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 10px;
}

.analysis-body p {
  margin: 10px 0;
}

.analysis-body strong {
  color: #2c3e50;
}

.divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.divider span {
  background: white;
  padding: 0 20px;
  position: relative;
  color: #95a5a6;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dee2e6;
  z-index: -1;
}

.alert {
  padding: 12px 20px;
  border-radius: 4px;
  margin: 10px 0;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.search-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

/* Hide ALL duplicate page titles - comprehensive selectors */
.path-hallmarks-search .page-title,
.path-hallmarks-search .block-page-title-block,
.path-hallmarks-search #block-instappraisal-clean-pagetitle,
.path-hallmarks-search .region-content > h1:first-child,
.path-hallmarks-search h1:contains("Silver Hallmark Search"),
body.path-hallmarks-search .content h1:first-of-type {
  display: none !important;
}

/* Fix menu border issue - remove blue border from Tools menu items */
.menu--main .menu-item--tools a,
.menu--main .menu-item--tools .menu-item a,
.menu--main .menu-item a[href*="/hallmarks"],
.menu--main .menu-item a[href="/hallmarks/search"],
.menu--main .menu-item--expanded.menu-item--tools .menu a {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.form-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.form-item label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2c3e50;
  height: 20px;
  line-height: 20px;
}

.form-item input,
.form-item select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  height: 42px;
  box-sizing: border-box;
}

.form-item input:focus,
.form-item select:focus {
  outline: none;
  border-color: #1a365d;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 24px;
}

.hallmarks-search .button,
.hallmarks-search button.button {
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: background-color 0.3s !important;
  background: #95a5a6 !important;
  background-image: none !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  transform: none !important;
  box-shadow: none !important;
}

.hallmarks-search .button:hover,
.hallmarks-search button.button:hover {
  background: #7f8c8d !important;
  transform: none !important;
}

.hallmarks-search .button--primary,
.hallmarks-search button.button--primary {
  background: #1a365d !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  background-image: none !important;
}

.hallmarks-search .button--primary:hover,
.hallmarks-search button.button--primary:hover {
  background: #2c5282 !important;
}

.hallmarks-search .btn,
.hallmarks-search button.btn {
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: background-color 0.3s !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  background-image: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.hallmarks-search .btn-primary,
.hallmarks-search button.btn-primary {
  background: #1a365d !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  background-image: none !important;
}

.hallmarks-search .btn-primary:hover,
.hallmarks-search button.btn-primary:hover {
  background: #2c5282 !important;
}

.hallmarks-search .btn-primary:disabled,
.hallmarks-search button.btn-primary:disabled {
  background: #95a5a6 !important;
  cursor: not-allowed !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  background-image: none !important;
  opacity: 0.7 !important;
}

.search-results {
  min-height: 100px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

.no-results {
  background: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ffeeba;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hallmark-result {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.3s;
}

.hallmark-result:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: #1a365d;
}

.hallmark-letter {
  font-size: 48px;
  font-weight: bold;
  color: #1a365d;
  min-width: 60px;
  text-align: center;
  font-family: Georgia, serif;
}

.hallmark-details {
  flex: 1;
}

.hallmark-details h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.hallmark-cycle {
  color: #666;
  font-size: 14px;
  margin: 5px 0;
}

.hallmark-desc {
  color: #444;
  margin: 10px 0;
}

.hallmark-link {
  color: #1a365d;
  text-decoration: none;
  font-weight: bold;
}

.hallmark-link:hover {
  text-decoration: underline;
}

.form-item-full {
  flex: 2;
  min-width: 300px;
}

.hallmark-symbols {
  margin: 10px 0;
  font-size: 14px;
}

.symbol-tag {
  display: inline-block;
  background: #e9ecef;
  color: #495057;
  padding: 3px 8px;
  border-radius: 12px;
  margin: 2px;
  font-size: 12px;
  cursor: help;
  transition: background 0.2s;
}

.symbol-tag:hover {
  background: #1a365d;
  color: white;
}

/* Enhanced mark details page styling */
.node--type-mark .hallmark-details {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
}

.node--type-mark .description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 20px;
  font-style: italic;
}

.node--type-mark .hallmark-info {
  background: white;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #1a365d;
}

.node--type-mark .hallmark-info h3 {
  color: #1a365d;
  margin-top: 0;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.node--type-mark .hallmark-info ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.node--type-mark .hallmark-info li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.node--type-mark .hallmark-info li:last-child {
  border-bottom: none;
}

.node--type-mark .hallmark-info strong {
  color: #666;
  display: inline-block;
  width: 140px;
}

.node--type-mark .historical-context {
  background: #fff8f0;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  border: 1px solid #f0e6d8;
}

.node--type-mark .historical-context h3 {
  color: #8b6914;
  margin-top: 0;
  border-bottom: 2px solid #f0e6d8;
  padding-bottom: 10px;
}

.node--type-mark .historical-context p {
  line-height: 1.7;
  color: #555;
  margin: 15px 0 0 0;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-item {
    width: 100%;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Usage Banner Styles */
.hallmark-usage-banner {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hallmark-usage-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .hallmark-usage-banner > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hallmark-usage-banner > div > div {
    justify-content: center;
  }

  .hallmark-usage-banner a {
    width: 100%;
    justify-content: center;
  }
}