/**
 * 파일명: post-promo-h.css
 * 파일경로: /home/thejoagi/corebizflow.com/wp-content/plugins/custom-post/assets/css/
 * 기능: post-promo-h.php 전용 스타일 (prmh- 접두사, 올리브 그린 팔레트)
 * 작성일: 2026-03-28
 * 수정일: 2026-03-28
 */

/* ─── 팔레트 변수 ─────────────────────────────────────────── */
.prmh-post {
    --prmh-olive:       #4d7c0f;
    --prmh-olive-dark:  #3f6212;
    --prmh-olive-light: #d9f99d;
    --prmh-olive-pale:  #f7fee7;
    --prmh-text:        #1a1a1a;
    --prmh-text-light:  #4b5563;
    --prmh-border:      #bbf7d0;
    --prmh-white:       #ffffff;
}

/* ─── 기본 리셋 ───────────────────────────────────────────── */
.prmh-post * { box-sizing: border-box; }
.prmh-post img { max-width: 100%; height: auto; }
.prmh-post a { text-decoration: none; }

/* ─── 래퍼 ───────────────────────────────────────────────── */
.prmh-post {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    color: var(--prmh-text);
    line-height: 1.75;
}

/* ─── 요약 박스 ───────────────────────────────────────────── */
.prmh-summary {
    background: var(--prmh-olive-pale);
    border: 1px solid var(--prmh-border);
    border-top: 4px solid var(--prmh-olive);
    border-radius: 0 0 8px 8px;
    padding: 18px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.prmh-summary-label {
    flex-shrink: 0;
    background: var(--prmh-olive);
    color: var(--prmh-white) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 2px;
}
.prmh-summary p {
    margin: 0;
    font-size: 15px;
    color: var(--prmh-text);
    font-weight: 500;
    line-height: 1.65;
}

/* ─── 도입부 ──────────────────────────────────────────────── */
.prmh-section-intro {
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 2px dashed var(--prmh-border);
}
.prmh-intro-text {
    font-size: 15px;
    color: var(--prmh-text-light);
    margin: 0;
}

/* ─── 콘텐츠 섹션 ─────────────────────────────────────────── */
.prmh-section-content {
    background: var(--prmh-white);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 20px;
    border: 1px solid var(--prmh-border);
}
.prmh-section-content.prmh-section-alt {
    background: var(--prmh-olive-pale);
    border-color: transparent;
}
.prmh-section-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmh-olive-dark) !important;
    border-bottom: 1px solid var(--prmh-border) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin: 0 0 16px;
}
.prmh-section-content p {
    font-size: 15px;
    color: var(--prmh-text-light);
    margin: 0 0 10px;
}
.prmh-section-content p:last-child { margin-bottom: 0; }

/* ─── 제품 섹션 ───────────────────────────────────────────── */
.prmh-section-products {
    margin-bottom: 32px;
}
.prmh-section-products h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--prmh-olive-dark) !important;
    border-bottom: 2px solid var(--prmh-olive) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ─── 순위 번호 배지 리스트 ───────────────────────────────── */
.prmh-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: none;
}
.prmh-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--prmh-white);
    border: 1px solid var(--prmh-border);
    border-radius: 10px;
    padding: 14px 18px;
    position: relative;
}
.prmh-product-rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--prmh-olive);
    color: var(--prmh-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}
.prmh-product-item:nth-child(1) .prmh-product-rank { background: #ca8a04; }
.prmh-product-item:nth-child(2) .prmh-product-rank { background: #6b7280; }
.prmh-product-item:nth-child(3) .prmh-product-rank { background: #92400e; }
.prmh-product-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--prmh-olive-pale);
}
.prmh-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prmh-product-no-img { background: var(--prmh-olive-light); }
.prmh-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.prmh-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--prmh-text);
    margin: 0;
    line-height: 1.4;
    text-align: left !important;
}
.prmh-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--prmh-olive-dark);
    margin: 0;
    text-align: left !important;
}
.prmh-product-btn {
    display: inline-block !important;
    background: var(--prmh-olive) !important;
    color: var(--prmh-white) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 9px 22px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer;
    text-align: center !important;
    align-self: flex-end;
    white-space: nowrap;
    margin-top: 4px;
}
.prmh-product-btn:hover {
    background: var(--prmh-olive-dark) !important;
    color: var(--prmh-white) !important;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.prmh-section-faq { margin-bottom: 24px; }
.prmh-section-faq h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmh-olive-dark) !important;
    border-bottom: 2px solid var(--prmh-olive) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.prmh-faq-item {
    border: 1px solid var(--prmh-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.prmh-faq-item summary {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--prmh-text);
    cursor: pointer;
    list-style: none;
    background: var(--prmh-white);
}
.prmh-faq-item summary::-webkit-details-marker { display: none; }
.prmh-faq-item[open] summary {
    background: var(--prmh-olive-pale);
    color: var(--prmh-olive-dark);
}
.prmh-faq-ans {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--prmh-text-light);
    background: var(--prmh-white);
    border-top: 1px solid var(--prmh-border);
}
.prmh-faq-ans p { margin: 0 0 8px; }
.prmh-faq-ans p:last-child { margin-bottom: 0; }

/* ─── 결론 ────────────────────────────────────────────────── */
.prmh-section-conclusion {
    background: var(--prmh-olive-dark);
    border-radius: 12px;
    padding: 32px 36px;
    margin-bottom: 20px;
}
.prmh-section-conclusion h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmh-olive-light) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin: 0 0 16px;
}
.prmh-section-conclusion p {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    margin: 0 0 16px;
}
.prmh-conclusion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prmh-conclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    line-height: 1.55;
}
.prmh-conclusion-list li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--prmh-olive-light);
    font-weight: 700;
    margin-top: 1px;
}

/* ─── 모바일 반응형 ───────────────────────────────────────── */
@media (max-width: 768px) {
    .prmh-section-content { padding: 20px 18px; }
    .prmh-section-conclusion { padding: 24px 20px; }
    .prmh-product-thumb { width: 76px; height: 76px; }
}
@media (max-width: 480px) {
    .prmh-summary { padding: 14px 12px; }
    .prmh-section-content { padding: 16px 10px; }
    .prmh-product-item { padding: 12px 12px; gap: 10px; }
    .prmh-product-rank { width: 30px; height: 30px; font-size: 13px; }
    .prmh-product-thumb { width: 64px; height: 64px; }
    .prmh-product-btn { font-size: 12px !important; padding: 8px 16px !important; }
    .prmh-section-conclusion { padding: 20px 12px; }
    .prmh-faq-item summary { padding: 12px 14px; font-size: 14px; }
    .prmh-faq-ans { padding: 12px 14px; }
}
