/* Market Pricing Analysis Component Styles */
.market-pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.market-pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.market-pricing-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.update-time {
    font-size: 14px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.live-indicator {
    color: #4caf50;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.market-pricing-intro {
    text-align: center;
    margin-bottom: 30px;
}

.market-pricing-intro h3 {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.market-pricing-intro p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 10px;
}

.click-instruction {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.diamond-market-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.market-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.market-card-title {
    flex: 1;
}

.market-card-chart {
    margin-bottom: 15px;
    padding: 10px 0;
    background-color: #fafbfc;
    border-radius: 8px;
}

.price-trend-chart {
    max-height: 100px;
    width: 100% !important;
    height: auto !important;
}

.buy-indicator {
    display: inline-block;
    background-color: #f0f8ff;
    color: #0066cc;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    margin-right: 6px;
}

.best-time-label {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    border: 1px solid #66bb6a;
}

.market-card-title h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.available-count {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.diamond-shape-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-card-price {
    margin-bottom: 15px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.price-change {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.trend-down-excellent {
    background-color: #e6f7ee;
    color: #00a651;
}

.trend-down-moderate {
    background-color: #fff3e0;
    color: #ff9800;
}

.trend-up-bad {
    background-color: #ffebee;
    color: #e53935;
}

.trend-neutral {
    background-color: #f5f5f5;
    color: #757575;
}

.days-period {
    font-size: 12px;
    font-weight: 400;
    margin-left: 5px;
    opacity: 0.8;
}

.market-card-insights {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.confidence-bar-container {
    margin-bottom: 12px;
}

.confidence-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.confidence-icon {
    font-size: 16px;
}

.confidence-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    flex: 1;
}

.confidence-percentage {
    font-size: 14px;
    font-weight: 700;
}

.confidence-percentage.tier-excellent {
    color: #2e7d32;
}

.confidence-percentage.tier-moderate {
    color: #f57c00;
}

.confidence-percentage.tier-wait {
    color: #d32f2f;
}

.confidence-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

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

.confidence-fill.tier-excellent {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
}

.confidence-fill.tier-moderate {
    background: linear-gradient(90deg, #ff9800 0%, #ffb74d 100%);
}

.confidence-fill.tier-wait {
    background: linear-gradient(90deg, #f44336 0%, #ef5350 100%);
}

.tier-message-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.tier-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tier-indicator.tier-excellent {
    background-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.tier-indicator.tier-moderate {
    background-color: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}

.tier-indicator.tier-wait {
    background-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.4);
}

.tier-message {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.status-icon {
    font-size: 16px;
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}



.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}



/* Full Market Analysis Section */
.full-market-analysis {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.analysis-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.analysis-header p {
    font-size: 16px;
    color: #666;
}

.analysis-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.analysis-table thead {
    background-color: #f8f9fa;
}

.analysis-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.analysis-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    /* color: #555; */
}

.analysis-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.clickable-row {
    cursor: pointer;
}

.price-index-cell {
    padding: 16px !important;
}

.index-title {
    font-size: 16px;
    font-weight: 500;
    color: #254264;
    margin-bottom: 4px;
}

.index-shape {
    font-size: 14px;
    color: #888;
}

.chart-cell {
    padding: 12px 16px !important;
    text-align: center;
    vertical-align: middle;
}

.mini-chart {
    display: block;
    margin: 0 auto;
    max-width: 150px;
    height: 50px;
}

.price-cell {
    font-weight: 500;
    color: #254264;
    font-size: 16px;
}

.trend-cell {
    font-weight: 600;
    font-size: 15px;
}

.trend-arrow {
    margin-right: 2px;
}

.trend-down-green {
    color: #00a651;
    /* background-color: #e6f7ee; */
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.trend-up-orange {
    color: #ff6f00;
    /* background-color: #fff3e0; */
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.best-deal-cell {
    font-weight: 500;
    color: #254264;
    font-size: 16px;
}

.analysis-view-more {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.view-more-analysis-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-more-analysis-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.view-more-analysis-button .arrow-icon {
    font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .diamond-market-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-table {
        font-size: 13px;
    }

    .analysis-table th,
    .analysis-table td {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .market-pricing-section {
        padding: 30px 15px;
    }
    
    .market-pricing-header h2 {
        font-size: 28px;
    }
    
    .market-pricing-intro h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .diamond-market-cards {
        grid-template-columns: 1fr;
    }
    
    .market-pricing-header h2 {
        font-size: 24px;
    }
    
    .market-pricing-intro h3 {
        font-size: 20px;
    }
    
    .market-pricing-intro p {
        font-size: 14px;
    }
}