/**
 * 스토리형 쿠션 페이지 CSS
 * 한국 시장용 - 스토리 기반 마케팅 페이지
 */

/* ===========================================
   기본 설정
   =========================================== */
.metaphm-story-page {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
    padding-bottom: 80px;
}

.metaphm-story-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   광고 표시
   =========================================== */
.metaphm-story-ad-notice {
    text-align: center;
    padding: 12px 0;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.metaphm-story-ad-notice .metaphm-ad-label {
    background: #666;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ===========================================
   히어로 섹션
   =========================================== */
.metaphm-story-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.metaphm-story-hero__content {
    text-align: center;
}

.metaphm-story-hero__subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.metaphm-story-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 24px 0 0;
    line-height: 1.5;
}

.metaphm-story-hero__title strong {
    color: #c9a86c;
    display: block;
    font-size: 32px;
}

/* ===========================================
   경고 섹션
   =========================================== */
.metaphm-story-warning {
    padding: 40px 0;
    background: #fff9f0;
}

.metaphm-story-warning__box {
    background: white;
    border: 2px solid #f0a500;
    border-radius: 12px;
    padding: 30px;
}

.metaphm-story-warning__title {
    font-size: 20px;
    font-weight: 700;
    color: #f0a500;
    margin-bottom: 20px;
    text-align: center;
}

.metaphm-story-warning__box p {
    margin-bottom: 16px;
    font-size: 16px;
}

.metaphm-story-warning__emphasis {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
}

.metaphm-story-warning__conditions {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.metaphm-story-warning__conditions p {
    margin-bottom: 8px;
}

/* ===========================================
   섹션 공통 스타일
   =========================================== */
.metaphm-story-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c9a86c;
}

.metaphm-story-author,
.metaphm-story-problem,
.metaphm-story-research,
.metaphm-story-solution,
.metaphm-story-education,
.metaphm-story-ingredient,
.metaphm-story-expose,
.metaphm-story-criteria,
.metaphm-story-conclusion,
.metaphm-story-closing {
    padding: 50px 0;
}

.metaphm-story-author {
    background: #fff;
}

.metaphm-story-problem {
    background: #f8f8f8;
}

.metaphm-story-research {
    background: #fff;
}

.metaphm-story-solution {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.metaphm-story-education {
    background: #fff;
}

.metaphm-story-ingredient {
    background: #f9f6f0;
}

.metaphm-story-expose {
    background: #fff5f5;
}

.metaphm-story-criteria {
    background: #e3f2fd;
}

.metaphm-story-conclusion {
    background: #f5f5f5;
}

.metaphm-story-closing {
    background: #fff;
}

/* ===========================================
   저자 소개 섹션
   =========================================== */
.metaphm-story-author__content p {
    font-size: 17px;
    margin-bottom: 16px;
}

/* ===========================================
   문제 상황 섹션
   =========================================== */
.metaphm-story-problem__content p {
    font-size: 17px;
    margin-bottom: 16px;
}

.metaphm-story-highlight {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid #e74c3c;
}

.metaphm-story-highlight blockquote {
    font-size: 18px;
    font-weight: 500;
    color: #e74c3c;
    margin: 15px 0;
    padding: 15px;
    background: #fff5f5;
    border-radius: 8px;
}

.metaphm-story-family {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    border: 2px solid #c9a86c;
}

/* ===========================================
   연구 과정 섹션
   =========================================== */
.metaphm-story-research__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metaphm-story-research__item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    align-items: flex-start;
}

.metaphm-story-research__number {
    font-weight: 700;
    color: #c9a86c;
    font-size: 18px;
    flex-shrink: 0;
}

.metaphm-story-research__text {
    font-size: 16px;
}

.metaphm-story-research__detail {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* ===========================================
   해결책 발견 섹션
   =========================================== */
.metaphm-story-solution__content {
    text-align: center;
}

.metaphm-story-solution__lead {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 20px;
}

.metaphm-story-solution__content p {
    font-size: 18px;
    margin-bottom: 16px;
}

.metaphm-story-result {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.metaphm-story-result__title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.metaphm-story-result p {
    font-size: 18px;
}

/* ===========================================
   목차 섹션
   =========================================== */
.metaphm-story-toc {
    padding: 40px 0;
    background: #333;
}

.metaphm-story-toc__box {
    background: #444;
    padding: 30px;
    border-radius: 12px;
    color: white;
}

.metaphm-story-toc__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #c9a86c;
}

.metaphm-story-toc__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.metaphm-story-toc__list li {
    padding: 10px 0;
    border-bottom: 1px solid #555;
    font-size: 16px;
}

.metaphm-story-toc__note {
    font-size: 14px;
    color: #aaa;
    text-align: center;
}

/* ===========================================
   교육 섹션
   =========================================== */
.metaphm-story-education__content p {
    font-size: 17px;
    margin-bottom: 16px;
}

.metaphm-story-education__highlight {
    background: #fff3cd;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.metaphm-story-education__key {
    background: #c9a86c;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.metaphm-story-education__key-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.metaphm-story-education__key ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.metaphm-story-education__key li {
    padding: 5px 0;
    font-size: 16px;
}

/* ===========================================
   핵심 성분 섹션
   =========================================== */
.metaphm-story-ingredient__content p {
    font-size: 17px;
    margin-bottom: 16px;
}

.metaphm-story-ingredient__explanation {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.metaphm-story-ingredient__key {
    background: #c9a86c;
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
}

/* ===========================================
   가짜 제품 폭로 섹션
   =========================================== */
.metaphm-story-expose__content h3 {
    font-size: 20px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.metaphm-story-expose__content p {
    font-size: 17px;
    margin-bottom: 16px;
}

.metaphm-story-expose__example {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #e74c3c;
}

.metaphm-story-expose__truth {
    background: #333;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
}

.metaphm-story-expose__truth-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.metaphm-story-expose__answer {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
}

.metaphm-story-expose__calculation {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e74c3c;
}

.metaphm-story-expose__calculation p {
    margin-bottom: 8px;
}

/* ===========================================
   선택 기준 섹션
   =========================================== */
.metaphm-story-criteria__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metaphm-story-criteria__item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.metaphm-story-criteria__number {
    width: 40px;
    height: 40px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.metaphm-story-criteria__text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: #1976d2;
}

.metaphm-story-criteria__text p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* ===========================================
   결론 섹션
   =========================================== */
.metaphm-story-conclusion__summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.metaphm-story-conclusion__summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #c9a86c;
    margin-bottom: 20px;
}

.metaphm-story-conclusion__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metaphm-story-conclusion__list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.metaphm-story-conclusion__criteria {
    background: #c9a86c;
    color: white;
    padding: 30px;
    border-radius: 12px;
}

.metaphm-story-conclusion__criteria-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.metaphm-story-conclusion__criteria ol {
    padding-left: 20px;
    margin: 0;
}

.metaphm-story-conclusion__criteria li {
    padding: 8px 0;
    font-size: 16px;
}

/* ===========================================
   CTA 섹션
   =========================================== */
.metaphm-story-cta {
    padding: 50px 0;
    background: linear-gradient(135deg, #c9a86c 0%, #a88b4a 100%);
}

.metaphm-story-cta__box {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.metaphm-story-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 20px;
}

.metaphm-story-cta__box p {
    font-size: 16px;
    margin-bottom: 16px;
}

.metaphm-story-cta__urgency {
    color: #e74c3c;
    font-weight: 500;
}

.metaphm-story-cta__deadline {
    font-size: 14px;
    color: #999;
}

.metaphm-story-cta__product {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.metaphm-story-cta__product-rank {
    font-size: 18px;
    font-weight: 700;
    color: #c9a86c;
    margin-bottom: 20px;
}

.metaphm-story-cta__button {
    display: inline-block;
    background: linear-gradient(135deg, #c9a86c 0%, #a88b4a 100%);
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(201, 168, 108, 0.4);
    will-change: transform;
}

.metaphm-story-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 108, 0.5);
}

/* ===========================================
   마무리 섹션
   =========================================== */
.metaphm-story-closing__content {
    text-align: center;
}

.metaphm-story-closing__content p {
    font-size: 17px;
    margin-bottom: 16px;
}

.metaphm-story-closing__thanks {
    font-size: 20px;
    font-weight: 500;
    color: #c9a86c;
    margin-top: 30px;
}

/* ===========================================
   참고 논문 섹션
   =========================================== */
.metaphm-story-references {
    padding: 40px 0;
    background: #f5f5f5;
}

.metaphm-story-references__box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
}

.metaphm-story-references__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c9a86c;
}

.metaphm-story-references__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 개별 논문 아코디언 */
.metaphm-story-paper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.metaphm-story-paper[open] {
    border-color: #c9a86c;
    box-shadow: 0 2px 8px rgba(201, 168, 108, 0.2);
}

.metaphm-story-paper__title {
    padding: 15px 20px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none;
    transition: background 0.2s;
}

.metaphm-story-paper__title::-webkit-details-marker {
    display: none;
}

.metaphm-story-paper__title::before {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #c9a86c;
    transition: transform 0.3s;
}

.metaphm-story-paper[open] .metaphm-story-paper__title::before {
    content: '-';
}

.metaphm-story-paper__title {
    position: relative;
    padding-right: 50px;
}

.metaphm-story-paper__title:hover {
    background: #f0f0f0;
}

.metaphm-story-paper[open] .metaphm-story-paper__title {
    background: #c9a86c;
    color: white;
}

.metaphm-story-paper[open] .metaphm-story-paper__title::before {
    color: white;
}

.metaphm-story-paper__meta {
    font-size: 12px;
    color: #888;
    font-style: italic;
    font-weight: 400;
}

.metaphm-story-paper[open] .metaphm-story-paper__meta {
    color: rgba(255, 255, 255, 0.8);
}

.metaphm-story-paper__content {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.metaphm-story-paper__content p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.metaphm-story-paper__content p:last-of-type {
    margin-bottom: 15px;
}

.metaphm-story-paper__link {
    display: inline-block;
    background: #1976d2;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.metaphm-story-paper__link:hover {
    background: #1565c0;
}

/* 기존 스타일 (사용하지 않지만 호환성 유지) */
.metaphm-story-references__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metaphm-story-references__content li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metaphm-story-references__content li:last-child {
    border-bottom: none;
}

.metaphm-story-references__content > a {
    color: #1976d2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s;
}

.metaphm-story-references__content > a:hover {
    color: #c9a86c;
    text-decoration: underline;
}

/* ===========================================
   플로팅 CTA
   =========================================== */
.metaphm-story-floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    text-align: center;
}

.metaphm-story-floating-cta__button {
    display: inline-block;
    background: linear-gradient(135deg, #c9a86c 0%, #a88b4a 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(201, 168, 108, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metaphm-story-floating-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 108, 0.5);
}

/* ===========================================
   반응형 스타일
   =========================================== */
@media (max-width: 768px) {
    .metaphm-story-hero__title {
        font-size: 22px;
    }

    .metaphm-story-hero__title strong {
        font-size: 26px;
    }

    .metaphm-story-section__title {
        font-size: 20px;
    }

    .metaphm-story-warning__box {
        padding: 20px;
    }

    .metaphm-story-author,
    .metaphm-story-problem,
    .metaphm-story-research,
    .metaphm-story-solution,
    .metaphm-story-education,
    .metaphm-story-ingredient,
    .metaphm-story-expose,
    .metaphm-story-criteria,
    .metaphm-story-conclusion,
    .metaphm-story-closing {
        padding: 35px 0;
    }

    .metaphm-story-research__item {
        flex-direction: column;
        gap: 10px;
    }

    .metaphm-story-criteria__item {
        flex-direction: column;
        gap: 15px;
    }

    .metaphm-story-cta__box {
        padding: 30px 20px;
    }

    .metaphm-story-cta__button,
    .metaphm-story-floating-cta__button {
        padding: 15px 30px;
        font-size: 16px;
    }
}
