/* GameStores → Продвинутая конфигурация → CSS */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 4px 24px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(255, 82, 82, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes socialHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* ========== БЛОКИРОВКА КОНТЕКСТНОГО МЕНЮ ========== */
.product-card,
.product-item,
.item-card,
[class*="product"],
[class*="item"] {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    pointer-events: auto !important;
    -webkit-touch-callout: none !important;
}

/* ========== ОСНОВНОЙ ФОН ========== */
body {
    background: 
        linear-gradient(135deg, 
            rgba(15, 15, 25, 0.98) 0%, 
            rgba(25, 15, 35, 0.98) 100%),
        radial-gradient(circle at 20% 30%, 
            rgba(120, 119, 198, 0.03) 0%, 
            transparent 50%),
        radial-gradient(circle at 80% 70%, 
            rgba(255, 119, 198, 0.02) 0%, 
            transparent 50%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    min-height: 100vh !important;
    position: relative !important;
}

:root[data-theme] {
    --default-font-family: 'Roboto', sans-serif;
    --default-font-size: 14px;
    --accent-color-800: #FF5252 !important;
    --accent-color-900: #D32F2F !important;
    --font-color-700: rgba(255, 255, 255, 0.95) !important;
    --font-color-800: rgba(255, 255, 255, 0.8) !important;
    --font-color-900: #FFFFFF !important;
    --bg-color-700: rgba(30, 30, 30, 0.3) !important;
    --bg-color-800: rgba(40, 40, 40, 0.2) !important;
    --bg-color-900: rgba(50, 50, 50, 0.25) !important;
    --product-items-trans-bg-color: rgba(0, 0, 0, 0.2) !important;
    --safe-padding: 12px !important;
    
    /* Новые переменные для эффекта стекла */
    --glass-bg: rgba(255, 255, 255, 0.05) !important;
    --glass-border: rgba(255, 255, 255, 0.1) !important;
    --glass-blur: blur(20px) !important;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    --glass-accent-border: rgba(255, 82, 82, 0.2) !important;
}

/* ========== СТЕКЛЯННЫЕ КАРТОЧКИ С АНИМАЦИЯМИ ========== */
.product-card, 
.product-item,
.item-card,
[class*="product-card"] {
    /* Эффект стекла из виджета */
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) saturate(180%) !important;
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow) !important;
    
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: default !important;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    opacity: 0 !important;
    transform-origin: center bottom !important;
}

/* Эффект "появления по очереди" для карточек */
.product-card:nth-child(odd) {
    animation-delay: 0.1s !important;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s !important;
}

/* Свечение при загрузке */
.product-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent) !important;
    background-size: 200% 100% !important;
    animation: shimmer 2s infinite !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
    border-radius: 16px !important;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ - Улучшенный стеклянный эффект */
.product-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--glass-accent-border) !important;
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 
        0 25px 50px rgba(255, 82, 82, 0.25),
        0 0 100px rgba(255, 82, 82, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        var(--glass-shadow) !important;
    cursor: pointer !important;
    animation: pulseGlow 2s infinite !important;
    z-index: 10 !important;
}

/* ПЛАВНОЕ ПАРЯЩЕЕ ДВИЖЕНИЕ */
.product-card:hover {
    animation: floatCard 3s ease-in-out infinite !important;
}

/* СВЕТЯЩАЯСЯ АНИМИРОВАННАЯ РАМКА */
.product-card::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, 
        #FF5252, 
        #D32F2F, 
        #FF5252, 
        #D32F2F) !important;
    background-size: 400% 400% !important;
    border-radius: 18px !important;
    z-index: -1 !important;
    opacity: 0 !important;
    animation: borderFlow 3s linear infinite !important;
    transition: opacity 0.3s ease !important;
    filter: blur(8px) !important;
}

.product-card:hover::before {
    opacity: 0.6 !important;
}

/* ========== СТИЛИ ДЛЯ ВИДЖЕТА СОЦИАЛЬНЫХ СЕТЕЙ ========== */
.social-widget {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-accent-border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 20px 0 !important;
    box-shadow: var(--glass-shadow) !important;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.social-widget:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 12px 40px rgba(255, 82, 82, 0.15),
        var(--glass-shadow) !important;
    border-color: rgba(255, 82, 82, 0.3) !important;
}

