/* 
  UniFi Search - Content Styles
  Inherits layout and design system from shared/theme.css
*/

.container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 3rem 20px;
}

/* Config Section Grid */
.controller-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.search-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.search-container input {
  flex: 1;
  font-size: 1.15rem;
  padding: 1.25rem 1.5rem;
  /* System hardening in theme.css handles the rest */
}

/* Device Result Styling */
.result-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(255, 107, 0, 0.3);
  backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 3rem;
  margin-top: 2rem;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.product-image-container {
  width: 140px;
  height: 140px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

#resImage {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.res-item span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.res-item strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.highlight {
  color: var(--accent-orange);
}

.status-msg {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.premium-btn {
  /* Inherits from shared theme but ensures height */
  min-height: 54px;
}

.loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* History Section */
.history-header {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.history-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.history-card {
  padding: 0; 
  background: rgba(0,0,0,0.3); 
  overflow: hidden;
  border-radius: 16px;
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1.25rem 1.5rem; color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
td { padding: 1.25rem 1.5rem; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
tr:last-child td { border-bottom: none; }