/* ========== SHOP SYSTEM UI ========== */

/* Shop Button in Main Menu - Override to match other menu buttons */
#shopButton.btn {
    background: transparent !important;
    color: var(--text-color) !important;
    border: 2px solid var(--neon-blue) !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    width: 100% !important;
    text-align: center !important;
    flex: none !important;
}

#shopButton.btn:hover {
    background-color: rgba(0, 240, 255, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 15px var(--neon-blue) !important;
}

#shopButton.btn:active {
    transform: translateY(0) !important;
}

/* Shop Container */
.shop-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 30px;
}

.shop-header h1 {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff4655, #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.shop-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    color: #FFD700;
    margin-top: 15px;
}

.shop-balance-icon {
    font-size: 32px;
}

/* Shop Categories */
.shop-categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shop-category-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.shop-category-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.shop-category-btn.active {
    background: rgba(255, 70, 85, 0.3);
    border-color: rgba(255, 70, 85, 0.8);
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Shop Item Card */
.shop-item {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 30, 40, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rarity-color);
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: var(--rarity-color);
    box-shadow: 0 10px 30px var(--rarity-glow);
}

.shop-item.owned {
    border-color: #00ff00;
    background: linear-gradient(135deg, rgba(0, 50, 0, 0.3), rgba(0, 80, 0, 0.3));
}

.shop-item.equipped {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(80, 60, 0, 0.3), rgba(120, 90, 0, 0.3));
}

