/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Consistency - Using same naming as dark-mode.css */
:root {
    /* Primary colors */
    --primary: #0066CC;
    --primary-dark: #0052A3;
    --secondary: #FF6B35;
    
    /* Background colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E9ECEF;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F3F5;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #6c757d;
    --text-inverse: #FFFFFF;
    
    /* Border colors */
    --border-light: #e5e7eb;
    --border-medium: #CED4DA;
    --border-dark: #ADB5BD;
    
    /* Status colors */
    --success: #16a34a;
    --warning: #FFC107;
    --error: #DC3545;
    --info: #17A2B8;
    
    /* Shadow colors */
    --shadow-sm: rgba(0, 0, 0, 0.075);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.25);
    
    /* Code block colors */
    --code-bg: #F6F8FA;
    --code-border: #D1D5DB;
    --code-text: #24292E;
    
    /* Input colors */
    --input-bg: #FFFFFF;
    --input-border: #CED4DA;
    --input-focus: #0066CC;
    
    /* Legacy variables for backward compatibility */
    --text: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-nav: var(--text-primary);
    --border: var(--border-light);
    --bg: var(--bg-primary);
    --bg-subtle: var(--bg-secondary);
    --shadow: var(--shadow-md);
    --shadow-hover: var(--shadow-lg);
    --radius: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NEW: Sticky Header with Nav */
.site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 2px 10px var(--shadow-sm);
    z-index: 100;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);  /* Use theme-aware text color */
    font-weight: 800;  /* Increased from 700 */
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.brand:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--text-nav);
    text-decoration: none;
    font-weight: 600;  /* Increased from 500 for better readability */
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 5px 8px;  /* Add padding for larger click area */
}

.main-nav a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Active/current page indicator */
.main-nav a[aria-current="page"] {
    color: var(--primary);
    font-weight: 700;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-nav);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 5px 8px;
    transition: color 0.2s;
    font-family: inherit;
}

.dropdown-btn:hover {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-hover);
    color: var(--primary);
}

.dropdown-content .count {
    float: right;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-nav);
    margin: 5px auto;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,102,204,0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.3);
}

/* Main Content */
main {
    padding: 40px 0;
}

/* NEW: Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: #2a2e35;
    margin-bottom: 50px;
    color: #e9ecef;
    border-radius: var(--radius);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.trustbar {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.trustbar li {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);  /* Use theme-aware text color */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.trustbar li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container::before {
    content: "🔍";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
    color: inherit;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--bg-subtle);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* MODERNIZED Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
}

.category-card:hover:not(.coming-soon) {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

/* Coming Soon Cards - NON-CLICKABLE */
.category-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg,
        #fafafa,
        #fafafa 10px,
        #f5f5f5 10px,
        #f5f5f5 20px
    );
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.prompt-count {
    background: #111;
    color: var(--text-inverse);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
}

.category-card.coming-soon .prompt-count {
    background: #4d4d4d;
}

/* Features Section */
.features {
    margin-bottom: 60px;
    background: #2a2e35;
    padding: 40px;
    border-radius: var(--radius);
    color: #e9ecef;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature p {
    color: #b8bcc3;
}

/* CTA Section */
.cta {
    background: #2a2e35;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #e9ecef;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta p {
    font-size: 1.1rem;
    color: #b8bcc3;
}

/* NEW: Affiliate Disclosure */
.disclosure {
    margin: 40px auto;
    padding: 20px;
    background: #3a3f47;
    border: 2px dashed #4a5568;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: #b8bcc3;
    border-left: 4px solid var(--primary);
}

.disclosure strong {
    font-weight: 700;
    color: #ffffff;
}

.disclosure a {
    color: #3498db;
    text-decoration: underline;
}

.disclosure a:hover {
    color: #5dade2;
}

/* Footer */
footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 30px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    color: #cbd5e1;
}

footer nav {
    display: flex;
    gap: 20px;
}

