/* AI Prompt Generator - Light Theme Styles */

/* Main Container */
.ai-prompt-generator {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.ai-prompt-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-prompt-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-prompt-header p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Main Form Card */
.ai-prompt-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.ai-prompt-form:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Main Input Textarea */
.ai-prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background: #f9fafb;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ai-prompt-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ai-prompt-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Dropdown Selects */
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-select:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Generate Button */
.ai-prompt-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-prompt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.ai-prompt-button:active {
    transform: translateY(0);
}

.ai-prompt-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.ai-prompt-button.loading {
    pointer-events: none;
}

.ai-prompt-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Results Section */
.ai-prompt-results {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-top: 2rem;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.ai-prompt-results.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.results-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Generated Prompt Display */
.generated-prompt {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Action Buttons */
.results-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f8fafc;
}

.action-button.primary {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.action-button.primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.action-button.success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Copy Success Animation */
.copy-success {
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Error and Success Messages */
.ai-prompt-error,
.ai-prompt-success {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ai-prompt-error {
    border-left: 4px solid #ef4444;
}

.ai-prompt-success {
    border-left: 4px solid #10b981;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.error-icon,
.success-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.error-message,
.success-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
}

.error-close,
.success-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.error-close:hover,
.success-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile responsive for error/success messages */
@media (max-width: 768px) {
    .error-content,
    .success-content {
        padding: 0.875rem 1rem;
        gap: 0.5rem;
    }
    
    .error-message,
    .success-message {
        font-size: 0.9rem;
    }
    
    .error-icon,
    .success-icon {
        font-size: 1.1rem;
    }
    
    .error-close,
    .success-close {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .error-content,
    .success-content {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .error-message,
    .success-message {
        font-size: 0.85rem;
    }
    
    .error-close,
    .success-close {
        align-self: flex-end;
        margin-top: -0.5rem;
    }
}

/* Category Icons */
.category-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-prompt-generator {
        margin: 1rem auto;
        padding: 0 15px;
    }
    
    .ai-prompt-form {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ai-prompt-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .ai-prompt-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-button {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Fix text input alignment */
    .ai-prompt-input {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
        line-height: 1.4;
        min-height: 100px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        resize: vertical;
    }
    
    /* Fix select dropdown alignment */
    .form-select {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
        line-height: 1.4;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix form labels */
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    /* Fix form groups */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Fix options grid */
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Fix advanced options */
    .advanced-toggle {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .advanced-content {
        padding: 1rem;
    }
    
    /* Fix results section */
    .ai-prompt-results {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .results-header {
        margin-bottom: 1rem;
    }
    
    .results-title {
        font-size: 1.25rem;
    }
    
    .generated-prompt {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
        max-height: 300px;
        overflow-y: auto;
    }
    
    /* Fix social share */
    .social-share {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .social-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-button {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    /* Fix usage stats */
    .usage-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Fix feature highlights */
    .feature-highlights {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        text-align: center;
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-item p {
        font-size: 0.875rem;
    }
    
    /* Fix help section */
    .help-section {
        margin-top: 1.5rem;
    }
    
    .help-accordion summary {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .help-content {
        padding: 1rem;
    }
    
    .help-tips {
        gap: 0.75rem;
    }
    
    .tip-item {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    /* Fix footer */
    .ai-prompt-footer {
        margin-top: 2rem;
        padding: 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .ai-prompt-form {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .ai-prompt-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .ai-prompt-header p {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    /* Ensure text inputs don't overflow */
    .ai-prompt-input,
    .form-select {
        padding: 0.75rem;
        font-size: 16px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Fix button sizing */
    .ai-prompt-button {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Fix results padding */
    .ai-prompt-results {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .generated-prompt {
        padding: 0.875rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Fix action buttons */
    .action-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    /* Fix advanced toggle */
    .advanced-toggle {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Fix form labels */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    /* Fix category icons */
    .category-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    /* Fix help accordion */
    .help-accordion summary {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .help-content {
        padding: 0.875rem;
        border-radius: 0 0 8px 8px;
    }
    
    .tip-item {
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Fix feature highlights */
    .feature-highlights {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .feature-item {
        padding: 0.875rem;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
    
    .feature-item h4 {
        font-size: 0.95rem;
    }
    
    .feature-item p {
        font-size: 0.8rem;
    }
    
    /* Fix usage stats */
    .usage-stats {
        padding: 0.875rem;
        border-radius: 12px;
    }
    
    .stat-item {
        padding: 0.875rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Fix social share */
    .social-share {
        padding: 0.875rem;
        border-radius: 12px;
    }
    
    .social-share-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .social-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Fix footer */
    .ai-prompt-footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .ai-prompt-generator {
        padding: 0 10px;
    }
    
    .ai-prompt-form {
        padding: 0.875rem;
    }
    
    .ai-prompt-header h1 {
        font-size: 1.5rem;
    }
    
    .ai-prompt-header p {
        font-size: 0.9rem;
    }
    
    .ai-prompt-input,
    .form-select {
        padding: 0.625rem;
        font-size: 16px;
    }
    
    .ai-prompt-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .action-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .generated-prompt {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .results-title {
        font-size: 1.1rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .category-icon {
        font-size: 0.9rem;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .ai-prompt-generator {
        margin: 0.5rem auto;
    }
    
    .ai-prompt-form {
        padding: 1rem;
    }
    
    .ai-prompt-header {
        margin-bottom: 1rem;
    }
    
    .ai-prompt-header h1 {
        font-size: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .ai-prompt-input {
        min-height: 80px;
    }
    
    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .results-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .action-button {
        width: auto;
        flex: 1;
        padding: 0.75rem 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ai-prompt-input,
    .form-select,
    .ai-prompt-button,
    .action-button {
        border-width: 0.5px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .ai-prompt-button:hover,
    .action-button:hover,
    .advanced-toggle:hover {
        transform: none;
        box-shadow: none;
    }
    
    .ai-prompt-button:active,
    .action-button:active,
    .advanced-toggle:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets */
    .form-select {
        min-height: 44px;
    }
    
    .ai-prompt-button,
    .action-button {
        min-height: 44px;
    }
    
    .advanced-toggle {
        min-height: 44px;
    }
    
    .social-button {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Focus styles for accessibility */
.ai-prompt-input:focus,
.form-select:focus,
.ai-prompt-button:focus,
.action-button:focus,
.advanced-toggle:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ai-prompt-form,
    .ai-prompt-results,
    .advanced-content {
        transition: none;
    }
    
    .ai-prompt-button:hover,
    .action-button:hover {
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Accessibility */
.ai-prompt-button:focus,
.action-button:focus,
.form-select:focus,
.ai-prompt-input:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ai-prompt-form {
        border: 2px solid #000000;
    }
    
    .ai-prompt-input,
    .form-select {
        border: 2px solid #000000;
    }
    
    .ai-prompt-button {
        background: #000000;
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ai-prompt-form,
    .ai-prompt-button,
    .action-button,
    .ai-prompt-input,
    .form-select {
        transition: none;
    }
    
    .ai-prompt-results {
        animation: none;
    }
    
    .ai-prompt-button:hover {
        transform: none;
    }
}

/* Dark mode support (for future use) */
@media (prefers-color-scheme: dark) {
    .ai-prompt-generator.dark-mode {
        color: #f9fafb;
    }
    
    .ai-prompt-generator.dark-mode .ai-prompt-form {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ai-prompt-generator.dark-mode .ai-prompt-input,
    .ai-prompt-generator.dark-mode .form-select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .ai-prompt-generator.dark-mode .generated-prompt {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* Print styles */
@media print {
    .ai-prompt-form {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .ai-prompt-button,
    .results-actions {
        display: none;
    }
    
    .generated-prompt {
        border: 1px solid #000;
        background: transparent;
    }
}

/* Loading spinner for the main form */
.ai-prompt-loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.ai-prompt-loading.show {
    display: block;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Category-specific styling */
.category-content .category-icon {
    color: #3b82f6;
}

.category-creative .category-icon {
    color: #8b5cf6;
}

.category-business .category-icon {
    color: #059669;
}

.category-educational .category-icon {
    color: #dc2626;
}

.category-technical .category-icon {
    color: #7c3aed;
}

.category-image .category-icon {
    color: #f59e0b;
}

/* Advanced features toggle */
.advanced-options {
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.advanced-toggle {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    width: 100%;
    text-align: left;
}

.advanced-toggle:hover {
    color: #4f46e5;
}

.advanced-toggle .toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.advanced-toggle.collapsed .toggle-arrow {
    transform: rotate(-90deg);
}

.advanced-content {
    display: block;
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

.advanced-content.show {
    display: block;
}

.advanced-content[style*="display: none"] {
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Premium features hint */
.premium-hint {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400e;
}

.premium-hint::before {
    content: '⭐';
    font-size: 1.5rem;
}

/* Stats display */
.usage-stats {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.stat-label {
    margin-top: 0.25rem;
}

/* Social sharing buttons */
.social-share {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.social-share-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-button.twitter {
    background: #1da1f2;
}

.social-button.facebook {
    background: #4267b2;
}

.social-button.linkedin {
    background: #0077b5;
}

.social-button.reddit {
    background: #ff4500;
}

/* Floating action button for mobile */
@media (max-width: 640px) {
    .floating-generate {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .floating-generate:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus trap for accessibility */
.ai-prompt-generator:focus-within {
    outline: 2px solid #6366f1;
    outline-offset: 4px;
    border-radius: 16px;
}

/* Custom scrollbar for generated prompt */
.generated-prompt {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #e5e7eb;
}

.generated-prompt::-webkit-scrollbar {
    width: 8px;
}

.generated-prompt::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

.generated-prompt::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

.generated-prompt::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}