/* ========================================
   TRENDING AI PROMPTS SECTION
   Premium, modern design with clean spacing
   ======================================== */

/* Main Section */
.ai-prompts-section {
    padding: 6rem 2rem 5rem;
    background: linear-gradient(180deg, var(--primary-bg) 0%, rgba(13, 17, 28, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.ai-prompts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.prompts-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Heading */
.prompts-heading-wrapper {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.prompts-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #d946ef, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prompts-main-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Prompts Grid */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Prompt Card */
.prompt-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.prompt-card:nth-child(1) { animation-delay: 0.1s; }
.prompt-card:nth-child(2) { animation-delay: 0.15s; }
.prompt-card:nth-child(3) { animation-delay: 0.2s; }
.prompt-card:nth-child(4) { animation-delay: 0.25s; }
.prompt-card:nth-child(5) { animation-delay: 0.3s; }
.prompt-card:nth-child(6) { animation-delay: 0.35s; }

.prompt-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

/* Prompt Image */
.prompt-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
}

.prompt-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prompt-card:hover .prompt-image img {
    transform: scale(1.05);
}

/* Prompt Overlay */
.prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-card:hover .prompt-overlay {
    opacity: 1;
}

.prompt-view-btn {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transform: translateY(10px);
}

.prompt-card:hover .prompt-view-btn {
    transform: translateY(0);
}

.prompt-view-btn:hover {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* Prompt Content */
.prompt-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Prompt Header Badges */
.prompt-header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prompt-model-badge,
.prompt-category-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-model-badge {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.15));
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.prompt-category-badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.15));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Prompt Title */
.prompt-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.prompt-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-title a:hover {
    color: var(--accent-primary);
}

/* Prompt Stats */
.prompt-stats {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(45, 51, 64, 0.5);
}

.prompt-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.prompt-stat .stat-icon {
    font-size: 1rem;
}

.prompt-stat .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.prompts-footer {
    text-align: center;
    margin-top: 2rem;
}

.view-all-prompts-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #d946ef, #a855f7);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(217, 70, 239, 0.3);
}

.view-all-prompts-btn:hover {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(168, 85, 247, 0.5);
}

.view-all-prompts-btn .btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-all-prompts-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */

@media (max-width: 1200px) {
    .prompts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .ai-prompts-section {
        padding: 4rem 1.5rem 3rem;
    }

    .prompts-heading-wrapper {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .prompts-main-title {
        font-size: 1.75rem;
    }

    .prompts-main-subtitle {
        font-size: 1rem;
    }

    .prompts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .view-all-prompts-btn {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .ai-prompts-section {
        padding: 3.5rem 1rem 2.5rem;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
    }

    .prompt-content {
        padding: 1rem;
    }

    .prompt-stats {
        gap: 0.75rem;
    }

    .prompt-stat {
        font-size: 0.8rem;
    }
}

/* =======================================
   ANIMATIONS
   ======================================= */

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

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

/* =======================================
   ACCESSIBILITY
   ======================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.prompt-view-btn:focus,
.view-all-prompts-btn:focus,
.prompt-title a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
