/* ============================================
   AI IMAGE PROMPTS LIBRARY - MAIN STYLES
   4 Cards Per Row | No Scrolling | Fixed Heights
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;

    background:
        radial-gradient(circle at 15% 20%, rgba(59,91,246,0.16) 0%, transparent 28%),
        radial-gradient(circle at 85% 25%, rgba(107,59,246,0.14) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(0,194,168,0.06) 0%, transparent 25%),
        linear-gradient(
            135deg,
            #070b1a 0%,
            #0c1436 25%,
            #121d52 50%,
            #0d153f 75%,
            #080c1f 100%
        );
   background-attachment: scroll;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 30% 30%, rgba(99,102,241,0.08), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(139,92,246,0.06), transparent 35%);
filter: blur(40px);
opacity: 0.7;
will-change: transform;
animation: bodyGlow 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes bodyGlow {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1d2e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8183f3, #9b6ef7);
}

/* Container */
.nl-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.nl-prompt-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Animated Background */
.nl-prompt-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
animation: none;
    pointer-events: none;
}

.nl-prompt-card,
.nl-filter-btn,
.nl-submit-section {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Headings */
.nl-main-heading {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease;
}

.nl-main-heading i {
    background: none;
    -webkit-text-fill-color: #6366f1;
    color: #6366f1;
    margin-right: 12px;
}

.nl-sub-heading {
    font-size: 20px;
    color: #a0a0c0;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Section - Flex layout */
.nl-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 48px 0 40px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
    position: relative;
    z-index: 2;
}

/* Filter Buttons */
.nl-filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nl-filter-btn {
    padding: 10px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(18, 20, 37, 0.6);
    backdrop-filter: blur(10px);
    color: #e0e0ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.nl-filter-btn i {
    margin-right: 8px;
}

.nl-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nl-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nl-filter-btn:hover {
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
}

.nl-filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Search Box */
.nl-search-wrapper {
    position: relative;
    min-width: 280px;
}

.nl-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.nl-search-box i.fa-search {
    position: absolute;
    left: 16px;
    color: #6b6b8a;
    font-size: 14px;
}

.nl-search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border-radius: 50px;
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    background: rgba(18, 20, 37, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nl-search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(18, 20, 37, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nl-search-input::placeholder {
    color: #6b6b8a;
}

.nl-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b6b8a;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.nl-search-clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Search Suggestions */
.nl-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 20, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-top: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.nl-search-suggestions.show {
    display: block;
}

.nl-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0ff;
    font-size: 14px;
}

.nl-suggestion-item i {
    color: #6366f1;
    width: 20px;
}

.nl-suggestion-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* Prompts Grid - 4 Cards Per Row */
.nl-prompts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 40px 0 60px;
    position: relative;
    z-index: 2;
}

/* Prompt Card */
.nl-prompt-card {
    background: linear-gradient(
        145deg,
        rgba(20, 28, 65, 0.88),
        rgba(14, 20, 48, 0.92)
    );
    
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    
    transition: all 0.35s ease;
    
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.nl-prompt-card:hover {
    transform: translateY(-6px);
    
    border-color: rgba(99,102,241,0.30);

    box-shadow:
        0 18px 35px rgba(0,0,0,0.35),
        0 0 18px rgba(99,102,241,0.12);
}

/* Card Badge */
.nl-prompt-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nl-prompt-badge i {
    margin-right: 4px;
    font-size: 10px;
}

/* Thumbnail Image */
.nl-prompt-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.nl-prompt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nl-prompt-card:hover .nl-prompt-image {
    transform: scale(1.05);
}

.nl-prompt-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(18, 20, 37, 0.9), transparent);
    pointer-events: none;
}

.nl-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d2e, #0f1120);
}

.nl-thumb-placeholder i {
    font-size: 56px;
    color: #6366f1;
}

/* Card Content */
.nl-prompt-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nl-prompt-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.nl-prompt-title i {
    color: #6649b7;
    font-size: 14px;
    flex-shrink: 0;
}

/* Prompt Text - NO SCROLLING, full height auto */
.nl-prompt-text {
    font-family: 'Monaco', 'Courier New', monospace;
   background: rgba(255,255,255,0.04);
    padding: 12px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.6;
    margin: 12px 0;
    word-break: break-word;
    white-space: normal;
    color: #cbd5e1;
    border-left: 3px solid #6366f1;
    max-height: none;
    overflow: visible;
}

/* Card Actions */
.nl-prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.nl-copy-btn, .nl-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    flex: 1;
}

.nl-copy-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.nl-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nl-copy-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669);
}

.nl-detail-link {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.nl-detail-link:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Highlight Search Matches */
.nl-highlight {
    background: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 600;
}

/* Loading State */
.nl-loading {
    text-align: center;
    padding: 60px;
    color: #a0a0c0;
    grid-column: 1 / -1;
}

.nl-loading i {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
}

/* No Results */
.nl-no-results {
    text-align: center;
    padding: 60px;
    color: #a0a0c0;
    grid-column: 1 / -1;
}

.nl-no-results i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    color: #6366f1;
}

.nl-no-results p {
    font-size: 18px;
    margin-bottom: 8px;
}

.nl-no-results small {
    font-size: 14px;
    color: #6b6b8a;
}

