/* ChatGPT Prompt Refiner — custom styles */

/* Ad slot */
.ad-slot {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
}

/* Options row */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 140px;
}

.option-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.option-group select {
    padding: 0.45rem 0.6rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    font-size: 0.875rem;
}

.option-group select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Button group */
.button-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.6rem 1.25rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

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

.btn-secondary {
    padding: 0.6rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main content panels */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.panel {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.panel-header {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e0e6ed;
}

.panel-header h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.textarea-wrapper {
    position: relative;
    padding: 0.75rem;
}

.textarea-wrapper textarea {
    width: 100%;
    min-height: 220px;
    padding: 0.6rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    background: #f9fafb;
    color: #111827;
    box-sizing: border-box;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

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

.faq-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.faq-item {
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    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 tools */
.related-tools {
    margin-top: 1.5rem;
}

.related-tools h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-grid a {
    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-grid a:hover {
    background: #dbeafe;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #059669;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

html[data-theme="dark"] .option-group select {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

html[data-theme="dark"] .btn-secondary {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

html[data-theme="dark"] .panel {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .panel-header {
    background: #111827;
    border-color: #374151;
}

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

html[data-theme="dark"] .textarea-wrapper textarea {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

html[data-theme="dark"] .faq-section h3,
html[data-theme="dark"] .related-tools h3 {
    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-grid a {
    background: #1e3a5f;
    color: #93c5fd;
    border-color: #1d4ed8;
}
