/**
 * @file
 * Young Driver Age Verification Alert Styles.
 */

/* Alert Container */
.young-driver-age-alert {
  margin: var(--margin-l) 0;
  border-radius: var(--br-m);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInDown 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Content */
.young-driver-age-alert__content {
  display: flex;
  align-items: flex-start;
  gap: var(--margin-m);
  padding: var(--margin-m) var(--margin-l);
  position: relative;
}

.young-driver-age-alert__icon {
  font-size: var(--fc-h2, 1.5rem);
  line-height: 1;
  flex-shrink: 0;
}

.young-driver-age-alert__message {
  flex: 1;
  font-size: var(--fc-p, 1rem);
  line-height: 1.5;
  min-width: 0;
}

.young-driver-age-alert__message strong {
  font-weight: var(--fw-bold, 700);
  display: block;
  margin-bottom: var(--margin-xxs);
}

/* Close Button */
.young-driver-age-alert__close {
  background: transparent;
  border: none;
  font-size: var(--fc-h1, 2rem);
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: var(--br-s);
  transition: all 0.2s ease;
  opacity: 0.6;
}

.young-driver-age-alert__close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

.young-driver-age-alert__close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}

/* Warning Variant (mismatch between checkbox and DOB) */
.young-driver-age-alert--warning {
  background: linear-gradient(135deg, 
    var(--amber-light, #fff8e1) 0%, 
    var(--amber-lighter, #fffde7) 100%);
  border-left: 4px solid var(--amber, #ffc107);
  color: var(--grey-dark-2, #424242);
}

.young-driver-age-alert--warning .young-driver-age-alert__message strong {
  color: var(--amber-dark, #ff8f00);
}

.young-driver-age-alert--warning .young-driver-age-alert__close {
  color: var(--amber-dark, #ff8f00);
}

/* Error Variant (age below minimum) */
.young-driver-age-alert--error {
  background: linear-gradient(135deg, 
    #ffebee 0%, 
    #ffcdd2 100%);
  border-left: 4px solid #d32f2f;
  color: var(--grey-dark-2, #424242);
}

.young-driver-age-alert--error .young-driver-age-alert__message strong {
  color: #c62828;
}

.young-driver-age-alert--error .young-driver-age-alert__close {
  color: #c62828;
}

.young-driver-age-alert--error .young-driver-age-alert__icon {
  color: #d32f2f;
}

/* Info Variant (declared young but actually 25+) */
.young-driver-age-alert--info {
  background: linear-gradient(135deg, 
    #e3f2fd 0%, 
    #bbdefb 100%);
  border-left: 4px solid #1976d2;
  color: var(--grey-dark-2, #424242);
}

.young-driver-age-alert--info .young-driver-age-alert__message strong {
  color: #1565c0;
}

.young-driver-age-alert--info .young-driver-age-alert__close {
  color: #1565c0;
}

.young-driver-age-alert--info .young-driver-age-alert__icon {
  color: #1976d2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .young-driver-age-alert__content {
    padding: var(--margin-m);
    gap: var(--margin-s);
  }
  
  .young-driver-age-alert__icon {
    font-size: var(--fc-h3, 1.25rem);
  }
  
  .young-driver-age-alert__message {
    font-size: var(--fc-small, 0.875rem);
  }
  
  .young-driver-age-alert__close {
    width: 1.5rem;
    height: 1.5rem;
    font-size: var(--fc-h2, 1.5rem);
  }
}

/* Print Styles */
@media print {
  .young-driver-age-alert {
    display: none !important;
  }
}
