.search-item {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 16px;
    margin: 10px;
    width: 320px;
    min-height: 214px;
    color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.search-item:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.market-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 16px;
}

.market-header h1{
    padding: 0px;
}

.market-name {
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-top: 5px !important;
    color: #ffffff !important;
    text-align: left !important;
    padding: 0 !important;
}

.market-name::first-letter {
    text-transform: capitalize;
}

.overall-rating {
    background-color: #444444;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    min-width: 40px;
    text-align: center;
    margin-left: auto;
}

.market-content {
    margin-bottom: 2px;
    flex: 1;
}

.score-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.score-label {
    font-size: 14px;
    color: #cccccc;
    min-width: 60px;
    text-align: left;
}

.score-bar {
    flex: 1;
    height: 8px;
    background-color: #444444;
    border-radius: 4px;
    overflow: hidden;
}

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

.variety-fill {
    background-color: #3b82f6; 
}

.stock-fill {
    background-color: #10b981; 
}

.price-fill {
    background-color: #f59e0b; 
}

.score-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.last-updated {
    font-size: 12px;
    color: #888888;
    margin-top: auto;
    padding-top: 2px;
}

.market-rating-error,
.market-rating-unavailable {
    color: #ef4444;
    font-size: 14px;
    margin: 8px 0;
}
