/* Дополнительные стили для маркета */

.market-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2ecc71 100%);
    color: white;
    padding: 60px 0;
}

.market-hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.market-hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.balance-info {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.balance-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    min-width: 250px;
}

.balance-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.balance-amount {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.balance-unit {
    font-size: 14px;
    opacity: 0.8;
}

.balance-info-text {
    flex: 1;
    min-width: 300px;
}

.balance-info-text p {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 0;
}

.market-filters {
    background: var(--light-color);
    padding: 30px 0;
}

.market-filters .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-section {
    flex: 1;
    min-width: 250px;
}

.filter-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
}

.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    cursor: pointer;
}

.market-items {
    padding: 60px 0;
}

.market-items h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 20px;
}

.item-category {
    font-size: 12px;
    color: var(--gray-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.item-description {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.item-price span {
    font-size: 14px;
    color: var(--gray-color);
}

.buy-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: #27ae60;
}

.buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.how-to-earn {
    background: linear-gradient(rgba(57, 110, 223, 0.05), rgba(57, 110, 223, 0.1));
    padding: 60px 0;
}

.earn-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.earn-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.earn-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.earn-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.purchase-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.purchase-info img {
    width: 100%;
    border-radius: var(--border-radius);
}

.price, .balance {
    font-weight: bold;
    color: var(--primary-color);
}

.price-info, .balance-check, .after-purchase {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
}

#confirmPurchase {
    width: 100%;
    margin-top: 20px;
}