/* AI Image Prompt Generator — custom styles */

/* Main content layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form section */
.form-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quality options */
.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #374151;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #2563eb;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.buttons button {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

#generateBtn {
    background: #2563eb;
    color: #fff;
}

#generateBtn:hover {
    background: #1d4ed8;
}

#copyBtn {
    background: #059669;
    color: #fff;
}

#copyBtn:hover {
    background: #047857;
}

/* Output section */
.output-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.25rem;
    min-height: 80px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.output-placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
}

/* Sections wrapper */
.sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* How-to steps */
.howto-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    margin: 0;
    padding-top: 0.2rem;
}

/* FAQ items */
.faq-item {
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: #f9fafb;
    color: #111827;
}

.faq-answer {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    border-top: 1px solid #e0e6ed;
}

/* Related links */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-link {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.related-link:hover {
    background: #dbeafe;
}

/* Tagline */
.tagline {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Dark mode */
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .output-section {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .form-group label {
    color: #d1d5db;
}

html[data-theme="dark"] .form-group input[type="text"],
html[data-theme="dark"] .form-group select {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

html[data-theme="dark"] .checkbox-group {
    color: #d1d5db;
}

html[data-theme="dark"] .howto-step p {
    color: #d1d5db;
}

html[data-theme="dark"] .faq-item {
    border-color: #374151;
}

html[data-theme="dark"] .faq-question {
    background: #111827;
    color: #f9fafb;
}

html[data-theme="dark"] .faq-answer {
    color: #d1d5db;
    border-color: #374151;
}

html[data-theme="dark"] .related-link {
    background: #1e3a5f;
    color: #93c5fd;
    border-color: #1d4ed8;
}

html[data-theme="dark"] .tagline {
    color: #9ca3af;
}
