/**
 * ETF Visual Components
 * Path: assets/css/etf-visuals.css
 * 
 * Additional styles for ETF article visual elements
 */

/* ETF Cards Grid */
.etf-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.etf-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.etf-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.etf-symbol {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.etf-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.etf-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.etf-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.etf-stat {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.etf-stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.etf-stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 2px;
}

/* Hero Statistics */
.hero-statistics {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.hero-stat-card {
    background: linear-gradient(135deg, var(--primary-color), #cc0000);
    color: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.3);
}

.hero-stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffd700;
    display: block;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Strategy Cards */
.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.strategy-card {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 2px solid #ffcccb;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
}

.strategy-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.allocation-bars {
    margin: 20px 0;
}

.allocation-item {
    margin-bottom: 15px;
}

.allocation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.allocation-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.allocation-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.allocation-fill.schd { background: linear-gradient(90deg, #3498db, #2980b9); }
.allocation-fill.vym { background: linear-gradient(90deg, #27ae60, #229954); }
.allocation-fill.smh { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.allocation-fill.xle { background: linear-gradient(90deg, #f39c12, #d68910); }

/* Performance Comparison Table */
.performance-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 30px 0;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
}

.performance-table th {
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.performance-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
}

.performance-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.performance-table .strategy-name {
    font-weight: bold;
    color: var(--accent-color);
}

.performance-table .highlight-row {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-left: 4px solid #27ae60;
}

.performance-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Chart Placeholders */
.chart-placeholder-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.chart-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #ced4da;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 15px;
}

.chart-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

/* Quick Reference Box */
.quick-reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.quick-ref-card {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.quick-ref-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-ref-allocation {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.quick-ref-allocation li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f1f2f6;
}

.quick-ref-allocation li:last-child {
    border-bottom: none;
}

.quick-ref-best-for {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    margin-top: 15px;
}

/* Downloadable Resource Box */
.download-resource {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 2px solid #ffd54f;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.download-resource::before {
    content: '📄';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #fff8e1;
    padding: 5px 10px;
    border-radius: 20px;
    border: 2px solid #ffd54f;
    font-size: 1.2rem;
}

.download-title {
    color: #e65100;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    margin-left: 40px;
}

.download-description {
    color: #bf360c;
    margin-bottom: 20px;
}

.download-list {
    list-style: none;
    padding: 0;
}

.download-list li {
    padding: 5px 0;
    color: #d84315;
    position: relative;
    padding-left: 20px;
}

.download-list li::before {
    content: '•';
    color: #ff5722;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .etf-showcase {
        grid-template-columns: 1fr;
    }
    
    .hero-statistics {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stat-card {
        min-width: auto;
    }
    
    .strategy-cards {
        grid-template-columns: 1fr;
    }
    
    .performance-table-container {
        overflow-x: auto;
    }
    
    .performance-table {
        min-width: 600px;
    }
    
    .quick-reference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .performance-table th,
    .performance-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .hero-stat-number {
        font-size: 2.2rem;
    }
    
    .etf-card {
        padding: 20px;
    }
}