/* 콘텐츠 페이지 공통 스타일 */

/* 상단 네비게이션 바 */
.content-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--transition);
}

.topbar-back-btn:hover,
.topbar-back-btn:active {
    background: var(--bg-tertiary);
}

.topbar-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.topbar-home-btn:hover {
    background: var(--bg-tertiary);
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.topbar-theme-btn:hover {
    background: var(--bg-tertiary);
}

/* 컨테이너 */
.content-container {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* 헤더 */
.content-header {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.back-link:hover {
    text-decoration: underline;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 메인 콘텐츠 */
.content-main {
    padding: 24px 20px;
}

/* 인트로 섹션 */
.intro-section {
    text-align: center;
    padding: 32px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.intro-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.intro-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.intro-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 가이드 섹션 */
.guide-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.section-icon {
    font-size: 24px;
}

.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.section-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* 하이라이트 박스 */
.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* 비교 박스 */
.comparison-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.comparison-item {
    flex: 1;
    min-width: 140px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparison-item.highlight {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
}

.comparison-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.comparison-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-vs {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-tertiary);
}

/* 장점 그리드 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.benefit-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ETF 소개 카드 */
.etf-intro-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.etf-intro-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
}

.etf-intro-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.etf-intro-logo.sp500 {
    background: linear-gradient(135deg, #3182f6, #1b64da);
}

.etf-intro-logo.nasdaq {
    background: linear-gradient(135deg, #00c473, #00a85d);
}

.etf-intro-logo.schd {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.etf-intro-logo.jepi {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.etf-intro-logo.realty {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.etf-intro-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.etf-intro-tag {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
}

.etf-intro-body {
    padding: 20px;
}

.etf-intro-body p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.etf-features {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.etf-features li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.etf-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* 단계 리스트 */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* 팁 리스트 */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tip-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tip-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.tip-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tip-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* CTA 섹션 */
.cta-section {
    margin: 40px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.02);
}

/* 관련 링크 */
.related-links {
    margin-top: 40px;
}

.related-links h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.link-card:hover {
    background: var(--bg-tertiary);
}

.link-icon {
    font-size: 24px;
}

.link-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    word-break: keep-all;
}

/* 푸터 */
.content-footer {
    padding: 24px 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    background: var(--bg-secondary);
}

.content-footer p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ==================== */
/* 용어 사전 스타일 */
/* ==================== */

.search-section {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.search-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-tab:hover {
    background: var(--bg-tertiary);
}

.category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 용어 카드 */
.glossary-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.term-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
}

.term-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.term-category {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 12px;
}

.term-body {
    padding: 20px;
}

.term-definition {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.term-example {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.example-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.term-example p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.term-tip {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fff9e6;
    border-radius: var(--radius-sm);
    border: 1px solid #fcd34d;
}

.term-tip p {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

/* ==================== */
/* FAQ 스타일 */
/* ==================== */

.faq-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.faq-category-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.faq-category-btn:hover {
    background: var(--bg-tertiary);
}

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

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq-arrow {
    color: var(--text-tertiary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.faq-answer a {
    color: var(--primary-color);
}

.faq-tip-box {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.faq-tip-box.warning {
    background: #fef3f2;
    border-color: #fecaca;
}

.faq-tip-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-tip-box ul,
.faq-tip-box ol {
    margin: 0;
    padding-left: 20px;
}

.faq-tip-box li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.faq-highlight {
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.faq-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.faq-list-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.faq-list-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.faq-list-item p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

.faq-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.faq-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.faq-step .step-num {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.faq-step span:last-child {
    color: var(--text-primary);
}

.faq-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.faq-comparison-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.faq-comparison-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-comparison-item ul {
    margin: 0;
    padding-left: 16px;
}

.faq-comparison-item li {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.faq-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.faq-table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.faq-table-row:last-child {
    border-bottom: none;
}

.faq-table-row.header {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
}

.faq-table-row span {
    font-size: 13px;
    color: var(--text-primary);
}

/* 반응형 */
@media (max-width: 480px) {
    .content-header {
        padding: 12px 16px;
    }

    .content-title {
        font-size: 20px;
    }

    .content-main {
        padding: 20px 16px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .faq-list-grid {
        grid-template-columns: 1fr;
    }

    .faq-comparison {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* 다크모드 스타일 */
/* ==================== */

/* 다크모드에서 팁 박스 */
body.dark-mode .term-tip {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

body.dark-mode .term-tip p {
    color: #fcd34d;
}

/* 다크모드에서 FAQ warning 박스 */
body.dark-mode .faq-tip-box.warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ==================== */
/* 72법칙 페이지 스타일 */
/* ==================== */

.intro-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.intro-text strong {
    color: var(--text-primary);
}

/* 공식 카드 */
.formula-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin: 24px 0;
    text-align: center;
}

.formula-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.formula-number {
    font-size: 48px;
    font-weight: 800;
}

.formula-divider {
    font-size: 32px;
}

.formula-equals {
    font-size: 28px;
}

.formula-text,
.formula-result {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

/* 예시 박스 */
.example-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
}

.example-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.example-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}

.example-list li:last-child {
    border-bottom: none;
}

.example-list li em {
    color: var(--primary-color);
    font-style: normal;
    font-weight: 600;
}

/* 비교 테이블 */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table .highlight-row {
    background: var(--primary-light);
}

.comparison-table .positive {
    color: #10b981;
    font-weight: 600;
}

.comparison-table .dividend {
    color: #f59e0b;
    font-weight: 600;
}

.comparison-table .high {
    color: #ef4444;
}

.comparison-table .medium {
    color: #f59e0b;
}

.comparison-table .low {
    color: #10b981;
}

.comparison-table .neutral {
    color: var(--text-tertiary);
}

.table-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    text-align: right;
}

/* 정보 카드 */
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
}

.info-card-icon {
    font-size: 24px;
}

.info-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* 복리 예시 */
.compound-example {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compound-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.compound-item.highlight {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.compound-rate {
    font-size: 13px;
    color: var(--text-secondary);
}

.compound-result {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.compound-times {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.compound-item.highlight .compound-times {
    background: var(--primary-color);
    color: white;
}

/* 인용구 카드 */
.quote-card {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.quote-author {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
}

/* 팁 카드 그리드 */
.tip-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tip-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tip-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.tip-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tip-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* 경고 박스 */
.warning-box {
    background: #fef3f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 20px;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #991b1b;
    line-height: 1.5;
}

.warning-list li:last-child {
    margin-bottom: 0;
}

.warning-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #ef4444;
}

body.dark-mode .warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .warning-list li {
    color: #fca5a5;
}

/* 관련 링크 카드 */
.related-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.related-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.related-link-card:hover {
    background: var(--bg-tertiary);
}

.related-link-icon {
    font-size: 24px;
}

.related-link-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ==================== */
/* ETF 비교 페이지 스타일 */
/* ==================== */

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ETF 평결 */
.etf-verdict {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.verdict-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.verdict-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.verdict-content strong {
    font-size: 15px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.verdict-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* 배당금 계산 하이라이트 */
.dividend-highlight {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
}

.dividend-highlight h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.dividend-calc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dividend-calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.calc-etf {
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.calc-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 12px;
    text-align: center;
}

/* 추천 카드 */
.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.recommendation-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.rec-header.beginner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.rec-header.growth {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.rec-header.income {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.rec-header.balanced {
    background: linear-gradient(135deg, #3182f6, #1b64da);
    color: white;
}

.rec-icon {
    font-size: 24px;
}

.rec-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.rec-body {
    padding: 16px;
}

.rec-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.rec-pick {
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    line-height: 1.5;
}

.rec-reason {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* CTA 버튼 */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    margin-top: 16px;
}

.cta-button:hover {
    transform: scale(1.02);
}

.cta-icon {
    font-size: 20px;
}

/* 반응형 */
@media (max-width: 600px) {
    .recommendation-cards {
        grid-template-columns: 1fr;
    }

    .related-links {
        grid-template-columns: 1fr;
    }

    .formula-main {
        flex-direction: column;
        gap: 8px;
    }

    .formula-number {
        font-size: 36px;
    }
}
