/* AI Prompt Generator Pro - Professional Styles */
.ai-prompt-generator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Dashboard Styles */
.ai-prompt-dashboard {
    text-align: center;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.dashboard-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.generator-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    color: inherit;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.generator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    color: inherit;
    text-decoration: none;
}

.generator-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.generator-card p {
    color: #718096;
    font-size: 0.95em;
    line-height: 1.6;
}

.card-features {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-features span {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
}

.dashboard-features {
    margin-top: 80px;
    text-align: center;
}

.dashboard-features h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature p {
    color: #718096;
    line-height: 1.6;
}

/* Form Styles */
.prompt-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
}

.form-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.prompt-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: '📋';
    font-size: 1.2em;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.generate-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Output Styles */
.prompt-output-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
    display: none;
}

.prompt-output-container.show {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.output-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.output-actions {
    display: flex;
    gap: 12px;
}

.copy-btn, .download-btn, .clear-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.copy-btn:hover, .download-btn:hover, .clear-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.prompt-output-content {
    padding: 0;
    background: #0f1419;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    line-height: 1.7;
    position: relative;
}

.prompt-meta-bar {
    background: #1e2a3a;
    padding: 15px 30px;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.prompt-stats {
    display: flex;
    gap: 20px;
    color: #a0aec0;
}

.prompt-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt-ai-compatibility {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-badge {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.prompt-text-container {
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.prompt-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95em;
    line-height: 1.6;
}

.prompt-seo-optimized {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.seo-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.seo-score .score {
    background: #68d391;
    color: #1a202c;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
}

.seo-tips {
    color: #a0aec0;
    font-size: 0.9em;
}

.prompt-quality {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.quality-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: #68d391;
}

/* Scrollbar styling */
.prompt-text-container::-webkit-scrollbar {
    width: 8px;
}

.prompt-text-container::-webkit-scrollbar-track {
    background: #1a202c;
}

.prompt-text-container::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.prompt-text-container::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(-5px);
    text-decoration: none;
}

/* Prompt Templates */
.prompt-templates {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.prompt-templates h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1em;
}

.template-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.template-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.template-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* Copy feedback */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #68d391;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(104, 211, 145, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form enhancements */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #718096;
}

.form-group select {
    appearance: none;
    padding-right: 45px;
}

.character-count {
    text-align: right;
    font-size: 0.8em;
    color: #718096;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-prompt-generator {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 40px 20px;
    }
    
    .dashboard-header h1 {
        font-size: 2.2em;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .prompt-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .output-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .output-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .prompt-meta-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .prompt-stats {
        justify-content: center;
    }
    
    .prompt-text-container {
        padding: 20px;
        max-height: 500px;
    }
    
    .prompt-ai-compatibility {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: #667eea;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background: #2d3748;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8em;
    font-weight: normal;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}