/**
 * Community Prompts CSS
 * Responsive styles for the community prompts gallery
 */

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

.community-prompts-section {
    width: 100%;
    margin: var(--section-gap) 0 0 0;
}

.community-prompts-box {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    padding: var(--box-padding-desktop);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HEADER
   ============================================ */

.community-prompts-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.15em;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.community-prompts-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1.5rem 0;
}

/* ============================================
   FILTERS - CUSTOM DROPDOWN STYLE (Brands Page Style)
   ============================================ */

.community-prompts-filters {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Dropdown Container */
.cp-dropdown {
    position: relative;
    min-width: 180px;
}

/* Toggle Button - Brands Style */
.cp-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cp-dropdown-toggle:hover {
    background: rgba(44, 44, 46, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.cp-dropdown.open .cp-dropdown-toggle {
    background: rgba(44, 44, 46, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px 12px 0 0;
}

/* Toggle Text + Count */
.cp-dropdown-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cp-dropdown-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.cp-dropdown-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.cp-dropdown.open .cp-dropdown-arrow {
    transform: rotate(180deg);
}

/* Active state (filter selected) */
.cp-dropdown.active .cp-dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cp-dropdown.active .cp-dropdown-count {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Dropdown Menu - Brands Style */
.cp-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(35, 35, 40, 0.98) 0%, rgba(25, 25, 28, 0.99) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow-y: auto;
}

.cp-dropdown.open .cp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items - Brands Style */
.cp-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.cp-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cp-dropdown-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Item Count Badge */
.cp-dropdown-item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.cp-dropdown-item:hover .cp-dropdown-item-count,
.cp-dropdown-item.active .cp-dropdown-item-count {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar styling */
.cp-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.cp-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.cp-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.cp-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.community-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Desktop: Show 8 prompts (2 rows of 4) */
@media (min-width: 769px) {
    .community-prompts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.cp-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cp-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Badges */
.cp-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cp-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.cp-badge-type {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cp-badge-category {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Category-specific colors */
.cp-badge-category[data-category="straight"],
.cp-card[data-category="straight"] .cp-badge-category {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cp-badge-category[data-category="hentai"],
.cp-card[data-category="hentai"] .cp-badge-category {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.cp-badge-category[data-category="gay"],
.cp-card[data-category="gay"] .cp-badge-category {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cp-badge-category[data-category="lesbian"],
.cp-card[data-category="lesbian"] .cp-badge-category {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.cp-badge-category[data-category="shemale"],
.cp-card[data-category="shemale"] .cp-badge-category {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Prompt Text */
.cp-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem 0;
    flex-grow: 1;
    
    /* Clamp to 4 lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Words */
.cp-card-custom {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.75rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-card-custom span {
    color: rgba(16, 185, 129, 0.8);
    font-weight: 600;
}

/* Footer */
.cp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Copy Button */
.cp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cp-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cp-copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.cp-copy-icon {
    font-size: 0.9rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.cp-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.cp-empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   LOAD MORE
   ============================================ */

.community-prompts-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cp-load-more-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    background: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cp-load-more-btn:hover:not(:disabled) {
    background: rgba(44, 44, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.cp-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cp-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .community-prompts-box {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .community-prompts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .community-prompts-section {
        margin-top: var(--section-gap-mobile);
    }
    
    .community-prompts-box {
        padding: var(--box-padding-mobile);
        border-radius: var(--box-border-radius-mobile);
    }
    
    .community-prompts-title {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
    }
    
    .community-prompts-subtitle {
        font-size: 0.85rem;
    }
    
    /* Dropdown filters on mobile */
    .community-prompts-filters {
        gap: 0.75rem;
    }
    
    .cp-dropdown {
        min-width: 150px;
    }
    
    .cp-dropdown-toggle {
        font-size: 0.75rem;
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }
    
    .cp-dropdown.open .cp-dropdown-toggle {
        border-radius: 10px 10px 0 0;
    }
    
    .cp-dropdown-count {
        min-width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .cp-dropdown-menu {
        border-radius: 0 0 12px 12px;
        padding: 0.4rem;
    }
    
    .cp-dropdown-item {
        font-size: 0.75rem;
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }
    
    .cp-dropdown-item-count {
        min-width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .community-prompts-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .cp-card {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .cp-card-text {
        font-size: 0.85rem;
    }
    
    .cp-load-more-btn {
        width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .community-prompts-box {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .community-prompts-title {
        font-size: 1.1rem;
    }
    
    .community-prompts-filters {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .cp-dropdown {
        min-width: 140px;
        flex: 1;
    }
    
    .cp-dropdown-toggle {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }
    
    .cp-dropdown.open .cp-dropdown-toggle {
        border-radius: 10px 10px 0 0;
    }
    
    .cp-dropdown-toggle-text {
        gap: 0.5rem;
    }
    
    .cp-dropdown-count {
        min-width: 22px;
        height: 22px;
        font-size: 0.65rem;
        padding: 0 0.4rem;
    }
    
    .cp-dropdown-arrow {
        font-size: 0.5rem;
    }
    
    .cp-dropdown-menu {
        border-radius: 0 0 10px 10px;
        padding: 0.35rem;
    }
    
    .cp-dropdown-item {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .cp-dropdown-item-count {
        min-width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .cp-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .cp-card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
    
    .cp-copy-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
    }
}

/* ============================================
   ANIMATION
   ============================================ */

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

.cp-card {
    animation: fadeIn 0.4s ease forwards;
}

.community-prompts-grid .cp-card:nth-child(1) { animation-delay: 0.05s; }
.community-prompts-grid .cp-card:nth-child(2) { animation-delay: 0.1s; }
.community-prompts-grid .cp-card:nth-child(3) { animation-delay: 0.15s; }
.community-prompts-grid .cp-card:nth-child(4) { animation-delay: 0.2s; }
.community-prompts-grid .cp-card:nth-child(5) { animation-delay: 0.25s; }
.community-prompts-grid .cp-card:nth-child(6) { animation-delay: 0.3s; }

