/* YouTube Script Outline Generator — custom styles */

/* Main grid */
.main-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

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

.card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form groups */
.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);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    background: #2563eb;
    color: #fff;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-copy {
    background: #059669;
    margin-top: 0.75rem;
}

.btn-copy:hover {
    background: #047857;
}

/* Output card */
.output-card {
    display: flex;
    flex-direction: column;
}

.output-area {
    flex: 1;
    width: 100%;
    min-height: 320px;
    padding: 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    resize: vertical;
    background: #f9fafb;
    color: #111827;
    box-sizing: border-box;
}

.output-area:focus {
    outline: none;
    border-color: #2563eb;
}

/* Token / word count */
.token-count {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* FAQ section */
.faq-section {
    margin-top: 2.5rem;
}

.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

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

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

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

/* Related section */
.related-section {
    margin-top: 2rem;
}

.related-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.related-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
}

.related-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.related-card a {
    font-size: 0.8125rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.related-card a:hover {
    text-decoration: underline;
}

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

html[data-theme="dark"] .card h2 {
    color: #f9fafb;
}

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"] .output-area {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

html[data-theme="dark"] .faq-section h2,
html[data-theme="dark"] .related-section h2 {
    color: #f9fafb;
}

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-card {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .related-card h4 {
    color: #f9fafb;
}

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