/* Portfolio Diversification Guide - Specific Styles */

/* Diversification Explanation */
.diversification-explanation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.explanation-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.explanation-card h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.explanation-card p {
    color: #1e40af;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Basket Analogy */
.basket-analogy {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.basket-analogy h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.analogy-comparison {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.scenario {
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.scenario.bad {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 2px solid #fca5a5;
}

.scenario.good {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #bbf7d0;
}

.scenario h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.scenario.bad h4 {
    color: #dc2626;
}

.scenario.good h4 {
    color: #166534;
}

.scenario-visual {
    margin-bottom: 1.5rem;
}

.basket, .baskets {
    font-size: 2rem;
    margin: 1rem 0;
}

.baskets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arrow {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #6b7280;
}

.outcome {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
}

.scenario.bad .outcome {
    background: #fef2f2;
    color: #dc2626;
}

.scenario.good .outcome {
    background: #f0fdf4;
    color: #166534;
}

.scenario p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Mathematical Proof */
.mathematical-proof {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.mathematical-proof h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.proof-example {
    margin-top: 1.5rem;
}

.scenario-comparison {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.scenario-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.scenario-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.investment-details p {
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.outcomes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.outcome-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: white;
    border: 1px solid #e5e7eb;
}

.outcome-item.risk {
    background: #fef2f2;
    border-color: #fca5a5;
}

.outcome-item.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.proof-conclusion {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 2px solid #fcd34d;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.proof-conclusion h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.proof-conclusion p {
    color: #92400e;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefits Overview */
.benefits-overview {
    margin-top: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.benefit-card.featured {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.benefit-card p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.benefit-stats {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Historical Evidence */
.historical-evidence {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.historical-evidence h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.evidence-cards {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 1.5rem;
}

.evidence-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.evidence-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.crash-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.crash-scenario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.crash-scenario:first-child {
    background: #fef2f2;
}

.crash-scenario:last-child {
    background: #f0fdf4;
}

.loss {
    color: #dc2626;
    font-weight: 700;
}

.better {
    color: #166534;
    font-weight: 700;
}

.evidence-card p {
    color: #4b5563;
    margin: 0;
    font-size: 0.875rem;
    font-style: italic;
}

/* Diversification Types */
.diversification-types {
    margin-top: 2rem;
}

.type-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.type-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.type-card.priority-high {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.type-card.priority-medium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.type-card.priority-low {
    border-color: #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.type-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.type-title h3 {
    color: #1f2937;
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.priority-badge:not(.medium):not(.low) {
    background: #ef4444;
}

.priority-badge.medium {
    background: #f59e0b;
}

.priority-badge.low {
    background: #6b7280;
}

.type-card > p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sectors Overview */
.sectors-overview {
    margin-top: 1.5rem;
}

.sectors-overview h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.sectors-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sector-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.sector-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sector-info {
    flex: 1;
}

.sector-info strong {
    display: block;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
}

.sector-info small {
    color: #6b7280;
    font-size: 0.75rem;
}

.sector-weight {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Geographic Breakdown */
.geographic-breakdown,
.region-allocation {
    margin-top: 1.5rem;
}

.region-allocation h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.allocation-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.region-label {
    min-width: 120px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.allocation-bar {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.percentage {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

/* Asset Classes */
.asset-classes {
    margin-top: 1.5rem;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.asset-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.asset-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.asset-item h5 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.asset-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.asset-details span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.asset-details span:first-child {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.asset-details span:nth-child(2) {
    background: #f3f4f6;
    color: #374151;
}

.asset-details span:last-child {
    background: #ecfdf5;
    color: #166534;
}

/* Time Strategies */
.time-strategies {
    margin-top: 1.5rem;
}

.strategy-comparison {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.strategy-item {
    border-radius: 8px;
    padding: 1.5rem;
}

.strategy-item.bad {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 2px solid #fca5a5;
}

.strategy-item.good {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #bbf7d0;
}

.strategy-item h5 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.strategy-item.bad h5 {
    color: #dc2626;
}

.strategy-item.good h5 {
    color: #166534;
}

.strategy-visual {
    margin-bottom: 1rem;
}

.investment-timing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timing-dot {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timing-dot.large {
    background: #3b82f6;
    color: white;
}

.timing-dot:not(.large) {
    background: #dbeafe;
    color: #1e40af;
}

.arrow {
    color: #6b7280;
    font-weight: 700;
}

.result {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
}

.strategy-item p {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Market Cap Breakdown */
.market-cap-breakdown {
    margin-top: 1.5rem;
}

.cap-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cap-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.cap-item h5 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.cap-item p {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.recommended {
    display: inline-block;
    background: #ecfdf5;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Style Comparison */
.style-comparison {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.style-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.style-item h5 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.style-item p {
    color: #4b5563;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.style-pros-cons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pro {
    color: #166534;
    font-size: 0.7rem;
}

.con {
    color: #dc2626;
    font-size: 0.7rem;
}

/* Currency Allocation */
.currency-allocation {
    margin-top: 1.5rem;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.currency-flag {
    font-size: 1.5rem;
}

.currency-info {
    display: flex;
    flex-direction: column;
}

.currency-info strong {
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
}

.currency-info span {
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Implementation Tips */
.implementation-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.implementation-tip strong {
    color: #166534;
}

.implementation-tip {
    color: #166534;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ETF Diversification */
.etf-diversification {
    margin-top: 2rem;
}

.etf-benefits {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.etf-benefits h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.benefits-comparison {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.comparison-item {
    border-radius: 8px;
    padding: 1.5rem;
}

.comparison-item:first-child {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 2px solid #fca5a5;
}

.comparison-item.featured {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #bbf7d0;
}

.comparison-item h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.comparison-item:first-child h4 {
    color: #dc2626;
}

.comparison-item.featured h4 {
    color: #166534;
}

.comparison-item ul {
    margin: 0;
    padding-left: 1.25rem;
}

.comparison-item li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.comparison-item:first-child li {
    color: #dc2626;
}

.comparison-item.featured li {
    color: #166534;
}

/* ETF Strategy Levels */
.etf-strategy-levels {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.etf-strategy-levels h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.strategy-level {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.strategy-level.beginner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #bbf7d0;
}

.strategy-level.intermediate {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 2px solid #fcd34d;
}

.strategy-level.advanced {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 2px solid #fca5a5;
}

.level-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.level-title h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.strategy-level.beginner .level-title h4 {
    color: #166534;
}

.strategy-level.intermediate .level-title h4 {
    color: #92400e;
}

.strategy-level.advanced .level-title h4 {
    color: #dc2626;
}

.complexity {
    font-size: 0.875rem;
    color: #6b7280;
}

.strategy-content p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* ETF Cards */
.etf-recommendation,
.portfolio-allocation {
    margin-bottom: 1.5rem;
}

.etf-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.etf-card h5 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.etf-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.etf-details span {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.allocation-preview {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Strategy Pros/Cons */
.strategy-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 6px;
}

.pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.cons {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.pros h6 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.cons h6 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pros ul, .cons ul {
    margin: 0;
    padding-left: 1rem;
}

.pros li {
    color: #166534;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.cons li {
    color: #dc2626;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Advanced Portfolio */
.advanced-portfolio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-section h6 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.etf-mini-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.etf-mini {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Broker Recommendation */
.broker-recommendation {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.broker-recommendation h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.broker-recommendation p {
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Comparison Grid (same as risk management) */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.comparison-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.comparison-card.featured {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.comparison-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.broker-info img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.broker-info h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.diversification-features {
    text-align: left;
    margin-bottom: 2rem;
}

.diversification-features h5 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.diversification-features ul {
    margin: 0;
    padding-left: 1.25rem;
}

.diversification-features li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.broker-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.broker-actions .btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.broker-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.broker-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.broker-actions .btn-secondary {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.broker-actions .btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

/* Sample Portfolios */
.sample-portfolios {
    margin-top: 2rem;
}

.portfolio-selector {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio-selector h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.risk-profiles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.risk-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.risk-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.risk-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.portfolio-details {
    display: none;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.portfolio-details.active {
    display: block;
}

.portfolio-title {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-title h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.portfolio-stats .stat {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.portfolio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.allocation-chart h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.allocation-visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.allocation-visual .allocation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.allocation-visual .allocation-bar {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.allocation-visual .bar-fill {
    height: 100%;
    border-radius: 12px;
}

.allocation-visual span {
    min-width: 150px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.portfolio-characteristics {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.portfolio-characteristics h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.portfolio-characteristics ul {
    margin: 0;
    padding-left: 1.25rem;
}

.portfolio-characteristics li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Implementation Guide */
.implementation-guide {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.implementation-guide h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.implementation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.step-content p {
    color: #4b5563;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Rebalancing Guide */
.rebalancing-guide {
    margin-top: 2rem;
}

.rebalancing-explanation {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.rebalancing-explanation h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.rebalancing-explanation p {
    color: #1e40af;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Rebalancing Example */
.rebalancing-example {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rebalancing-example h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.example-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.timeline-step h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.allocation-state p {
    color: #4b5563;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.allocation-bar-example {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.timeline-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: #6b7280;
}

/* Rebalancing Strategies */
.rebalancing-strategies {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rebalancing-strategies h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.strategy-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.strategy-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.strategy-card.featured {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.strategy-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.strategy-details p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.frequency-options,
.threshold-examples,
.sparplan-approach {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.frequency-options span,
.threshold-examples span,
.sparplan-approach span {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pros-cons-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pros-mini, .cons-mini {
    padding: 1rem;
    border-radius: 6px;
}

.pros-mini {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.cons-mini {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.pros-mini strong {
    color: #166534;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.cons-mini strong {
    color: #dc2626;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pros-mini ul, .cons-mini ul {
    margin: 0;
    padding-left: 1rem;
}

.pros-mini li {
    color: #166534;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.cons-mini li {
    color: #dc2626;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

/* Rebalancing Tools */
.rebalancing-tools {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rebalancing-tools h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.tools-comparison {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.tool-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.tool-option h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.tool-option p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tool-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tool-details span {
    font-size: 0.75rem;
    padding: 0.25rem 0;
}

.tool-details .pro {
    color: #166534;
}

.tool-details .con {
    color: #dc2626;
}

.tool-details .neutral {
    color: #6b7280;
}

.tool-examples {
    font-size: 0.75rem;
    color: #4b5563;
}

.tool-examples strong {
    color: #1f2937;
}

/* Rebalancing Tips */
.rebalancing-tips {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.rebalancing-tips h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.tip-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.tip-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.tip-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tip-card li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Common Mistakes */
.common-mistakes {
    margin-top: 2rem;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mistake-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.mistake-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #ef4444;
}

.mistake-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mistake-title h4 {
    color: #1f2937;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.severity {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.severity.high {
    background: #ef4444;
}

.severity.medium {
    background: #f59e0b;
}

.severity.low {
    background: #6b7280;
}

.mistake-content p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.mistake-description {
    color: #dc2626;
}

.mistake-impact {
    color: #f59e0b;
}

.mistake-solution {
    color: #166534;
}

/* Mistakes Summary */
.mistakes-summary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.mistakes-summary h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.summary-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.checklist-item label {
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analogy-comparison,
    .scenario-comparison,
    .benefits-comparison {
        grid-template-columns: 1fr;
    }
    
    .allocation-bars {
        gap: 1rem;
    }
    
    .allocation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .allocation-bar {
        width: 100%;
    }
    
    .strategies-grid,
    .tools-comparison,
    .tips-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-content {
        grid-template-columns: 1fr;
    }
    
    .implementation-steps {
        grid-template-columns: 1fr;
    }
    
    .risk-profiles {
        flex-direction: column;
        align-items: center;
    }
    
    .pros-cons,
    .pros-cons-mini {
        grid-template-columns: 1fr;
    }
    
    .strategy-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .sectors-grid,
    .asset-grid,
    .currency-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .etf-details {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .allocation-visual span {
        min-width: auto;
        font-size: 0.75rem;
    }
} 