/* ===== 프롬프트 페이지 전용 스타일 ===== */

.prompts-header {
    padding: 60px 0 40px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.prompts-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.prompts-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===== 검색 ===== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: 'Pretendard', sans-serif;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.clear-btn:hover {
    background: var(--color-hover);
    color: var(--color-text);
}

/* ===== 카테고리 필터 ===== */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--color-border);
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Pretendard', sans-serif;
}

.filter-btn:hover {
    background: var(--color-hover);
    border-color: var(--color-text-secondary);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===== 프롬프트 섹션 ===== */
.prompts-section {
    padding: 48px 0 80px;
    background: var(--color-bg-secondary);
}

.prompts-list {
    display: grid;
    gap: 24px;
}

/* ===== 프롬프트 카드 ===== */
.prompt-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.3s ease;
}

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

.prompt-card:hover {
    border-color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.prompt-card.hidden {
    display: none;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    gap: 16px;
}

.prompt-title-section {
    flex: 1;
}

.prompt-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.prompt-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.prompt-when {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.copy-btn {
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Pretendard', sans-serif;
}

.copy-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.copy-btn:active {
    transform: translateY(0);
}

.prompt-content {
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.prompt-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    white-space: pre-wrap;
    font-family: 'Pretendard', monospace;
    max-height: 300px;
    overflow-y: auto;
}

.prompt-text::-webkit-scrollbar {
    width: 8px;
}

.prompt-text::-webkit-scrollbar-track {
    background: transparent;
}

.prompt-text::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.prompt-text::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

.expand-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Pretendard', sans-serif;
    margin-top: 12px;
}

.expand-btn:hover {
    background: var(--color-hover);
    border-color: var(--color-text-secondary);
}

/* ===== 검색 결과 없음 ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p:first-child {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.no-results p:last-child {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* ===== 토스트 알림 ===== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-bg-dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

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

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .prompts-header {
        padding: 40px 0 32px;
    }
    
    .prompts-title {
        font-size: 32px;
    }
    
    .category-filters {
        gap: 6px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .prompt-header {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .prompt-title {
        font-size: 18px;
    }
}
