/* FAQs Generator Tool Styles */

/* Container and Layout */
.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.faqs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faqs-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faqs-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.faqs-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.faqs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.faqs-form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faqs-form-group {
    position: relative;
}

.faqs-form-group.faqs-required .faqs-label::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.faqs-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.faqs-input,
.faqs-textarea,
.faqs-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.faqs-input:focus,
.faqs-textarea:focus,
.faqs-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.faqs-input:hover,
.faqs-textarea:hover,
.faqs-select:hover {
    border-color: #d1d5db;
}

.faqs-textarea {
    resize: vertical;
    min-height: 60px;
}

.faqs-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.faqs-error-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Form Actions */
.faqs-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Buttons */
.faqs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 120px;
    position: relative;
}

.faqs-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.faqs-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.faqs-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.faqs-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.faqs-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.faqs-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.faqs-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.faqs-btn-outline:hover {
    background: #667eea;
    color: white;
}

.faqs-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: auto;
}

/* Results Section */
.faqs-results {
    animation: faqsSlideIn 0.5s ease-out;
}

@keyframes faqsSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faqs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.faqs-results-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.faqs-results-actions {
    display: flex;
    gap: 1rem;
}

.faqs-list {
    display: grid;
    gap: 1.5rem;
}

/* FAQ Items */
.faqs-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faqs-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faqs-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.faqs-item-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    background: #f0f4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.faqs-item-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.faqs-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faqs-badge-tone {
    background: #ddd6fe;
    color: #5b21b6;
}

.faqs-badge-platform {
    background: #dbeafe;
    color: #1e40af;
}

.faqs-badge-style {
    background: #dcfce7;
    color: #166534;
}

.faqs-item-content {
    margin-bottom: 1rem;
}

.faqs-question, .faqs-answer {
    margin-bottom: 1.25rem;
}

.faqs-question:last-child, .faqs-answer:last-child {
    margin-bottom: 0;
}

.faqs-question-header, .faqs-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.faqs-question-title, .faqs-answer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faqs-question-content, .faqs-answer-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
    min-height: 60px;
    outline: none;
}

.faqs-question-content {
    border-left: 4px solid #667eea;
}

.faqs-answer-content {
    border-left: 4px solid #10b981;
}

.faqs-question-content:focus, .faqs-answer-content:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.faqs-copy-btn {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.faqs-copy-btn:hover {
    background: #667eea;
    color: white;
}

.faqs-item-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faqs-container {
        padding: 1rem;
    }

    .faqs-title {
        font-size: 2rem;
    }

    .faqs-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faqs-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .faqs-results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .faqs-results-actions {
        justify-content: center;
    }

    .faqs-item-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .faqs-item-badges {
        justify-content: center;
    }

    .faqs-question-header, .faqs-answer-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .faqs-copy-btn {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .faqs-container {
        padding: 0.5rem;
    }

    .faqs-title {
        font-size: 1.75rem;
    }

    .faqs-form, .faqs-item {
        padding: 1.25rem;
    }

    .faqs-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Focus States for Accessibility */
.faqs-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.faqs-input:focus-visible,
.faqs-textarea:focus-visible,
.faqs-select:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading Animation */
.faqs-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faqs-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: faqsSpin 1s linear infinite;
}

@keyframes faqsSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Animation */
.faqs-copy-btn:active {
    transform: scale(0.95);
}

/* Custom Scrollbar */
.faqs-question-content::-webkit-scrollbar,
.faqs-answer-content::-webkit-scrollbar {
    width: 6px;
}

.faqs-question-content::-webkit-scrollbar-track,
.faqs-answer-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.faqs-question-content::-webkit-scrollbar-thumb,
.faqs-answer-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.faqs-question-content::-webkit-scrollbar-thumb:hover,
.faqs-answer-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print Styles */
@media print {
    .faqs-form,
    .faqs-results-actions,
    .faqs-copy-btn,
    .faqs-item-footer .faqs-btn,
    .faqs-item-badges {
        display: none;
    }

    .faqs-container {
        max-width: none;
        padding: 0;
    }

    .faqs-item {
        break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}