/* Niche Builder Frontend Styles */

/* Generator Form Container */
.promptgen-generator-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.promptgen-generator-form.style-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.promptgen-generator-form.style-minimal {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

/* Form Elements */
.promptgen-form {
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Advanced Options */
.advanced-toggle {
    margin: 20px 0;
    text-align: center;
}

.toggle-advanced {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.toggle-advanced:hover {
    color: #764ba2;
}

.advanced-options {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

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

.btn-copy {
    background: #28a745;
    color: white;
}

.btn-download {
    background: #17a2b8;
    color: white;
}

.btn-regenerate {
    background: #ffc107;
    color: #212529;
}

/* Prompt Output */
.prompt-output {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

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

.prompt-output h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.prompt-result {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.prompt-text {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #212529;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 15px;
    padding: 15px;
    background: #f1f3f5;
    border-radius: 3px;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt-actions .btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* Prompt Score */
.prompt-score {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.prompt-score h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #495057;
}

.score-meter {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    background-size: 300% 100%;
    border-radius: 15px;
    transition: width 1s ease, background-position 1s ease;
}

.score-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.score-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Suggestions */
.prompt-suggestions {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
}

.prompt-suggestions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #495057;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 3px;
    transition: transform 0.2s;
}

.suggestions-list li:hover {
    transform: translateX(5px);
}

/* Examples Section */
.prompt-examples {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.prompt-examples h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.examples-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.example-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.example-card:hover {
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.example-card h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.example-card p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

/* Loading Spinner */
.promptgen-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.promptgen-loading p {
    margin-top: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Hero Section */
.promptgen-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    font-size: 18px;
    padding: 15px 35px;
}

.hero-stats {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
}

/* Content Sections */
.promptgen-content-section {
    margin-bottom: 40px;
    padding: 30px 0;
}

.promptgen-content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.promptgen-content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #667eea;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content ul,
.section-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.section-content li {
    margin-bottom: 10px;
}

/* FAQ Section */
.promptgen-faq-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-question {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

/* Comparison Table */
.promptgen-comparison-section {
    margin-bottom: 40px;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background: #e7f3ff;
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

/* Related Tools */
.related-generators {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-generators li {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.related-generators li:hover {
    background: #e7f3ff;
    transform: translateX(5px);
}

.related-generators a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.related-generators a:hover {
    color: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .promptgen-generator-form {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .promptgen-content-section h2 {
        font-size: 24px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .promptgen-faq-section {
        padding: 25px 20px;
    }
}