/* Garage Pass License Theme */
/* Extracted from garage-ui.css for global usage */

:root {
  /* Ensure variables exist if garage-ui.css isn't loaded */
  --gp-accent: #14b8a6;
  --text-primary: #e9f3f6;
  --text-secondary: #9db2bf;
  --text-muted: rgba(157, 178, 191, 0.85); /* Increased from 0.6 for 4.5:1 contrast ratio */
  --bg-elevated: #161b22;
}

/* License Card Container */
.license-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, rgba(30, 32, 40, 0.95), rgba(20, 22, 28, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto; /* Center if container is wider */
}

.license-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Holographic Overlay */
.license-hologram {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(212, 175, 55, 0.03) 25%,
    transparent 50%,
    rgba(100, 200, 255, 0.03) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  animation: hologram-shimmer 8s ease-in-out infinite;
}

@keyframes hologram-shimmer {
  0%, 100% { opacity: 0.3; transform: translateX(-20%); }
  50% { opacity: 0.6; transform: translateX(20%); }
}

/* Security Pattern Overlay */
.license-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  pointer-events: none;
  z-index: 1;
}

/* License Header */
.license-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem; /* Reduced padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.license-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.license-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.license-title-block {
  flex: 1;
  min-width: 0;
}

.license-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.2;
}

.license-type {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 4px;
  margin-top: 0.25rem;
}

/* License Body */
.license-body {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.85rem; /* Reduced gap */
  padding: 1rem; /* Reduced padding */
}

.license-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.license-photo-frame {
  position: relative;
  width: 80px; /* Smaller photo */
  height: 80px;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(145deg, #d4af37, #b8941f, #d4af37);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.license-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.license-info-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  gap: 0.5rem; /* Tighter vertical spacing */
}

.license-field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.license-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.license-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.license-value.license-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.license-row {
  display: flex;
  gap: 0.75rem; /* Reduced horizontal gap */
}

/* Footer / Actions within License */
.license-footer {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.license-id {
  font-family: 'Orbitron', monospace; /* Assuming Orbitron is loaded or falls back */
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
}

/* Mobile Tweaks */
@media (max-width: 360px) {
  .license-body {
    padding: 1rem;
    gap: 0.75rem;
  }
  .license-photo-frame {
    width: 70px;
    height: 70px;
  }
  .license-header {
    padding: 0.75rem 1rem;
  }
  .license-title {
    font-size: 1rem;
  }
}
