/* ===========================
   추천 프롬프트 전체 래퍼
=========================== */
#prompt-wrapper {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    margin-top: 24px;
    padding: 20px 0;
}

/* ===========================
   제목
=========================== */
.prompt-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===========================
   그리드 레이아웃
=========================== */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px; /* ← 세로 12px로 간격 축소 */
}

/* ===========================
   개별 카드
=========================== */
.prompt-card {
    border-radius: 10px;
    padding: 14px 16px 26px; /* 태그 들어갈 공간 확보 */
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    position: relative;  /* 우측하단 태그 배치용 */
    border: 1px solid rgba(255,255,255,0.06);
}

/* Hover 효과 */
.prompt-card:hover,
.prompt-card:focus {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
}

/* 카드 제목 */
.prompt-card-summary {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
}

/* ===========================
   유형별 카드 배경색
=========================== */

/* normal */
.prompt-card.normal {
    background: #1f1f1f;
}
[data-theme="light"] .prompt-card.normal {
    background: #f5f5f5;
}
[data-theme="light"] .prompt-card {
    color: #333;
}

/* image */
.prompt-card.image {
    background: linear-gradient(135deg, #231f37, #243b55);
    border-color: rgba(96, 165, 250, 0.25);
}
[data-theme="light"] .prompt-card.image {
}

/* pdf */
.prompt-card.pdf {
    background: linear-gradient(135deg, #1f2d24, #224731);
    border-color: rgba(74, 222, 128, 0.25);
}
[data-theme="light"] .prompt-card.pdf {
    background: linear-gradient(135deg, #b8ddc5, #83be9b);
    border-color: rgba(26, 87, 48, 0.25);
}

/* ===========================
   우측 하단 태그 박스
=========================== */
.prompt-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* image 태그 */
.prompt-tag.image {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* pdf 태그 */
.prompt-tag.pdf {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}


/* ===========================
   태그 스타일 (normal 제거)
=========================== */
.prompt-tag {
    display: inline-flex;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* normal 태그는 숨긴다 */
.prompt-tag.normal {
    display: none !important;
}

/* IMAGE = Blue */
.prompt-tag.image {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* PDF = Green */
.prompt-tag.pdf {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* ===========================
   네비게이션 버튼
=========================== */
.prompt-nav {
    margin-top: 20px;
    text-align: right;
    display: flex;
    justify-content: space-between;
}

.prompt-btn {
    background: #333;
    padding: 8px 16px;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.prompt-btn:hover:not(:disabled) {
    background: #444;
    color: #fff;
}

.prompt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