.social-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.social-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    animation: iconFloat 3s ease-in-out infinite !important;
}

.social-title {
    color: white !important;
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.social-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    margin-top: 4px !important;
}

.social-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: socialHover 0.3s ease forwards !important;
}

.social-link:hover {
    animation: socialHover 0.3s ease forwards !important;
    transform: translateY(-4px) !important;
}

.social-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 0 !important;
}

.social-link:hover::before {
    opacity: 1 !important;
}

.social-link-vk:hover {
    background: rgba(76, 117, 163, 0.15) !important;
    border-color: rgba(76, 117, 163, 0.4) !important;
    box-shadow: 0 8px 32px rgba(76, 117, 163, 0.2) !important;
}

.social-link-discord:hover {
    background: rgba(88, 101, 242, 0.15) !important;
    border-color: rgba(88, 101, 242, 0.4) !important;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.2) !important;
}

.social-link-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
    transition: transform 0.3s ease !important;
}

.social-link:hover .social-link-icon {
    transform: scale(1.1) rotate(5deg) !important;
}

.social-link-vk .social-link-icon {
    background: linear-gradient(135deg, #4C75A3, #3A5F8A) !important;
}

.social-link-discord .social-link-icon {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
}

.social-link-content {
    flex: 1 !important;
    z-index: 1 !important;
}

.social-link-name {
    color: white !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.social-link-description {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
}

.social-link-arrow {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 16px !important;
    padding: 8px 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.social-link:hover .social-link-arrow {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(5px) !important;
}

.social-footer {
    margin-top: 24px !important;
    padding: 18px !important;
    background: rgba(255, 82, 82, 0.1) !important;
    border: 1px solid rgba(255, 82, 82, 0.2) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    transition: all 0.3s ease !important;
}

.social-footer:hover {
    background: rgba(255, 82, 82, 0.15) !important;
    border-color: rgba(255, 82, 82, 0.3) !important;
    transform: translateY(-2px) !important;
}

.social-footer-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    animation: iconFloat 2s ease-in-out infinite !important;
    animation-delay: 0.5s !important;
}

.social-footer-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* ========== ОБЩИЕ СТИЛИ ДЛЯ СТЕКЛЯННЫХ ЭЛЕМЕНТОВ ========== */
.card,
.server-card,
.category-card,
.glass-element {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow) !important;
    animation: scaleIn 0.4s ease forwards !important;
    opacity: 0 !important;
    animation-delay: calc(var(--delay, 0) * 0.1s) !important;
    transition: all 0.3s ease !important;
}

.card:nth-child(1) { --delay: 1; }
.card:nth-child(2) { --delay: 2; }
.card:nth-child(3) { --delay: 3; }
.card:nth-child(4) { --delay: 4; }

.glass-element:hover {
    border-color: var(--glass-accent-border) !important;
    transform: translateY(-4px) !important;
    box-shadow: 
        0 12px 32px rgba(255, 82, 82, 0.15),
        var(--glass-shadow) !important;
}

/* АНИМАЦИЯ ПРИ ПРОКРУТКЕ */
@keyframes fadeInOnScroll {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.visible,
.card.visible,
.social-widget.visible {
    animation: fadeInOnScroll 0.6s ease forwards !important;
}

/* АДАПТИВНЫЕ АНИМАЦИИ */
@media (max-width: 768px) {
    .product-card {
        animation: slideInLeft 0.5s ease forwards !important;
    }
    
    .product-card:nth-child(even) {
        animation: slideInRight 0.5s ease forwards !important;
    }
    
    .product-card:hover {
        transform: translateY(-6px) scale(1.02) !important;
    }
    
    .social-widget {
        padding: 16px !important;
        margin: 12px 0 !important;
    }
    
    .social-link {
        padding: 14px !important;
    }
    
    .social-link-icon {
        width: 44px !important;
        height: 44px !important;
    }
}