/* MINEZONE - Магазин CSS */

/* Выбор сервера */
.server-select-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(74, 159, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(74, 159, 255, 0.2);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.server-select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.server-select-card:hover::before {
    left: 100%;
}

.server-select-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #4a9fff;
    box-shadow: 0 20px 40px rgba(74, 159, 255, 0.2);
}

.server-select-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.server-select-info {
    flex: 1;
}

.server-select-arrow {
    font-size: 2rem;
    color: rgba(74, 159, 255, 0.5);
    transition: all 0.3s ease;
}

.server-select-card:hover .server-select-arrow {
    color: #4a9fff;
    transform: translateX(10px);
}

/* Кнопка корзины */
.cart-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(74, 159, 255, 0.2), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(74, 159, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.cart-button:hover, .cart-button.active {
    background: linear-gradient(135deg, rgba(74, 159, 255, 0.3), rgba(0, 212, 255, 0.2));
    border-color: #4a9fff;
    transform: scale(1.05);
}

.cart-button #cart-count {
    background: #ff4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.cart-button #cart-count:empty,
.cart-button #cart-count:contains('0') {
    display: none;
}

/* Табы категорий */
.category-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-tab:hover {
    background: rgba(74, 159, 255, 0.1);
    border-color: rgba(74, 159, 255, 0.3);
    color: var(--text);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(74, 159, 255, 0.25), rgba(0, 212, 255, 0.15));
    border-color: #4a9fff;
    color: #fff;
}

/* Карточка товара */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 159, 255, 0.3);
}

.product-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.product-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.7rem;
    color: #4a9fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0.25rem 0;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-id {
    font-size: 0.7rem;
    color: #6b8ab0;
    margin-bottom: 0.75rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff88;
}

.price-amount {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-add-cart {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4a9fff, #00d4ff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 159, 255, 0.4);
}

/* Привилегии */
.privilege-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.privilege-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.privilege-card[data-color="#00ff88"]::before { background: #00ff88; }
.privilege-card[data-color="#8a2be2"]::before { background: #8a2be2; }
.privilege-card[data-color="#ff4444"]::before { background: #ff4444; }

.privilege-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.privilege-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: privilegePulse 2s ease-in-out infinite;
}

@keyframes privilegePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.privilege-perks {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.privilege-perks li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Корзина */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(74, 159, 255, 0.1);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}

.cart-item-image span {
    font-size: 2rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(74, 159, 255, 0.3);
}

.cart-item-price {
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    opacity: 1;
    transform: scale(1.2);
}

.cart-total {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 200, 100, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
}

/* Мини-корзина в сайдбаре */
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
}

.mini-cart-name {
    flex: 1;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-qty {
    color: var(--text-muted);
}

.mini-cart-price {
    color: #00ff88;
    font-weight: 600;
}

/* Анимация добавления в корзину */
@keyframes addToCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.add-animation {
    animation: addToCart 0.3s ease;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(50px);
}

.notification.success {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.95), rgba(0, 150, 60, 0.95));
    border: 1px solid rgba(0, 255, 100, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.95), rgba(200, 0, 0, 0.95));
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, rgba(74, 159, 255, 0.95), rgba(0, 100, 200, 0.95));
    border: 1px solid rgba(100, 180, 255, 0.3);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    line-height: 1.4;
}