/* Error State */
.nl-error {
    text-align: center;
    padding: 60px;
    color: #ef4444;
    grid-column: 1 / -1;
}

.nl-error i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.nl-retry-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Submit Section */
.nl-submit-section {
    margin-top: 80px;
    padding: 60px 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.nl-submit-section:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.nl-submit-section h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.nl-submit-section h3 i {
    color: #6366f1;
    margin-right: 12px;
}

.nl-submit-desc {
    color: #a0a0c0;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
}

.nl-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 60px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nl-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    gap: 16px;
}

.nl-credit-text {
    margin-top: 20px;
    font-size: 12px;
    color: #6b6b8a;
}

.nl-credit-text i {
    margin-right: 6px;
}

/* Toast Notification */
.nl-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop: 4 cards */
@media (min-width: 1200px) {
    .nl-prompts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Landscape: 3 cards */
@media (min-width: 992px) and (max-width: 1199px) {
    .nl-prompts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait: 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
    .nl-prompts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nl-main-heading {
        font-size: 42px;
    }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
    .nl-container {
        padding: 0 16px;
    }
    
    .nl-main-heading {
        font-size: 32px;
    }
    
    .nl-sub-heading {
        font-size: 16px;
    }
    
    .nl-filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nl-filter-buttons {
        justify-content: center;
    }
    
    .nl-filter-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .nl-search-wrapper {
        width: 100%;
    }
    
    .nl-prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nl-submit-section {
        padding: 40px 24px;
    }
    
    .nl-submit-section h3 {
        font-size: 22px;
    }
    
    .nl-premium-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .nl-prompt-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nl-main-heading {
        font-size: 28px;
    }
    
    .nl-prompt-thumb {
        height: 180px;
    }
}

/* Animation Delays for Cards */
.nl-prompt-card:nth-child(1) { animation-delay: 0.05s; }
.nl-prompt-card:nth-child(2) { animation-delay: 0.1s; }
.nl-prompt-card:nth-child(3) { animation-delay: 0.15s; }
.nl-prompt-card:nth-child(4) { animation-delay: 0.2s; }
.nl-prompt-card:nth-child(5) { animation-delay: 0.25s; }
.nl-prompt-card:nth-child(6) { animation-delay: 0.3s; }
.nl-prompt-card:nth-child(7) { animation-delay: 0.35s; }
.nl-prompt-card:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   FAQ SECTION – AI IMAGE PROMPTS LIBRARY
   Matches site: dark glassmorphism + indigo/violet accent
   ============================================ */

.nl-faq-section {
    margin-top: 80px;
    padding: 64px 0 20px;
    position: relative;
}

/* Subtle top divider glow */
.nl-faq-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99,102,241,0.5) 30%,
        rgba(139,92,246,0.6) 50%,
        rgba(99,102,241,0.5) 70%,
        transparent 100%);
    margin-bottom: 64px;
}

/* ── Header ── */
.nl-faq-header {
    text-align: center;
    margin-bottom: 52px;
}

.nl-faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #a5b4fc;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    margin-bottom: 20px;
}

.nl-faq-heading {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    line-height: 1.25;
}

.nl-faq-subheading {
    font-size: 16px;
    color: #a0a0c0;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Grid: 2-column desktop, 1-column mobile ── */
.nl-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Individual FAQ Item ── */
.nl-faq-item {
    background: rgba(15, 18, 40, 0.70);
    border: 1.5px solid rgba(99,102,241,0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nl-faq-item:hover {
    border-color: rgba(99,102,241,0.38);
    box-shadow: 0 4px 24px rgba(99,102,241,0.12);
}

.nl-faq-item.nl-faq--open {
    border-color: rgba(99,102,241,0.55);
    box-shadow: 0 6px 32px rgba(99,102,241,0.18);
    background: rgba(20, 24, 55, 0.85);
}

/* ── Question Button ── */
.nl-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e2e8f0;
    font-size: 15.5px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.nl-faq-question:hover {
    color: #a5b4fc;
}

.nl-faq-item.nl-faq--open .nl-faq-question {
    color: #a5b4fc;
}

/* Icon rotation */
.nl-faq-icon {
    flex-shrink: 0;
    font-size: 13px;
    color: #6366f1;
    transition: transform 0.3s ease;
}

.nl-faq-item.nl-faq--open .nl-faq-icon {
    transform: rotate(180deg);
    color: #8b5cf6;
}

/* ── Answer Panel ── */
.nl-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl-faq-answer > div {
    padding: 0 24px 24px;
    font-size: 14.5px;
    color: #9ea3c0;
    line-height: 1.75;
    border-top: 1px solid rgba(99,102,241,0.10);
    padding-top: 16px;
}

.nl-faq-answer strong {
    color: #c4c8e8;
}

.nl-faq-answer em {
    color: #a5b4fc;
    font-style: normal;
}

.nl-faq-answer code {
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .nl-faq-grid {
        grid-template-columns: 1fr;
    }

    .nl-faq-heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .nl-faq-section {
        margin-top: 48px;
        padding-top: 40px;
    }

    .nl-faq-heading {
        font-size: 22px;
    }

    .nl-faq-subheading {
        font-size: 14px;
    }

    .nl-faq-question {
        font-size: 14px;
        padding: 18px 18px;
    }

    .nl-faq-answer > div {
        padding: 12px 18px 18px;
        font-size: 13.5px;
    }
}