/**
 * @description Styles for Cloudflare Worker Test
 * @version 1.0
 * @author Tom Cranstoun
 * @mx:status active
 * @mx:contentType stylesheet
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 2rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.content {
  padding: 2rem;
}

.test-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.test-section h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.test-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 4px;
}

.test-item .icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 30px;
}

.test-item .pending {
  color: #ffc107;
}

.test-item .success {
  color: #28a745;
}

.test-item .error {
  color: #dc3545;
}

.test-item .content {
  flex: 1;
  padding: 0;
}

.test-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #333;
}

.test-item code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
  color: #e83e8c;
}

.test-result {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

.test-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 1rem 0;
  width: 100%;
}

.test-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.test-button:active {
  transform: translateY(0);
}

.instructions {
  background: #e7f3ff;
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.instructions h3 {
  color: #2196f3;
  margin-bottom: 0.5rem;
}

.instructions ol {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.instructions li {
  margin-bottom: 0.5rem;
}

pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

.picture-example {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  text-align: center;
}

.picture-example-label {
  margin-bottom: 1rem;
  color: #667eea;
  font-weight: bold;
}

.picture-example-hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.hidden-test {
  display: none;
}

.jsonld-output {
  margin-top: 0.5rem;
}
