/**
 * Redirect Validator Specific Styles
 */

.redirect-hop {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
}

.hop-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.hop-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.hop-status {
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.hop-time {
  color: #666;
  font-weight: 600;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.hop-url {
  margin-bottom: 10px;
  word-break: break-all;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  font-size: 0.95rem;
}

.hop-url strong {
  color: #764ba2;
}

.hop-redirect-type {
  margin-bottom: 10px;
  color: #666;
  font-size: 0.95rem;
}

.hop-redirect-type strong {
  color: #333;
}

.hop-next-url {
  margin-bottom: 10px;
  padding: 10px;
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  border-radius: 4px;
  word-break: break-all;
  font-size: 0.95rem;
}

.hop-next-url strong {
  color: #2e7d32;
}

.hop-error {
  margin-top: 10px;
  padding: 10px;
  background: #ffebee;
  border-left: 4px solid #f44336;
  border-radius: 4px;
  color: #c62828;
  font-size: 0.95rem;
}

.hop-error strong {
  color: #b71c1c;
}

.hop-headers {
  margin-top: 15px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.hop-headers summary {
  cursor: pointer;
  color: #764ba2;
  font-weight: 600;
  padding: 8px 0;
  user-select: none;
}

.hop-headers summary:hover {
  color: #667eea;
}

.headers-list {
  margin-top: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

.header-item {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
  font-family: 'Monaco', 'Courier New', monospace;
}

.header-item:last-child {
  border-bottom: none;
}

.header-item strong {
  color: #764ba2;
  display: inline-block;
  min-width: 150px;
}

.hop-arrow {
  text-align: center;
  font-size: 2rem;
  color: #667eea;
  margin: -10px 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Error und Warning Boxes */
.error-box {
  background: #ffebee;
  border-left: 4px solid #f44336;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.error-box strong {
  color: #c62828;
  display: block;
  margin-bottom: 8px;
}

.error-box p {
  margin: 5px 0;
  color: #666;
  font-size: 0.95rem;
}

.warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.warning-box strong {
  color: #e65100;
  display: block;
  margin-bottom: 8px;
}

.warning-box p {
  margin: 5px 0;
  color: #666;
  font-size: 0.95rem;
}

/* URL Display */
.url-display {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.8;
  word-break: break-all;
}

.url-display strong {
  color: #764ba2;
  display: inline-block;
  min-width: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .hop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hop-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .header-item strong {
    min-width: 120px;
    display: block;
    margin-bottom: 5px;
  }
}
