/* Merab Dvalishvili Training Prep Guide Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #222; background: #fff; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: white; padding: 1rem 0; }
.site-header h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.site-nav a { color: #e6e6e6; margin-left: 1.5rem; font-size: 0.9rem; }
.site-nav a:hover { color: #ffd700; }

.hero-section { text-align: center; padding: 2rem 0; border-bottom: 1px solid #eee; }
.hero-section h2 { font-size: 1.75rem; margin-top: 0; color: #1a1a2e; }
.hero-section p { color: #555; max-width: 600px; margin: 0 auto; }

.camp-config { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.config-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.config-group select { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }

.phase-builder { padding: 1.5rem 0; border-bottom: 1px solid #eee; }
.phase-builder h3 { font-size: 1.25rem; margin-top: 0; color: #1a1a2e; }
.phases-container { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.phase-card { border: 2px solid #e0e0e0; border-radius: 8px; padding: 1rem; flex: 1 1 300px; min-width: 280px; background: #f9f9f9; }
.phase-card h4 { margin-top: 0; font-size: 1rem; color: #1a1a2e; }
.phase-card p { font-size: 0.85rem; color: #666; margin: 0.5rem 0; }
.technique-select { width: 100%; margin: 0.5rem 0; padding: 0.5rem; border: 1px solid #bbb; border-radius: 4px; font-size: 0.9rem; }
.remove-phase { background: #ff4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.remove-phase:hover { background: #cc0000; }

.secondary-btn { background: #0066cc; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; font-size: 1rem; margin: 0.25rem; }
.secondary-btn:hover { background: #0052a3; }
.secondary-btn:disabled { background: #aaa; cursor: not-allowed; }

.results-section { padding: 1.5rem 0; }
.results-section h3 { font-size: 1.25rem; color: #1a1a2e; }
.results-display { background: #f0f8ff; border-left: 4px solid #0066cc; padding: 1rem; margin: 1rem 0; min-height: 100px; border-radius: 0 8px 8px 0; }

.action-buttons { text-align: center; padding: 1rem 0; }

.reference-section { padding: 1.5rem 0; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1rem 0; }
.ref-card { background: #fff8e6; border: 1px solid #ffd700; border-radius: 8px; padding: 1rem; }
.ref-card h4 { margin-top: 0; font-size: 1rem; color: #1a1a2e; }
.ref-card p { font-size: 0.85rem; color: #555; }

.ad-slot { text-align: center; margin: 2rem 0; padding: 1rem; background: #f5f5f5; border-radius: 8px; border: 1px dashed #ccc; }

.faq-section { padding: 1.5rem 0; }
.faq-item { margin-bottom: 1.5rem; }
.faq-item h4 { font-size: 1rem; color: #1a1a2e; margin-top: 0; }
.faq-item p { font-size: 0.9rem; color: #555; }

.site-footer { background: #1a1a2e; color: #e6e6e6; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid #333; }
.site-footer a { color: #ffd700; }
.site-footer-nav a { margin-right: 1.5rem; font-size: 0.85rem; }

@media (max-width: 600px) {
  .site-header h1 { font-size: 1.25rem; }
  .hero-section h2 { font-size: 1.5rem; }
  .phases-container { flex-direction: column; }
  .phase-card { min-width: 100%; }
  .ref-grid { grid-template-columns: 1fr; }
}

/* Phase card active state */
.phase-card.selected { border-color: #0066cc; background: #e6f0ff; }

/* Technique selected state */
.technique-select option[value=''] { background: #f9f9f9; }
.technique-select option[value='shots']:not([value='']) { background: #e6f7ff; }
.technique-select option[value='clinches']:not([value='']) { background: #fff0e6; }

/* Empty state styling */
.empty-state { color: #888; font-style: italic; padding: 1rem; }

/* Copy feedback */
.copy-feedback { background: #d4edda !important; color: #155724; padding: 0.75rem; border-radius: 4px; margin-top: 0.5rem; }

/* Responsive adjustments */
@media (max-width: 480px) {
  .container { padding: 0 0.5rem; }
  .hero-section { padding: 1.5rem 0; }
  .site-nav a { margin-left: 1rem; font-size: 0.8rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
