/* DraftLens Styles */
:root {
--color-primary: #2563eb;
--color-primary-dark: #1d4ed8;
--color-secondary: #64748b;
--color-success: #10b981;
--color-warning: #f59e0b;
--color-danger: #ef4444;
--color-bg: #f8fafc;
--color-card: #ffffff;
--color-text: #1e293b;
--color-text-light: #64748b;
--border-radius: 8px;
--shadow: 0 1px 3px rgba(0,0,0,0.1);
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
--max-width: 1200px;
}

* {
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(--color-text);
background-color: var(--color-bg);
}

.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 1rem;
}

site-header {
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
color: white;
padding: 1.5rem 0;
margin-bottom: 2rem;
}

.site-header h1 {
font-size: 2rem;
margin-bottom: 0.25rem;
}

.tagline {
font-size: 1rem;
opacity: 0.9;
}

.site-header nav a {
color: white;
text-decoration: none;
margin-left: 1rem;
opacity: 0.9;
transition: opacity 0.2s;
}

.site-header nav a:hover {
opacity: 1;
}

section {
background: var(--color-card);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 1.5rem;
margin-bottom: 1.5rem;
}

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

section h3 {
font-size: 1.125rem;
margin: 1rem 0 0.5rem;
color: var(--color-text);
}

.input-area textarea {
width: 100%;
padding: 1rem;
border: 2px solid #e2e8f0;
border-radius: var(--border-radius);
font-family: inherit;
font-size: 1rem;
resize: vertical;
margin-bottom: 1rem;
}

.input-area textarea:focus {
outline: none;
border-color: var(--color-primary);
}

.input-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}

.primary-btn {
background: var(--color-primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: background 0.2s;
}

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

.secondary-btn {
background: #f1f5f9;
color: var(--color-text);
border: 1px solid #e2e8f0;
padding: 0.75rem 1rem;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 0.875rem;
transition: all 0.2s;
}

.secondary-btn:hover {
background: #e2e8f0;
}

.feedback-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1rem;
}

.feedback-card {
background: var(--color-bg);
border-radius: var(--border-radius);
padding: 1rem;
}

.feedback-card h3 {
color: var(--color-primary);
margin-bottom: 0.75rem;
}

.feedback-list {
list-style: none;
}

.feedback-list li {
padding: 0.5rem 0;
padding-left: 1.5rem;
position: relative;
}

.feedback-list li:before {
content: '';
position: absolute;
left: 0;
top: 0.75rem;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--color-secondary);
}

.feedback-list li[data-score="good"]:before {
background: var(--color-success);
}

.feedback-list li[data-score="needs-work"]:before {
background: var(--color-warning);
}

.results-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
}

.result-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}

.history-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.history-item {
padding: 0.75rem;
background: var(--color-bg);
border-radius: var(--border-radius);
cursor: pointer;
transition: background 0.2s;
}

.history-item:hover {
background: #e2e8f0;
}

.no-history {
color: var(--color-text-light);
font-style: italic;
}

.support-content h2 {
margin-bottom: 1rem;
}

support-content h3 {
margin-top: 1.5rem;
}

support-content ul {
margin: 0.5rem 0;
padding-left: 1.5rem;
}

support-content li {
margin: 0.25rem 0;
}

site-footer {
background: #1e293b;
color: white;
padding: 1.5rem 0;
margin-top: 2rem;
}

site-footer a {
color: #94a3b8;
text-decoration: none;
}

site-footer nav {
display: flex;
gap: 1rem;
}

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

@media (max-width: 768px) {
.site-header h1 {
font-size: 1.5rem;
}

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

.results-header {
flex-direction: column;
align-items: flex-start;
}

.input-actions {
flex-direction: column;
}

.primary-btn,
.secondary-btn {
width: 100%;
}
}

@media print {
.site-header,
.site-footer,
.input-actions,
.result-actions {
 display: none;
}

section {
box-shadow: none;
border: 1px solid #ccc;
}
}


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