/* Item Preview */
.shop-item-preview {
    text-align: center;
    margin-bottom: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-item-preview-icon {
    font-size: 64px;
}

.shop-item-preview-text {
    font-size: 32px;
    font-weight: bold;
}

/* Item Info */
.shop-item-rarity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.shop-item-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.shop-item-description {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 15px;
    min-height: 40px;
}

/* Item Price */
.shop-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.shop-item-price-icon {
    font-size: 24px;
}

/* Item Actions */
.shop-item-actions {
    display: flex;
    gap: 10px;
}

.shop-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.shop-btn-buy {
    background: linear-gradient(135deg, #ff4655, #ff6b7a);
    color: #fff;
}

.shop-btn-buy:hover {
    background: linear-gradient(135deg, #ff6b7a, #ff8899);
    transform: scale(1.05);
}

.shop-btn-buy:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.shop-btn-equip {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
}

.shop-btn-equip:hover {
    background: linear-gradient(135deg, #00ff88, #00ff00);
    transform: scale(1.05);
}

.shop-btn-unequip {
    background: linear-gradient(135deg, #888, #666);
    color: #fff;
}

.shop-btn-unequip:hover {
    background: linear-gradient(135deg, #999, #777);
}

.shop-btn-owned {
    background: rgba(0, 255, 0, 0.2);
    color: #0f0;
    cursor: default;
    border: 2px solid #0f0;
}

/* Rarity Colors */
.rarity-common { --rarity-color: #808080; --rarity-glow: rgba(128, 128, 128, 0.3); }
.rarity-uncommon { --rarity-color: #00ff00; --rarity-glow: rgba(0, 255, 0, 0.3); }
.rarity-rare { --rarity-color: #0088ff; --rarity-glow: rgba(0, 136, 255, 0.3); }
.rarity-epic { --rarity-color: #9d4dff; --rarity-glow: rgba(157, 77, 255, 0.3); }
.rarity-legendary { --rarity-color: #ffd700; --rarity-glow: rgba(255, 215, 0, 0.3); }
.rarity-mythic { --rarity-color: #ff1493; --rarity-glow: rgba(255, 20, 147, 0.3); }

.shop-item-rarity.common { background: rgba(128, 128, 128, 0.2); color: #808080; border: 1px solid #808080; }
.shop-item-rarity.uncommon { background: rgba(0, 255, 0, 0.2); color: #00ff00; border: 1px solid #00ff00; }
.shop-item-rarity.rare { background: rgba(0, 136, 255, 0.2); color: #0088ff; border: 1px solid #0088ff; }
.shop-item-rarity.epic { background: rgba(157, 77, 255, 0.2); color: #9d4dff; border: 1px solid #9d4dff; }
.shop-item-rarity.legendary { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #ffd700; }
.shop-item-rarity.mythic { background: rgba(255, 20, 147, 0.2); color: #ff1493; border: 1px solid #ff1493; }

/* ========== NAME EFFECT ANIMATIONS ========== */

/* Slide Animation (Rainbow) */
@keyframes nameEffectSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.name-effect-slide {
    background-size: 200% auto;
    animation: nameEffectSlide linear infinite;
}

/* Pulse Animation (Gold) */
@keyframes nameEffectPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.name-effect-pulse {
    animation: nameEffectPulse ease-in-out infinite;
}

/* Wave Animation (Plasma) */
@keyframes nameEffectWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.name-effect-wave {
    background-size: 200% auto;
    animation: nameEffectWave ease-in-out infinite;
}

/* Sparkle Animation (Galaxy) */
@keyframes nameEffectSparkle {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 10px currentColor); }
    25% { filter: brightness(1.3) drop-shadow(0 0 15px currentColor); }
    50% { filter: brightness(1) drop-shadow(0 0 10px currentColor); }
    75% { filter: brightness(1.5) drop-shadow(0 0 20px currentColor); }
}

.name-effect-sparkle {
    animation: nameEffectSparkle ease-in-out infinite;
}

/* Glitch Animation (Neon) */
@keyframes nameEffectGlitch {
    0%, 90%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.name-effect-glitch {
    animation: nameEffectGlitch 0.3s infinite;
}

/* Flow Animation (Lava) */
@keyframes nameEffectFlow {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    50% { background-position: 100% 50%; filter: hue-rotate(20deg); }
    100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

.name-effect-flow {
    background-size: 200% auto;
    animation: nameEffectFlow ease-in-out infinite;
}

/* Radiant Animation */
@keyframes nameEffectRadiant {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 10px #ffeb3b);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.5) drop-shadow(0 0 20px #ffeb3b);
        transform: scale(1.05);
    }
}

.name-effect-radiant {
    animation: nameEffectRadiant ease-in-out infinite;
}

/* Flames Animation */
@keyframes nameEffectFlames {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 10px #ff4655);
        transform: translateY(0);
    }
    25% { transform: translateY(-2px); }
    50% { 
        filter: brightness(1.3) drop-shadow(0 0 15px #ff4655);
        transform: translateY(0);
    }
    75% { transform: translateY(-2px); }
}

.name-effect-flames {
    animation: nameEffectFlames ease-in-out infinite;
}

/* Champion Animation */
@keyframes nameEffectChampion {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 15px #ffd700);
        transform: scale(1) rotate(0deg);
    }
    50% { 
        filter: brightness(1.5) drop-shadow(0 0 25px #ffd700);
        transform: scale(1.1) rotate(2deg);
    }
}

.name-effect-champion {
    animation: nameEffectChampion ease-in-out infinite;
}

/* Divine Animation */
@keyframes nameEffectDivine {
    0%, 100% { 
        filter: brightness(1.2) drop-shadow(0 0 20px #ffffff);
        transform: scale(1);
    }
    33% { 
        filter: brightness(1.5) drop-shadow(0 0 30px #ffeb3b);
        transform: scale(1.05);
    }
    66% { 
        filter: brightness(1.5) drop-shadow(0 0 30px #00d4ff);
        transform: scale(1.05);
    }
}

.name-effect-divine {
    animation: nameEffectDivine ease-in-out infinite;
}

/* Matrix Animation */
@keyframes nameEffectMatrix {
    0% { 
        background-position: 0% 0%;
        filter: brightness(1);
    }
    100% { 
        background-position: 0% 100%;
        filter: brightness(1.2);
    }
}

.name-effect-matrix {
    background-size: 100% 200%;
    animation: nameEffectMatrix linear infinite;
}

/* Void Animation */
@keyframes nameEffectVoid {
    0%, 100% { 
        filter: brightness(0.8) blur(0px);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.2) blur(1px);
        transform: scale(1.05);
    }
}

.name-effect-void {
    animation: nameEffectVoid ease-in-out infinite;
}

/* Inventory Section */
.shop-inventory {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.shop-inventory h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.shop-equipped-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.shop-equipped-slot {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
}

.shop-equipped-slot.has-item {
    border-style: solid;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.shop-equipped-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.shop-equipped-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.shop-equipped-empty {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .shop-header h1 {
        font-size: 36px;
    }
    
    .shop-categories {
        gap: 5px;
    }
    
    .shop-category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}
