/**
 * AI Prompt Vault - CreatorFlow Free Tool
 *
 * Brand Colors:
 * - Primary Accent: #d1fe17 (Lime Green)
 * - Primary Dark: #000000 (Pure Black) - ONLY dark color allowed
 * - White: #FFFFFF
 *
 * CRITICAL RULES:
 * - NO box-shadows anywhere
 * - NO gradients on dark backgrounds
 * - ONLY #000000 for dark backgrounds (NO #111827, #2d2d2d, etc.)
 */

/* ========================================
   CONTAINER
======================================== */

.prompt-vault-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION
======================================== */

.prompt-vault-hero {
    background: #ffffff;
    padding: 11rem 0 2rem;
    text-align: center;
}

.prompt-vault-hero__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prompt-vault-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fe17;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'neusanstrial', sans-serif;
}

.prompt-vault-hero__badge svg {
    flex-shrink: 0;
}

.prompt-vault-hero__title {
    font-family: 'neusanstrial', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: #000000 !important;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.prompt-vault-hero__description {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ========================================
   SEARCH BAR
======================================== */

.prompt-vault-search {
    max-width: 500px;
    margin: 0 auto;
}

.prompt-vault-search__wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.prompt-vault-search__icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    pointer-events: none;
}

.prompt-vault-search__input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 1rem;
    font-family: inherit;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.prompt-vault-search__input:focus {
    outline: none;
    border-color: #d1fe17;
}

.prompt-vault-search__input::placeholder {
    color: #9ca3af;
}

.prompt-vault-search__clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.prompt-vault-search__clear:hover {
    color: #000000;
}

/* ========================================
   CATEGORY FILTERS
======================================== */

.prompt-vault-filters {
    background: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 72px;
    z-index: 90;
    border-bottom: 1px solid #e5e7eb;
}

.prompt-vault-filters__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prompt-vault-filters__scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prompt-vault-filters__scroll::-webkit-scrollbar {
    display: none;
}

.prompt-vault-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: 'neusanstrial', sans-serif;
}

.prompt-vault-filter:hover {
    background: #e5e7eb;
}

.prompt-vault-filter--active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.prompt-vault-filter--active:hover {
    background: #000000;
}

.prompt-vault-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prompt-vault-filter--active .prompt-vault-filter__count {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   PROMPTS GRID SECTION
======================================== */

.prompt-vault-grid-section {
    background: #f9fafb;
    padding: 2rem 0 4rem;
}

.prompt-vault-grid-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prompt-vault-results {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-family: 'neusanstrial', sans-serif;
}

.prompt-vault-results span:first-child {
    font-weight: 600;
    color: #000000;
}

/* ========================================
   PROMPTS GRID
======================================== */

.prompt-vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .prompt-vault-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .prompt-vault-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PROMPT CARD
======================================== */

.prompt-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}

.prompt-card:hover {
    border-color: #d1fe17;
}

.prompt-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.prompt-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-family: 'neusanstrial', sans-serif;
}

.prompt-card__copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
}

.prompt-card__copy:hover {
    background: #d1fe17;
    color: #000000;
}

.prompt-card__copy--copied {
    background: #d1fe17;
    color: #000000;
}

.prompt-card__title {
    font-family: 'neusanstrial', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.prompt-card__content {
    flex: 1;
}

.prompt-card__text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
}

.prompt-card__text--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.prompt-card__expand {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0;
    background: none;
    border: none;
    color: #d1fe17;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'neusanstrial', sans-serif;
    transition: color 0.2s ease;
}

.prompt-card__expand:hover {
    color: #000000;
}

.prompt-card__expand--expanded svg {
    transform: rotate(180deg);
}

/* ========================================
   NO RESULTS
======================================== */

.prompt-vault-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.prompt-vault-no-results svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.prompt-vault-no-results p {
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   FLOATING SHARE BAR (Subtle, appears on scroll)
======================================== */

.prompt-vault-floating-share {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.prompt-vault-floating-share.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.prompt-vault-floating-share__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-vault-floating-share__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'neusanstrial', sans-serif;
    white-space: nowrap;
}

.prompt-vault-floating-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.prompt-vault-floating-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'neusanstrial', sans-serif;
    border: none;
    white-space: nowrap;
}

