/* --- Prompt Page Specific Styles --- */

/* Hero Section */
.prompt-hero {
    padding: 80px 0 60px;
    background: radial-gradient(circle at 50% 20%, rgba(75, 144, 255, 0.1), transparent 60%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search & Filter */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

#prompt-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

#prompt-search:focus {
    border-color: var(--gemini-blue);
    background: rgba(0,0,0,0.8);
    box-shadow: 0 0 15px rgba(75, 144, 255, 0.2);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
}

.filter-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    background: #111;
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.chip:hover {
    border-color: #555;
    color: #fff;
}

.chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Category Headers */
.category-title {
    font-size: 1.8rem;
    margin: 60px 0 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
    color: #fff;
}

/* --- Wide Prompt Card Design --- */
.prompt-card-wide {
    display: flex;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prompt-card-wide:hover {
    transform: translateY(-2px);
    border-color: #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.featured-card {
    border: 1px solid var(--gemini-blue);
    background: linear-gradient(to right, rgba(75, 144, 255, 0.05), #111 40%);
}

/* Left Side: Media Preview */
.card-media {
    width: 250px;
    flex-shrink: 0;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-weight: 600;
    min-height: 200px;
}

.media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 2;
}

.media-badge.blue { color: var(--gemini-blue); }
.media-badge.purple { color: var(--gemini-purple); }
.media-badge.green { color: #4cd137; }

/* Right Side: Content */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed for better multiline title support */
    margin-bottom: 10px;
}

.card-header h3 {
    font-size: 1.3rem; /* Slightly larger for 'Prompt' titles */
    margin: 0;
    color: #fff;
    max-width: 80%;
}

.fire-icon {
    font-size: 0.8rem;
    color: var(--gemini-peach);
    font-weight: 700;
    white-space: nowrap;
}

.card-desc {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Code Block for Prompt */
.code-block {
    background: #080808;
    border: 1px solid #222;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions */
.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    color: var(--gemini-blue);
    background: rgba(75, 144, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Copy Button */
.btn-copy {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
    min-width: 80px;
    text-align: center;
}

.btn-copy:hover {
    background: #fff;
    color: #000;
}

.btn-copy.copied {
    background: #4cd137;
    border-color: #4cd137;
    color: #000;
}

/* Prompt List Section */
.prompt-list {
    padding-top: 48px !important; /* Reduced by 40% from default 80px (80px * 0.6 = 48px) */
}

/* CTA Section */
.submit-cta {
    margin-top: 60px;
    background: #0a0a0a;
    border-top: 1px solid #222;
}

/* Mobile Response */
@media (max-width: 768px) {
    .prompt-card-wide {
        flex-direction: column;
    }
    .card-media {
        width: 100%;
        height: 180px;
    }
    .card-content {
        padding: 20px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .card-header h3 {
        max-width: 100%;
    }
    .code-block code {
        -webkit-line-clamp: 5;
    }
    .card-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn-copy {
        width: 100%;
    }
}