/* Shop Screen Styling - Theme Aware */

#shop-screen .container {
    margin-top: 20px;
}

#shop-screen h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

#shop-screen p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Shop Balance Section */
.shop-balance {
    margin-top: 40px;
    text-align: center;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--box-shadow-color);
}

.shop-balance-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.shop-balance-amount {
    font-size: 56px;
    font-weight: bold;
    color: var(--shop-coin-color);
    text-shadow: 0 0 10px var(--shop-coin-color);
}

/* Shop Items Container */
.shop-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.shop-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.shop-item:hover {
    box-shadow: 0 4px 15px var(--box-shadow-color);
    transform: translateY(-2px);
}

.shop-item h3 {
    color: var(--text-secondary);
    font-size: 18px;
    margin: 0 0 15px 0;
}

.shop-item-single {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shop-price {
    font-size: 24px;
    color: var(--shop-coin-color);
    font-weight: bold;
    min-width: 80px;
}

.shop-button {
    flex: 1;
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shop-button:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.shop-button:active {
    transform: scale(0.98);
}

/* Shop Input */
.shop-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.shop-input {
    flex: 1;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color-light);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.shop-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.shop-cost-display {
    display: flex;
    align-items: center;
    color: var(--shop-coin-color);
    font-weight: bold;
    min-width: 100px;
    justify-content: flex-end;
    gap: 5px;
}

.shop-full-width-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shop-full-width-button:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.shop-full-width-button:active {
    transform: scale(0.98);
}


/* Shop Info */
.shop-info {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(0,0,0,0.2) 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.shop-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 8px 0;
}

.shop-info p:last-child {
    margin-bottom: 0;
}

.shop-info strong {
    color: var(--primary-light);
}

/* Shop Result Message */
#shop-result {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-secondary);
    font-size: 14px;
    animation: slideInUp 0.3s ease-out;
}

#shop-result.success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--success-color-light);
}

#shop-result.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #fca5a5;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button - Like secondary-btn */
.shop-back-button {
    width: 100%;
    margin-top: 40px;
    padding: 14px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.shop-back-button:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 15px var(--box-shadow-color);
}

.shop-back-button:active {
    transform: scale(0.98);
}


/* Responsive */
@media (max-width: 480px) {
    .shop-balance-amount {
        font-size: 42px;
    }
    
    .shop-item {
        padding: 15px;
    }
    
    .shop-button {
        padding: 10px;
        font-size: 13px;
    }
    
    .shop-full-width-button {
        padding: 10px;
        font-size: 13px;
    }
}
