/* ============================================
   Partner Test - Main Stylesheet
   Design: Soft, warm, feminine aesthetic
   ============================================ */

:root {
  --primary: #e88d9e;
  --primary-dark: #d47084;
  --primary-light: #f5e0e5;
  --accent: #f0c4c4;
  --bg: #fef9f7;
  --bg-card: #ffffff;
  --text: #3d2c2e;
  --text-light: #8a7a7c;
  --text-muted: #b5a8aa;
  --border: #f0e4e2;
  --shadow: 0 2px 16px rgba(180, 120, 120, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 20px 10px;
}
.header h1 {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.header .subtitle {
  color: var(--text-light);
  font-size: 1em;
  margin-top: 6px;
}

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 141, 158, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232, 141, 158, 0.45); }
.btn-secondary {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.btn-secondary:hover { background: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 20px; font-size: 0.9em; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95em;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1em;
  transition: border-color 0.2s;
  font-family: var(--font);
}
.form-input:focus { outline: none; border-color: var(--primary); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  margin: 3px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Options */
.options-list { list-style: none; }
.options-list li {
  margin-bottom: 10px;
}
.option-btn {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-align: left;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-family: var(--font);
}
.option-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.option-btn.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(232,141,158,0.2); }

/* Result score */
.score-display {
  text-align: center;
  padding: 30px 0;
}
.score-number {
  font-size: 4em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.score-label { color: var(--text-light); font-size: 1.1em; margin-top: 10px; }

/* Token display */
.token-box {
  background: #f8f4f3;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  word-break: break-all;
  color: var(--text-light);
  margin: 16px 0;
  position: relative;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.nav-brand { font-weight: 600; color: var(--primary-dark); text-decoration: none; font-size: 1.1em; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 0.9em; }
.nav-links a:hover { color: var(--primary); }

/* Flash messages */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.95em;
}
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.admin-table th, .admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.admin-table th { font-weight: 600; color: var(--text-light); font-size: 0.85em; text-transform: uppercase; }

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hidden utility */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 560px) {
  .container { padding: 20px 12px; }
  .card { padding: 24px 16px; }
  .score-number { font-size: 3em; }
  .nav { flex-direction: column; gap: 10px; }
}

/* Verify result */
.verify-result { text-align: center; padding: 20px 0; }
.verify-icon { font-size: 3em; margin-bottom: 12px; }
.verify-authentic { color: #155724; }
.verify-fake { color: #721c24; }

/* Hero section */
.hero { text-align: center; padding: 60px 20px 40px; }
.hero h1 { font-size: 2.4em; font-weight: 700; color: var(--primary-dark); }
.hero p { font-size: 1.15em; color: var(--text-light); margin: 16px 0 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero .illustration { font-size: 4em; margin-bottom: 20px; }

/* Footer */
.footer { text-align: center; color: var(--text-muted); font-size: 0.85em; padding: 30px 0; }
