/* ===========================================
   PROMPTS LIBRARY - Design Moderne
   =========================================== */

:root {
    --prompts-primary: #2563eb;
    --prompts-primary-hover: #1d4ed8;
    --prompts-accent: #f97316;
    --prompts-bg: #f8fafc;
    --prompts-card: #ffffff;
    --prompts-border: #e2e8f0;
    --prompts-text: #1e293b;
    --prompts-text-muted: #64748b;
    --prompts-success: #10b981;
}

/* ============ HUB PAGE ============ */
.prompts-hub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Hero Section */
.prompts-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.prompts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.prompts-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.prompts-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.prompts-hero h1 span {
    color: var(--prompts-accent);
}

.prompts-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.prompts-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2.5rem;
}

.prompts-stat {
    text-align: center;
}

.prompts-stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--prompts-accent);
    line-height: 1;
}

.prompts-stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Section Headers */
.prompts-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.prompts-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--prompts-text);
}

.prompts-section-header i {
    color: var(--prompts-accent);
    font-size: 1.25rem;
}

/* Categories Grid */
.prompts-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.prompts-category-card {
    background: var(--prompts-card);
    border: 1px solid var(--prompts-border);
    border-radius: 1rem;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prompts-category-card:hover {
    border-color: var(--prompts-accent);
    box-shadow: 0 10px 40px -10px rgba(249, 115, 22, 0.2);
    transform: translateY(-4px);
}

.prompts-category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.prompts-category-icon i {
    font-size: 1.5rem;
    color: var(--prompts-accent);
}

.prompts-category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--prompts-text);
    margin-bottom: 0.5rem;
}

.prompts-category-card p {
    font-size: 0.95rem;
    color: var(--prompts-text-muted);
    line-height: 1.6;
    flex: 1;
}

.prompts-category-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--prompts-accent);
}

/* Featured Prompts */
.prompts-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.prompts-featured-card {
    background: var(--prompts-card);
    border: 1px solid var(--prompts-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
}

.prompts-featured-card:hover {
    border-color: var(--prompts-primary);
    box-shadow: 0 8px 30px -10px rgba(37, 99, 235, 0.2);
}

.prompts-featured-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prompts-featured-icon i {
    font-size: 1.25rem;
    color: var(--prompts-primary);
}

.prompts-featured-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--prompts-text);
    margin-bottom: 0.5rem;
}

.prompts-featured-content p {
    font-size: 0.9rem;
    color: var(--prompts-text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.prompts-featured-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.prompts-featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* SEO Content Section */
.prompts-seo-content {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-top: 2rem;
}

.prompts-seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--prompts-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompts-seo-content h2::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--prompts-accent);
    border-radius: 2px;
}

.prompts-seo-content p {
    color: var(--prompts-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.prompts-seo-content p strong {
    color: var(--prompts-text);
}

/* ============ CATEGORY PAGE ============ */
.prompts-category-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.prompts-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--prompts-text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.prompts-breadcrumb a {
    color: var(--prompts-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.prompts-breadcrumb a:hover {
    color: var(--prompts-accent);
}

.prompts-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.prompts-category-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
}

.prompts-category-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.prompts-category-header-icon i {
    font-size: 1.75rem;
    color: var(--prompts-accent);
}

.prompts-category-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0 !important;
    margin-bottom: 0.75rem;
    text-align: left;
}

.prompts-category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.prompts-category-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.prompts-category-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Prompts List */
.prompts-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompts-list-item {
    background: var(--prompts-card);
    border: 1px solid var(--prompts-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.prompts-list-item:hover {
    border-color: var(--prompts-accent);
    box-shadow: 0 8px 30px -10px rgba(249, 115, 22, 0.15);
    transform: translateX(4px);
}

.prompts-list-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prompts-list-icon i {
    font-size: 1.25rem;
    color: var(--prompts-accent);
}

.prompts-list-content {
    flex: 1;
}

.prompts-list-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--prompts-text);
    margin-bottom: 0.5rem;
}

.prompts-list-content p {
    font-size: 0.95rem;
    color: var(--prompts-text-muted);
    line-height: 1.5;
}

.prompts-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.prompts-list-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.prompts-list-arrow {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.prompts-list-item:hover .prompts-list-arrow {
    color: var(--prompts-accent);
    transform: translateX(4px);
}

/* ============ DETAIL PAGE ============ */
.prompts-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.prompts-detail-header {
    margin-bottom: 2rem;
}

.prompts-detail-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--prompts-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    text-align: left;
}

.prompts-detail-header h1 i {
    color: var(--prompts-accent);
}

.prompts-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--prompts-text-muted);
    font-size: 0.9rem;
}

