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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #faf9f6;
    font-size: 16px;
}

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo svg {
    flex-shrink: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.main-nav a:hover {
    color: #000;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #FF7F50 0%, #FF6347 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 24px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: #FF6347;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    background: #eee;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 8px;
}

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

/* Generator Section */
.generator-section {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.generator-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.generator-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 180px;
}

.control-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

select, input[type="range"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
}

.tone-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

.prompts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.prompt-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #222;
    flex: 1;
}

.prompt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.prompt-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    color: #555;
    transition: color 0.2s;
}

.prompt-actions button:hover {
    color: #FF6347;
}

.prompt-actions .favorite-btn.saved {
    color: #FF6347;
}

.empty-state {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Favorites Section */
.favorites-section {
    padding: 40px 0;
    background: #faf9f6;
    border-bottom: 1px solid #e0e0e0;
}

.favorites-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.favorites-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}

.favorites-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorites-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.favorites-list li:last-child {
    border-bottom: none;
}

.favorites-list .fav-text {
    flex: 1;
    margin-right: 12px;
}

.favorites-list .remove-fav {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
}

.favorites-list .remove-fav:hover {
    color: #FF6347;
}

.favorites-actions {
    margin-top: 16px;
    text-align: right;
}

/* Supporting Content */
.supporting-content {
    padding: 40px 0;
    background: #fff;
}

.supporting-content h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

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

.content-block h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #FF6347;
}

.content-block p, .content-block ul {
    color: #444;
    line-height: 1.6;
}

.content-block ul {
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 6px;
}

/* Footer */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ccc;
    text-decoration: underline;
}

.site-footer nav {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .controls {
        flex-direction: column;
    }
    .prompts-container {
        grid-template-columns: 1fr;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .site-header .container {
        flex-direction: column;
        gap: 8px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}


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