/* ==========================================================================
   TÜRMOB VKN Firma Sorgulama Portalı — Modern Design System (Vanilla CSS)
   ========================================================================== */

:root {
  /* Brand & Neutral Color Tokens */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Accent Colors */
  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-primary-light: #e0f2fe;

  --accent-green: #059669;
  --accent-green-light: #d1fae5;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-red: #dc2626;
  --accent-red-light: #fee2e2;
  --accent-purple: #7c3aed;
  --accent-purple-light: #ede9fe;

  /* Layout & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.app-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-primary), #0369a1);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.logo-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.badge-item.cache-badge {
  background-color: var(--brand-primary-light);
  border-color: #bae6fd;
  color: var(--brand-primary-hover);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 0 2px var(--accent-green-light);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Search Section */
.search-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.search-headline {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.search-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 680px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-form input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-form input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-light);
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem;
}

.clear-btn:hover {
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
  transform: translateY(-1px);
}

.quick-samples {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sample-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sample-chip {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.sample-chip:hover {
  background-color: var(--brand-primary-light);
  border-color: #bae6fd;
  color: var(--brand-primary);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-blue { background-color: var(--brand-primary-light); color: var(--brand-primary); }
.icon-green { background-color: var(--accent-green-light); color: var(--accent-green); }
.icon-purple { background-color: var(--accent-purple-light); color: var(--accent-purple); }
.icon-cyan { background-color: #cffafe; color: #0891b2; }

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Result Section & Cards */
.result-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

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

/* Cache Banner */
.cache-banner {
  background-color: var(--accent-green-light);
  border-bottom: 1px solid #a7f3d0;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cache-banner.api-live {
  background-color: var(--brand-primary-light);
  border-bottom-color: #bae6fd;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cache-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--accent-green);
  color: #fff;
}

.cache-banner.api-live .cache-badge-indicator {
  background-color: var(--brand-primary);
}

.cache-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #065f46;
}

.cache-banner.api-live .cache-text {
  color: #075985;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cache-timer {
  font-size: 0.8rem;
  font-weight: 700;
  color: #065f46;
}

.btn-refresh {
  background-color: #ffffff;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-refresh:hover {
  background-color: #f0fdf4;
  border-color: #34d399;
}

/* Result Header */
.result-header {
  padding: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.company-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-active {
  background-color: var(--accent-green-light);
  color: var(--accent-green);
  border: 1px solid #a7f3d0;
}

.status-passive {
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  border: 1px solid #fecaca;
}

.type-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.query-count-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-purple-light);
  border: 1px solid #ddd6fe;
  color: var(--accent-purple);
}

.company-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-action:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

/* Details Grid */
.details-grid {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.detail-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.detail-box.highlight-box {
  background-color: var(--brand-primary-light);
  border-color: #bae6fd;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.highlight-box .detail-label {
  color: #0369a1;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vkn-mono {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--brand-primary-hover);
  letter-spacing: 0.05em;
}

.copy-small-btn {
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
}

.copy-small-btn:hover {
  transform: scale(1.15);
}

.detail-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Sections */
.section-box {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.section-box-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.nace-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nace-code-pill {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
}

.nace-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.address-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.address-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.address-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.maps-link {
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
}

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

/* Result Footer */
.result-footer {
  background-color: var(--bg-card-subtle);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-meta-item strong {
  color: var(--text-secondary);
}

/* Error Card */
.error-card {
  background-color: var(--accent-red-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.error-icon {
  color: var(--accent-red);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.error-title {
  font-size: 1rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 0.25rem;
}

.error-message {
  font-size: 0.9rem;
  color: #7f1d1d;
}

/* Skeleton Loading State */
.skeleton-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.skeleton-line {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.skeleton-title { width: 60%; height: 32px; }
.skeleton-badge { width: 25%; height: 20px; }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.skeleton-box {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
  height: 90px;
  border-radius: var(--radius-md);
}

@keyframes skeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* History Section */
.history-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title-bar h2 {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.badge-counter {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
}

.history-table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.history-table th {
  background-color: var(--bg-card-subtle);
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.history-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.history-table tr:hover td {
  background-color: #f8fafc;
}

.history-row {
  cursor: pointer;
}

.history-vkn {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-primary);
}

.empty-row {
  text-align: center;
  padding: 2rem !important;
  color: var(--text-muted);
}

/* Modal & Account Pool Styling */
.pool-btn {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
  cursor: pointer;
  transition: var(--transition);
}

.pool-btn:hover {
  background-color: #d1fae5 !important;
  transform: translateY(-1px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon {
  font-size: 1.5rem;
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.pool-table-wrapper {
  overflow-x: auto;
}

.pool-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.pool-table th {
  background-color: var(--bg-card-subtle);
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pool-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.pool-table tr:hover td {
  background-color: #f8fafc;
}

.pool-status-ready {
  color: #059669;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pool-status-cooldown {
  color: #d97706;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-primary);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  color: var(--accent-green);
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.75rem !important;
  margin-top: 0.3rem;
  color: #94a3b8 !important;
}

/* Print Styling */
@media print {
  body {
    background-color: #ffffff !important;
  }
  .app-header, .search-section, .stats-section, .history-section, .app-footer, .result-actions, .btn-refresh {
    display: none !important;
  }
  .main-content {
    padding: 0 !important;
  }
  .result-card {
    border: none !important;
    box-shadow: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Navigation in Header */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

.nav-link.active {
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--brand-primary);
}

.breadcrumb-list .separator {
  font-size: 0.7rem;
  color: #cbd5e1;
}

.breadcrumb-list li.active {
  color: var(--text-primary);
  font-weight: 700;
}

/* Directory Page Styles */
.directory-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.directory-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.directory-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.directory-card-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.directory-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.directory-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.directory-card-title a:hover {
  color: var(--brand-primary);
}

.directory-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.directory-card-meta strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.directory-btn {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  justify-content: center;
}

/* Pagination */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 2rem 0;
}

.pagination-link {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.pagination-link:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.pagination-link.active {
  background-color: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* FAQ Box */
.faq-box {
  margin-top: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-question i {
  color: var(--brand-primary);
  font-size: 0.85rem;
}

.faq-answer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Detail search inline */
.detail-search-bar {
  margin-top: 2rem;
  text-align: center;
}

.detail-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-inline-form input {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-mono);
}

.detail-inline-form input:focus {
  border-color: var(--brand-primary);
}

.see-all-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.see-all-link:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-primary);
}