.prompts-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prompts-detail-meta i {
    color: #94a3b8;
}

.prompts-ai-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.prompts-ai-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Interactive Workspace */
.prompts-workspace {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.prompts-workspace-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompts-workspace-title i {
    color: var(--prompts-accent);
}

.prompts-variables-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .prompts-variables-form {
        grid-template-columns: 1fr;
    }
}

.prompts-variable-group {
    display: flex;
    flex-direction: column;
}

.prompts-variable-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.prompts-variable-group input,
.prompts-variable-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.prompts-variable-group input::placeholder,
.prompts-variable-group textarea::placeholder {
    color: #64748b;
}

.prompts-variable-group input:focus,
.prompts-variable-group textarea:focus {
    outline: none;
    border-color: var(--prompts-accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.prompts-preview-box {
    background: #0f172a;
    border-radius: 0.75rem;
    padding: 1.25rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    white-space: pre-wrap;
    max-height: 350px;
    overflow-y: auto;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.prompts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.prompts-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.prompts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prompts-btn-copy {
    background: var(--prompts-accent);
    color: white;
}

.prompts-btn-chatgpt {
    background: #10a37f;
    color: white;
}

.prompts-btn-grok {
    background: #000000;
    color: white;
}

.prompts-btn-perplexity {
    background: #22c55e;
    color: white;
}

.prompts-btn-gemini {
    background: #4285f4;
    color: white;
}

.prompts-btn-claude {
    background: #d97706;
    color: white;
}

.prompts-btn-mistral {
    background: #ff7000;
    color: white;
}

/* Content Section */
.prompts-content-section {
    background: var(--prompts-card);
    border: 1px solid var(--prompts-border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.prompts-content-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--prompts-text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--prompts-accent);
    display: inline-block;
}

.prompts-content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--prompts-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prompts-content-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.prompts-content-section ul,
.prompts-content-section ol {
    color: #475569;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.prompts-content-section li {
    margin-bottom: 0.5rem;
}

.prompts-content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prompts-content-section th,
.prompts-content-section td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--prompts-border);
}

.prompts-content-section th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--prompts-text);
}

.prompts-content-section code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.prompts-content-section pre {
    background: #1e293b;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.prompts-content-section pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
}

/* Related Prompts */
.prompts-related-section {
    margin-top: 2rem;
}

.prompts-related-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--prompts-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompts-related-section h2 i {
    color: var(--prompts-accent);
}

.prompts-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.prompts-related-card {
    background: var(--prompts-card);
    border: 1px solid var(--prompts-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.prompts-related-card:hover {
    border-color: var(--prompts-accent);
    transform: translateY(-2px);
}

.prompts-related-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--prompts-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompts-related-card h3 i {
    color: var(--prompts-accent);
}

.prompts-related-card p {
    font-size: 0.85rem;
    color: var(--prompts-text-muted);
    line-height: 1.5;
}

/* Tags Section */
.prompts-tags-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--prompts-border);
}

.prompts-tags-section h3 {
    font-size: 0.9rem;
    color: var(--prompts-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.prompts-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompts-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Toast Notification */
.prompts-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 1rem 1.5rem;
    background: var(--prompts-success);
    color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: prompts-slide-in 0.3s ease;
    font-weight: 500;
}

@keyframes prompts-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .prompts-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .prompts-hero h1 {
        font-size: 1.75rem;
    }
    
    .prompts-stats {
        gap: 2rem;
    }
    
    .prompts-stat-value {
        font-size: 2rem;
    }
    
    .prompts-categories-grid,
    .prompts-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .prompts-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .prompts-list-arrow {
        display: none;
    }
    
    .prompts-detail-header h1 {
        font-size: 1.5rem;
    }
    
    .prompts-workspace {
        padding: 1.5rem;
    }
    
    .prompts-content-section {
        padding: 1.5rem;
    }
    
    .prompts-actions {
        flex-direction: column;
    }
    
    .prompts-btn {
        justify-content: center;
    }
}
