/**
 * Component Styles
 * Reusable UI components
 */

/* Logo */
.logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto;
  /* Logo displays in natural colors - no filter needed */
}

/* Cards */
.demo-card {
  background: var(--color-gray-700);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-600);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--color-blue-solid), var(--color-blue-text));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Card Icon */
.demo-icon {
  width: 96px;
  height: 96px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md) auto;
  flex-shrink: 0;
}

.demo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Adjust ID icon to match camera height */
.demo-card:nth-child(2) .demo-icon img {
  transform: scale(1.15);
}

/* Card Content */
.demo-card h2 {
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.demo-card p {
  color: var(--color-gray-400);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 6rem;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-gray-100);
  display: block;
}

.stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--color-gray-400);
  text-transform: capitalize;
  display: block;
}

/* Buttons */
.demo-btn {
  display: flex;
  width: 100%;
  padding: 0 12px;
  height: 44px;
  background: var(--color-blue-solid);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  outline: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.0107142857em;
  gap: 12px;
  margin-top: auto;
}

.demo-btn .icon-wrapper {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-btn .icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-btn span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-btn:hover {
  background: var(--color-blue-solid-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.demo-btn:active {
  background: #1e40af;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.demo-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.demo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Spinner */
.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.loading.active {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Compliance Logos */
.compliance-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.compliance-logo:hover {
  opacity: 1;
}

/* Footer Links */
.footer-link {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.footer-link:hover {
  color: var(--color-blue-text);
}

.footer-separator {
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

.trust-badge {
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  color: var(--color-gray-500);
  padding: 0.25rem 0.75rem;
  background: rgba(75, 85, 99, 0.3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-600);
}
