/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #d4a84b;
  --primary-hover: #e6bc5f;
  --accent-color: #5fb3b3;
  --success-color: #87c38f;
  --error-color: #e57373;
  --warning-color: #d4a84b;
  --bg-color: #1a1d23;
  --card-bg: #23272f;
  --card-border: #333842;
  --text-color: #e8e8e8;
  --text-muted: #9ca3af;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

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

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.status-value.online {
  color: var(--success-color);
}

.status-value.offline {
  color: var(--error-color);
}

/* Form */
.claim-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--bg-color);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-color);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: monospace;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.2);
}

.form-group input[type="text"]::placeholder {
  color: var(--text-muted);
}

.form-group .hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Turnstile container */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-color);
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Results */
.result {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.result-success {
  border-left: 4px solid var(--success-color);
}

.result-success h3 {
  color: var(--success-color);
  margin-bottom: 0.5rem;
}

.result-error {
  border-left: 4px solid var(--error-color);
}

.result-error h3 {
  color: var(--error-color);
  margin-bottom: 0.5rem;
}

.result-details {
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.result-details p {
  margin-bottom: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.result-details p:last-child {
  margin-bottom: 0;
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Stats section */
.stats-section {
  margin-bottom: 2rem;
}

.stats-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Info section */
.info-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.info-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.info-section h2:not(:first-child) {
  margin-top: 1.5rem;
}

.info-section ol,
.info-section ul {
  padding-left: 1.5rem;
}

.info-section li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .status-bar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .status-item {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