.prompt-vault-floating-share__btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.prompt-vault-floating-share__btn--bookmark {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.prompt-vault-floating-share__btn--bookmark:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.prompt-vault-floating-share__btn--share {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.prompt-vault-floating-share__btn--share:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.prompt-vault-floating-share__btn--copy {
    background: #d1fe17;
    color: #000000;
}

.prompt-vault-floating-share__btn--copy:hover {
    background: #e5ff4d;
}

.prompt-vault-floating-share__btn--copy.copied {
    background: #22c55e;
    color: #ffffff;
}

.prompt-vault-floating-share__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.prompt-vault-floating-share__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========================================
   SEO CONTENT SECTION
======================================== */

.prompt-vault-info {
    background: #ffffff;
    padding: 4rem 0;
}

.prompt-vault-info__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prompt-vault-info__title {
    font-family: 'neusanstrial', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
}

.prompt-vault-info__intro {
    font-size: 1.0625rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.prompt-vault-info__section {
    margin-bottom: 2rem;
}

.prompt-vault-info__subtitle {
    font-family: 'neusanstrial', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
}

.prompt-vault-info__section p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   FAQ SECTION
======================================== */

.prompt-vault-faq {
    background: #f9fafb;
    padding: 5rem 0;
}

.prompt-vault-faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prompt-vault-faq__title {
    font-family: 'neusanstrial', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Map .faq-list to .faq-accordion styles */
.prompt-vault-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Apply unified FAQ item styles */
.prompt-vault-faq .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background-color: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.prompt-vault-faq .faq-item:hover {
    border-color: #d1fe17;
}

.prompt-vault-faq .faq-question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    list-style: none;
    color: #000000;
    transition: background-color 0.2s ease;
    font-family: 'neusanstrial', sans-serif;
}

.prompt-vault-faq .faq-question:hover {
    background-color: #f9fafb;
}

.prompt-vault-faq .faq-question::-webkit-details-marker {
    display: none;
}

.prompt-vault-faq .faq-question span:first-child {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
}

.prompt-vault-faq .faq-icon {
    font-size: 1.5rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.prompt-vault-faq .faq-item[open] > .faq-question .faq-icon {
    transform: rotate(45deg);
    color: #000000;
}

.prompt-vault-faq .faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

.prompt-vault-faq .faq-answer p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   CTA SECTION - Uses unified CTA component
   See creatorflow-modern.css for .unified-final-cta styles
======================================== */

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */

@media (max-width: 768px) {
    .prompt-vault-hero {
        padding: 9rem 0 1.5rem;
    }

    .prompt-vault-filters {
        top: 64px;
    }

    /* Floating Share Bar - Tablet */
    .prompt-vault-floating-share__content {
        gap: 0.75rem;
        padding: 0.625rem 0.875rem 0.625rem 1rem;
    }

    .prompt-vault-floating-share__text {
        font-size: 0.75rem;
    }

    .prompt-vault-floating-share__btn {
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .prompt-vault-hero__title {
        font-size: 1.5rem;
    }

    .prompt-vault-hero__description {
        font-size: 1rem;
    }

    .prompt-vault-search__input {
        padding: 0.875rem 2.5rem;
        font-size: 0.9375rem;
    }

    .prompt-card {
        padding: 1.25rem;
    }

    /* Floating Share Bar - Mobile */
    .prompt-vault-floating-share {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
    }

    .prompt-vault-floating-share.is-visible {
        transform: translateX(0) translateY(0);
    }

    .prompt-vault-floating-share__content {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .prompt-vault-floating-share__text {
        display: none;
    }

    .prompt-vault-floating-share__buttons {
        flex: 1;
        justify-content: center;
    }

    .prompt-vault-floating-share__btn {
        padding: 0.5rem 0.625rem;
    }

    .prompt-vault-floating-share__btn span {
        display: none;
    }

    .prompt-vault-floating-share__btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   TOAST NOTIFICATION
======================================== */

.prompt-vault-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #000000;
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-vault-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.prompt-vault-toast svg {
    color: #d1fe17;
}