footer nav a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: var(--text-inverse);
    text-decoration: underline;
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 10px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Copy Button */
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    padding: 15px 40px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: var(--success);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* Prompt Display Pages - FIXING MISSING STYLES */
.prompt-display {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.prompt-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.prompt-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.3;
}

.prompt-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.prompt-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.difficulty-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.beginner {
    background: #dcfce7;
    color: #14532d;
}

.difficulty-badge.intermediate {
    background: #fef3c7;
    color: #713f12;
}

.difficulty-badge.advanced {
    background: #fee2e2;
    color: #7f1d1d;
}

/* Main Prompt Content Container */
.prompt-content {
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.prompt-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text);
}

/* The Actual Prompt Textarea */
.prompt-textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    background: var(--bg-subtle);
    border: 2px solid var(--border);
    border-radius: 12px;
    resize: vertical;
    color: var(--text);
    transition: border-color 0.3s ease;
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

.prompt-textarea:read-only {
    resize: none;
    cursor: default;
}

/* Copy Section */
.copy-section {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 30px 0;
}

.copy-section p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Instructions Section */
.instructions {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.instructions h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.instructions ol,
.instructions ul {
    margin-left: 30px;
    line-height: 1.8;
}

.instructions li {
    margin-bottom: 12px;
    color: var(--text);
}

.instructions strong {
    color: var(--primary);
    font-weight: 600;
}

/* Tips Section */
.tips {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.tips h3 {
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tips ul {
    margin-left: 30px;
    color: #0c4a6e;
}

.tips li {
    margin-bottom: 10px;
}

/* Related Prompts Section - ENHANCED */
.related-prompts {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid var(--border);
    position: relative;
}

.related-prompts::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.related-prompts h2 {
    font-size: 2rem;
    margin-bottom: 35px;
    text-align: center;
    color: var(--text);
    font-weight: 700;
    position: relative;
}

.related-prompts h2::after {
    content: 'Explore More';
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.related-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,102,204,0.15);
    border-color: var(--primary);
    background: linear-gradient(to bottom, white, #fafbfc);
}

.related-card:hover::before {
    transform: translateX(0);
}

.related-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-card:hover h3 {
    color: var(--primary-dark);
}

.related-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-card .category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-subtle);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.related-card:hover .category-tag {
    background: var(--primary);
    color: var(--text-inverse);
}

/* Variables Section */
.variables {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.variables h3 {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.variables-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variable-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid #fde68a;
}

.variable-name {
    font-weight: 600;
    color: #92400e;
    font-family: 'Monaco', 'Courier New', monospace;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.variable-description {
    flex: 1;
    color: var(--text);
    line-height: 1.5;
}

/* Warning/Note Boxes */
.warning-box,
.note-box {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid;
}

.warning-box {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.note-box {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

.warning-box h4,
.note-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Examples Section */
.examples {
    margin-top: 30px;
}

.examples h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
}

.example-item {
    background: var(--bg-subtle);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.example-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.example-code {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    border: 1px solid var(--border);
}

/* Affiliate Section Styles - PROPERLY ORGANIZED */
.affiliate-section {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Default affiliate section style */
.affiliate-section {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid var(--border);
}

/* Category-specific affiliate themes */
.affiliate-section.theme-business {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: var(--text-inverse);
}

.affiliate-section.theme-coding {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-inverse);
}

.affiliate-section.theme-content {
    background: linear-gradient(135deg, #6B4423 0%, #8B5A2B 100%);
    color: var(--text-inverse);
}

.affiliate-section.theme-everyday {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: var(--text-inverse);
}

.affiliate-section.theme-health {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-inverse);
}

.affiliate-section.theme-money {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: var(--text-inverse);
}

.affiliate-section.theme-relationships {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: var(--text-inverse);
}

/* Themed sections - text adjustments */
.affiliate-section.theme-business h2,
.affiliate-section.theme-coding h2,
.affiliate-section.theme-content h2,
.affiliate-section.theme-everyday h2,
.affiliate-section.theme-health h2,
.affiliate-section.theme-money h2,
.affiliate-section.theme-relationships h2 {
    color: var(--text-inverse);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.affiliate-section.theme-business p,
.affiliate-section.theme-coding p,
.affiliate-section.theme-content p,
.affiliate-section.theme-everyday p,
.affiliate-section.theme-health p,
.affiliate-section.theme-money p,
.affiliate-section.theme-relationships p {
    color: rgba(255, 255, 255, 0.95);
}

/* Common affiliate section content */
.affiliate-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 700;
}

.affiliate-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Affiliate product card */
.affiliate-product {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.affiliate-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.affiliate-product h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.affiliate-product p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.affiliate-product ul {
    margin: 15px 0;
    padding-left: 25px;
}

.affiliate-product li {
    color: var(--text);
    margin-bottom: 8px;
}

/* Affiliate CTA button */
.affiliate-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 35px;
    background: var(--primary);
    color: var(--text-inverse);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

.affiliate-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

/* Special CTA colors for themed sections */
.affiliate-section.theme-business .affiliate-cta,
.affiliate-section.theme-money .affiliate-cta {
    background: var(--bg-primary);
    color: #2e7d32;
}

.affiliate-section.theme-business .affiliate-cta:hover,
.affiliate-section.theme-money .affiliate-cta:hover {
    background: #f0f0f0;
}

.affiliate-section.theme-coding .affiliate-cta {
    background: #61dafb;
    color: #0a0e27;
}

.affiliate-section.theme-coding .affiliate-cta:hover {
    background: #4fc3f7;
}

/* Responsive adjustments for affiliate sections */
@media (max-width: 768px) {
    .affiliate-section {
        margin-top: 40px;
        padding: 25px 20px;
    }
    
    .affiliate-product {
        padding: 20px;
    }
    
    .affiliate-cta {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Cookie Consent Banner */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-inverse);
    padding: 20px;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
}

.cookie-accept, .cookie-reject {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.cookie-accept {
    background: var(--primary);
    color: var(--text-inverse);
}

.cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cookie-reject {
    background: transparent;
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Cookie Consent */
@media (max-width: 768px) {
    #cookieConsent {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-consent-content p {
        margin-bottom: 15px;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
    
    .cookie-accept, .cookie-reject {
        flex: 1;
        min-width: 100px;
    }
}

/* Responsive adjustments for prompt pages */
@media (max-width: 768px) {
    .prompt-display {
        padding: 20px 15px;
    }
    
    .prompt-header h1 {
        font-size: 1.8rem;
    }
    
    .prompt-content {
        padding: 25px 20px;
    }
    
    .prompt-textarea {
        font-size: 0.85rem;
        padding: 15px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .instructions,
    .tips,
    .variables {
        padding: 20px;
    }
}

/* ==========================================
   Feedback System Styles
   ========================================== */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    position: relative;
}

.toast-show {
    transform: translateX(0);
}

.toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

/* Toast Types */
.toast-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

.toast-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
}

.toast-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid #ffc107;
}

.toast-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #b8daff 100%);
    border-left: 4px solid #17a2b8;
}

.toast-loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
}

/* Loading States */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 102, 204, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

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

.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.7;
}

.is-loading .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Error States */
.has-error {
    border-color: #dc3545 !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message:before {
    content: '⚠';
    font-size: 1rem;
}

/* Success States */
.is-valid {
    border-color: #28a745 !important;
    animation: successPulse 0.5s;
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.success-pulse {
    animation: successPulse 0.5s;
    position: relative;
}

.success-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: var(--text-inverse);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Enhanced Copy Button States */
#copy-button {
    position: relative;
    overflow: hidden;
    min-width: 140px;
    transition: all 0.3s ease;
}

#copy-button.copying {
    background: var(--primary-dark);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#copy-button.copied {
    background: #28a745;
    animation: successBounce 0.5s;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#copy-button.error {
    background: #dc3545;
    animation: shake 0.3s;
}

.success-icon, .error-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 1.1em;
}

/* Confirmation Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}

.confirm-modal-show {
    opacity: 1;
}

.confirm-modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.confirm-modal-show .confirm-modal-content {
    transform: scale(1);
}

.confirm-modal-content h3 {
    margin: 0 0 15px 0;
    color: var(--text);
}

.confirm-modal-content p {
    margin: 0 0 25px 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel, .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: var(--bg-subtle);
    color: var(--text);
}

.btn-cancel:hover {
    background: var(--border);
}

.btn-confirm {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-confirm:hover {
    background: var(--primary-dark);
}

/* Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-modal-show {
    opacity: 1;
}

.progress-modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.progress-bar-container {
    height: 24px;
    background: var(--bg-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
    border-radius: 12px;
    position: relative;
}

.progress-bar-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-status {
    text-align: center;
    color: var(--text-muted);
    margin: 10px 0 20px;
}

.progress-steps {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-muted);
    transition: all 0.3s;
}

.progress-step.step-complete {
    color: #28a745;
}

.step-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Mobile Responsive Feedback */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }
    
    .toast {
        font-size: 0.9rem;
    }
    
    .confirm-modal-content,
    .progress-modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Auth Navigation Styles */
.auth-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-nav .nav-link {
    color: var(--text-nav);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.2s;
}

.auth-nav .nav-link:hover {
    color: var(--primary);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.user-menu-toggle:hover {
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-name {
    color: var(--text);
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--bg-subtle);
}

.user-dropdown hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Favorite Button Styles */
.favorite-btn {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.favorite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.favorite-btn.favorited {
    background: #fff5f5;
    border-color: #ff4444;
    color: #ff4444;
}

/* Mobile Auth Styles */
@media (max-width: 768px) {
    .auth-nav {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }
    
    .auth-nav .nav-link,
    .auth-nav .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .user-menu {
        width: 100%;
    }
    
    .user-menu-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
        border-radius: 6px;
    }
}/* Fix for faint/grayed out buttons on the site */

/* Make all prompt filter buttons visible */
.prompt-filter-button,
.filter-button,
.tag-button,
button[disabled]:not(.disabled) {
    opacity: 1 !important;
    color: white !important;
    cursor: pointer !important;
}

/* Fix any buttons with low contrast */
.btn-secondary,
.btn-outline {
    background: #667eea !important;
    color: white !important;
    opacity: 1 !important;
    border: 2px solid #667eea !important;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: #5a67d8 !important;
    border-color: #5a67d8 !important;
}

/* Fix any disabled-looking active buttons */
button:not([disabled]),
a.button:not(.disabled) {
    opacity: 1 !important;
}

/* Ensure all purple buttons are visible */
[style*="background"][style*="667eea"],
[style*="background"][style*="764ba2"] {
    opacity: 1 !important;
    color: white !important;
}

/* Fix trending prompt pills if they exist */
.trending-pill,
.trending-tag,
.prompt-tag {
    opacity: 1 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600 !important;
}

/* FIX FOR TRENDING PROMPTS SECTION */
.trending-prompts,
.trending-section,
[class*="trending"] {
    opacity: 1 !important;
    color: #000000 !important;
}

.trending-prompts h3,
.trending-section h3,
h3:has-text("Trending"),
h3:contains("Trending") {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
}

/* Force any element with "Trending Prompts" text to be visible */
*:has-text("Trending Prompts"),
*:contains("Trending Prompts") {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

/* Target the specific section if it has inline styles */
section.trending-prompts,
div.trending-prompts {
    opacity: 1 !important;
}

section.trending-prompts *,
div.trending-prompts * {
    opacity: 1 !important;
    color: inherit !important;
}