/* SplitFit - Workout Split Generator Styles */
:root {
    --primary: #4a90d9;
    --primary-dark: #357abd;
    --secondary: #6c757d;
    --success: #28a745;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #212529;
    --border: #dee2e6;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: var(--card-bg);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.tagline {
    color: var(--secondary);
    font-size: 1rem;
}

site-footer {
    background: var(--text);
    color: white;
    padding: 24px 0;
    margin-top: 48px;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.section {
    margin-bottom: 48px;
}

h1, h2, h3 {
    margin-bottom: 16px;
    color: var(--text);
}

h2 { font-size: 1.5rem; }

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--card-bg);
}

select:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.day-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-btn {
    padding: 10px 16px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

day-btn:hover { background: var(--bg); }

day-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: var(--secondary);
    color: white;
    margin-right: 8px;
}

.btn-secondary:hover { opacity: 0.9; }

.split-output {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.workout-day {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
}

.workout-day h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.exercise-list {
    margin: 0;
    padding-left: 20px;
}

.muscle-chart {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.balance-note {
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.support-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.support-content h3 { margin-top: 20px; }

.support-content p { margin-bottom: 12px; }

.output-actions { margin-bottom: 24px; }

@media (max-width: 600px) {
    .logo { font-size: 1.5rem; }
    .day-selector { justify-content: center; }
    .btn-primary, .btn-secondary { width: 100%; margin-bottom: 8px; }
    .output-actions { display: flex; flex-direction: column; gap: 8px; }
}

@media print {
    .site-header, .site-footer, .generator-section, .visualization-section, .output-actions { display: none; }
    .split-output { border: none; padding: 0; }
}


/* 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;
}
