.market-wrapper {
    width: 100%;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
}

.market-header {
    margin-bottom: 10px;
    padding-bottom: 0;
}

.market-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.market-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--surface-700);
    border: 1px solid var(--surface-600);
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.market-alert i {
    color: var(--brand-red);
    font-size: 24px;
    margin-top: 2px;
}

.market-alert-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-alert-text strong {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
}

.market-alert-text p {
    margin: 0;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.market-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface-800);
    border: 1px solid var(--surface-700);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.card-image {
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.item-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.3;
}

.item-desc {
    margin: 0 0 16px 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    font-weight: bold;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row.mt-5 {
    margin-top: 5px;
}

.info-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
}

.info-val {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 700;
}

.puan-row {}

.puan-row .info-label {
    color: var(--text-gray);
}

.puan-row .puan-val {
    color: var(--brand-red);
}

.stock-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--surface-600);
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.stock-progress-fill {
    height: 100%;
    background-color: var(--success-color);
    /* Varsayılan yeşil */
    border-radius: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-700);
}

.price-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-700);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--surface-600);
}

.coin-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.price-text {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1;
}

.price-currency {
    font-size: 9px;
    color: var(--text-gray);
    line-height: 1;
    margin-top: 2px;
}

.buy-btn {
    background-color: var(--brand-red);
    border: none;
    border-radius: 8px;
    color: var(--text-light, #fff);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.buy-btn:hover {
    opacity: 0.9;
}

.buy-btn:disabled,
.disabled-btn {
    background: var(--surface-700) !important;
    color: var(--text-gray) !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Media Queries */
@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: 1fr;
    }

    .market-card {
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }

    .card-image {
        width: 100px;
        flex-shrink: 0;
    }

    .card-image img {
        height: auto;
        border-radius: 8px;
    }

    .card-content {
        padding: 0;
        width: calc(100% - 142px);
    }

    .item-title {
        font-size: 12px;
        margin: 10px 0px 0px 0px;
    }

    .item-desc {
        font-size: 10px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .info-row {
        margin-bottom: 2px;
    }

    .info-label,
    .info-val {
        font-size: 11px;
    }

    .stock-progress-bar {
        height: 3px;
        margin-top: 2px;
        margin-bottom: 6px;
    }

    .card-footer {
        padding-top: 8px;
        gap: 8px;
        margin-top: 5px;
    }

    .price-info {
        padding: 6px 8px;
    }

    .coin-img {
        width: 20px;
        height: 20px;
    }

    .price-amount {
        font-size: 12px;
    }

    .price-currency {
        font-size: 9px;
    }

    .buy-btn {
        padding: 8px 16px;
        font-size: 12px;
        flex: 1;
    }
}