/**
 * @file
 * pasioDesign Form Shield - Stylesheet
 */

:root {
  --pasio-shield-primary-color: #2563eb;
  --pasio-shield-accent-color: #3b82f6;
  --pasio-shield-success-color: #10b981;
  --pasio-shield-error-color: #ef4444;
  --pasio-shield-text-color: #374151;
  --pasio-shield-border-color: #d1d5db;
  --pasio-shield-bg-color: #f9fafb;
  --pasio-shield-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --pasio-shield-border-radius: 8px;
  --pasio-shield-transition: all 0.3s ease;
}

.pasio-shield-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0;
}

.pasio-shield-content {
  background: var(--pasio-shield-bg-color);
  border: 2px solid var(--pasio-shield-border-color);
  border-radius: var(--pasio-shield-border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--pasio-shield-shadow);
  transition: var(--pasio-shield-transition);
}

.pasio-shield-content:hover {
  border-color: var(--pasio-shield-primary-color);
}

.pasio-shield-loading .pasio-shield-content {
  border-color: var(--pasio-shield-accent-color);
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.pasio-shield-message {
  color: var(--pasio-shield-text-color);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pasio-shield-message strong {
  color: var(--pasio-shield-primary-color);
  font-weight: 600;
}

.pasio-shield-progress-container {
  margin: 1.5rem 0;
}

.pasio-shield-progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.pasio-shield-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, 
    var(--pasio-shield-primary-color) 0%, 
    var(--pasio-shield-accent-color) 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pasio-shield-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: pasio-shine 2s infinite;
}

@keyframes pasio-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.pasio-shield-progress-text {
  font-size: 0.875rem;
  color: var(--pasio-shield-text-color);
  font-weight: 500;
}

.pasio-shield-btn-load {
  display: inline-block;
  background: var(--pasio-shield-primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--pasio-shield-border-radius);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pasio-shield-transition);
  box-shadow: var(--pasio-shield-shadow);
  margin-top: 1rem;
}

.pasio-shield-btn-load:hover {
  background: var(--pasio-shield-accent-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pasio-shield-btn-load:active {
  transform: translateY(0);
  box-shadow: var(--pasio-shield-shadow);
}

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

.pasio-shield-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--pasio-shield-primary-color);
  border-radius: 50%;
  animation: pasio-spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes pasio-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pasio-shield-error {
  color: var(--pasio-shield-error-color);
  font-weight: 500;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--pasio-shield-border-radius);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media screen and (max-width: 768px) {
  .pasio-shield-wrapper {
    max-width: 100%;
    margin: 1rem auto;
  }

  .pasio-shield-content {
    padding: 1.5rem;
  }

  .pasio-shield-message {
    font-size: 1.1rem;
  }

  .pasio-shield-btn-load {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .pasio-shield-wrapper {
    margin: 0.5rem auto;
  }

  .pasio-shield-content {
    padding: 1rem;
  }

  .pasio-shield-message {
    font-size: 1rem;
  }

  .pasio-shield-btn-load {
    width: 100%;
    padding: 0.75rem;
  }

  .pasio-shield-progress-bar {
    height: 10px;
  }
}

.pasio-shield-btn-load:focus-visible {
  outline: 3px solid var(--pasio-shield-primary-color);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .pasio-shield-content {
    border-width: 3px;
  }

  .pasio-shield-btn-load {
    border: 2px solid #000000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pasio-shield-content,
  .pasio-shield-btn-load,
  .pasio-shield-progress-fill {
    transition: none;
  }

  .pasio-shield-progress-fill::after {
    animation: none;
  }

  .pasio-shield-spinner {
    animation: none;
    border-top-color: var(--pasio-shield-primary-color);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --pasio-shield-text-color: #e5e7eb;
    --pasio-shield-border-color: #4b5563;
    --pasio-shield-bg-color: #1f2937;
  }

  .pasio-shield-progress-bar {
    background: #374151;
  }

  .pasio-shield-error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
  }
}

@media print {
  .pasio-shield-wrapper {
    display: none;
  }
}

@keyframes pasio-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pasio-shield-content {
  animation: pasio-fade-in 0.4s ease-out;
}

