/**
 * 파일명: post-promo-d.css
 * 파일경로: /home/giftmaster/web/alldaygift.kr/public_html/wp-content/plugins/wp-custom-post/assets/css/post-promo-d.css
 * 기능: post-promo-d.php 포스트 템플릿 전용 스타일 (prmd- 접두사)
 *       슬레이트 + 오렌지 팔레트 — 콘텐츠 심화형 스텝 카드 디자인
 * 작성일: 2026-03-28
 * 수정일: 2026-03-28
 */

/* ─── 색상 변수 ──────────────────────────────────────────────────────── */
:root {
    --prmd-slate:       #374151;   /* 슬레이트 다크 */
    --prmd-slate-dark:  #1f2937;   /* 더 어두운 슬레이트 (summary·conclusion 배경) */
    --prmd-slate-mid:   #4b5563;
    --prmd-slate-light: #f3f4f6;   /* 연 슬레이트 섹션 배경 */
    --prmd-slate-line:  #d1d5db;   /* 보더 */
    --prmd-orange:      #ea6c1a;   /* CTA 오렌지 */
    --prmd-orange-dark: #c05716;
    --prmd-step-1:      #fff7f0;   /* 스텝1 배경 */
    --prmd-step-2:      #f0f4ff;   /* 스텝2 배경 */
    --prmd-step-3:      #f0faf8;   /* 스텝3 배경 */
    --prmd-text:        #1c1917;
    --prmd-muted:       #44403c;
}

/* ─── 기본 리셋 ──────────────────────────────────────────────────────── */
.prmd-post {
    font-family: -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    color: var(--prmd-text);
    line-height: 1.75;
    max-width: 860px;
    margin: 0 auto;
}

.prmd-post * {
    box-sizing: border-box;
}

.prmd-post h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--prmd-text);
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--prmd-slate-line);
}

.prmd-post p {
    font-size: 15px;
    color: var(--prmd-muted);
    margin: 0 0 16px;
}

.prmd-post img {
    max-width: 100%;
    height: auto;
}

.prmd-post a {
    text-decoration: none;
}

/* ─── 핵심 요약 (슬레이트 다크 callout) ──────────────────────────────── */
.prmd-summary {
    background: var(--prmd-slate-dark);
    color: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 0 0 28px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.prmd-summary-label {
    background: rgba(255, 255, 255, .18);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.prmd-summary p {
    color: rgba(255, 255, 255, .92);
    margin: 0;
    font-size: 14px;
}

/* ─── 도입부 ─────────────────────────────────────────────────────────── */
.prmd-section-intro {
    margin: 0 0 32px;
}

.prmd-intro-text {
    font-size: 16px;
    color: #292524;
    line-height: 1.85;
    margin: 0;
}

/* ─── 스텝 카드 (핵심 차별 요소) ────────────────────────────────────── */
.prmd-section-content.prmd-step {
    padding: 0;
    margin: 0 0 24px;
}

.prmd-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
}

.prmd-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--prmd-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prmd-step-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--prmd-slate);
}

.prmd-step[data-step='1'] {
    padding: 20px 22px;
    border-radius: 10px;
    background: var(--prmd-step-1);
    border-left: 4px solid var(--prmd-orange);
}

.prmd-step[data-step='2'] {
    padding: 20px 22px;
    border-radius: 10px;
    background: var(--prmd-step-2);
    border-left: 4px solid var(--prmd-slate);
}

.prmd-step[data-step='3'] {
    padding: 20px 22px;
    border-radius: 10px;
    background: var(--prmd-step-3);
    border-left: 4px solid var(--prmd-slate-mid);
}

/* step-header 내 h2(.prmd-step-title) 오버라이드 */
.prmd-section-content.prmd-step h2 {
    margin-top: 0;
}

/* ─── 제품 리스트 (2열 가로형 카드) ─────────────────────────────────── */
.prmd-section-products {
    margin: 0 0 36px;
    padding: 28px;
    background: var(--prmd-slate-light);
    border-radius: 12px;
    border: 1px solid var(--prmd-slate-line);
}

.prmd-section-products h2 {
    margin-top: 0;
}

.prmd-product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.prmd-product-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--prmd-slate-line);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.prmd-product-img {
    width: 120px;
    flex-shrink: 0;
    background: #f3f4f6;
    overflow: hidden;
}

.prmd-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prmd-product-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.prmd-product-info {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.prmd-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--prmd-text);
    margin: 0;
    line-height: 1.4;
    text-align: left !important;
}

.prmd-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--prmd-orange);
    margin: 0;
    text-align: left !important;
}

.prmd-product-btn {
    display: block !important;
    width: 100% !important;
    padding: 8px 14px !important;
    background: var(--prmd-orange) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border: none !important;
}

.prmd-product-btn:hover {
    background: var(--prmd-orange-dark) !important;
    color: #fff !important;
}

/* ─── 결론 (슬레이트 다크 배경) ─────────────────────────────────────── */
.prmd-section-conclusion {
    padding: 24px;
    background: var(--prmd-slate-dark);
    border-radius: 12px;
    color: #fff;
    margin: 0 0 32px;
}

/* generation-core.php !important 오버라이드 */
.prmd-section-conclusion h2 {
    color: #e5e7eb !important;
    border-bottom: 1px solid rgba(255, 255, 255, .2) !important;
    background: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
}

.prmd-section-conclusion p {
    color: rgba(255, 255, 255, .9);
    margin: 0 0 16px;
}

.prmd-conclusion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prmd-conclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}

.prmd-conclusion-list li::before {
    content: '✓';
    color: #fca5a5;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.prmd-section-faq {
    margin: 0 0 32px;
}

.prmd-faq-item {
    border: 1px solid var(--prmd-slate-line);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.prmd-faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--prmd-text);
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.prmd-faq-item summary::-webkit-details-marker {
    display: none;
}

.prmd-faq-item summary::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--prmd-orange);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.prmd-faq-item[open] summary {
    color: var(--prmd-orange);
    background: var(--prmd-step-1);
}

.prmd-faq-ans {
    padding: 14px 20px 18px 52px;
    font-size: 14px;
    color: #57534e;
    line-height: 1.75;
    border-top: 1px solid var(--prmd-slate-line);
}

/* ─── 반응형 ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .prmd-product-list {
        grid-template-columns: 1fr;
    }

    .prmd-product-img {
        width: 100px;
    }

    .prmd-section-products {
        padding: 20px 16px;
    }

    .prmd-step[data-step='1'],
    .prmd-step[data-step='2'],
    .prmd-step[data-step='3'] {
        padding: 16px 14px;
    }

    .prmd-section-conclusion {
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .prmd-product-card {
        flex-direction: column;
    }

    .prmd-product-img {
        width: 100%;
        height: 140px;
    }

    .prmd-product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .prmd-summary {
        flex-direction: column;
        gap: 8px;
        padding: 14px 12px;
    }

    .prmd-step[data-step='1'],
    .prmd-step[data-step='2'],
    .prmd-step[data-step='3'] {
        padding: 14px 10px;
    }

    .prmd-section-products {
        padding: 16px 10px;
    }

    .prmd-section-conclusion {
        padding: 14px 10px;
    }

    .prmd-faq-item summary {
        padding: 12px 14px;
        font-size: 14px;
    }

    .prmd-faq-ans {
        padding: 12px 14px 14px 42px;
    }

    .prmd-post h2 {
        font-size: 18px;
        margin: 28px 0 10px;
    }

    .prmd-step-num {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
