/* PREMIUM CATALOG STYLING - Ultra Attractive Design */

.premium-store-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.premium-store-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="glow"><stop offset="0%" stop-color="rgba(255,215,0,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23glow)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="url(%23glow)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="70" r="2.5" fill="url(%23glow)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite"/></circle></svg>') repeat;
    pointer-events: none;
    animation: starfield 20s linear infinite;
}

@keyframes starfield {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.premium-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.premium-header h2 {
    font-size: 3em;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF4500, #FF69B4, #9400D3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin: 0;
}

@keyframes rainbowShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.premium-header p {
    color: #87CEEB;
    font-size: 1.2em;
    margin: 10px 0 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* NFT COLLECTIONS OVERVIEW */
.nft-collections-overview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
}

.nft-collections-overview h3 {
    color: #FFD700;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.collection-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.collection-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.collection-card h4 {
    color: #FFD700;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.collection-progress {
    color: #87CEEB;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF4500, #FFD700, #32CD32);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar.complete {
    background: linear-gradient(90deg, #32CD32, #00FF00, #ADFF2F);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(50, 205, 50, 0.5); }
    50% { box-shadow: 0 0 20px rgba(50, 205, 50, 0.8); }
}

.nft-reward {
    color: #FF69B4;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

/* PREMIUM TABS */
.premium-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.tab-btn {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    opacity: 0.2;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: #FFD700;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

/* RARITY FILTERS */
.rarity-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #666;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
}

.filter-btn.active,
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.filter-btn.legendary { border-color: #FFD700; color: #FFD700; }
.filter-btn.legendary.active { background: rgba(255, 215, 0, 0.2); }

.filter-btn.mythic { border-color: #FF69B4; color: #FF69B4; }
.filter-btn.mythic.active { background: rgba(255, 105, 180, 0.2); }

.filter-btn.divine { border-color: #FF4500; color: #FF4500; }
.filter-btn.divine.active { background: rgba(255, 69, 0, 0.2); }

.filter-btn.transcendent { border-color: #9400D3; color: #9400D3; }
.filter-btn.transcendent.active { background: rgba(148, 0, 211, 0.2); }

/* PREMIUM ITEMS GRID */
.premium-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.premium-item-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.premium-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.premium-item-card:hover::before {
    transform: translateX(100%);
}

.premium-item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* RARITY STYLING */
.premium-item-card.legendary {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.premium-item-card.mythic {
    border-color: #FF69B4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.premium-item-card.divine {
    border-color: #FF4500;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

.premium-item-card.transcendent {
    border-color: #9400D3;
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.3);
    animation: transcendentPulse 3s ease-in-out infinite;
}

@keyframes transcendentPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(148, 0, 211, 0.3); }
    50% { box-shadow: 0 0 40px rgba(148, 0, 211, 0.6); }
}

.item-rarity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 3;
}

.item-rarity-badge.legendary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.item-rarity-badge.mythic {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    color: #FFF;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.item-rarity-badge.divine {
    background: linear-gradient(45deg, #FF4500, #DC143C);
    color: #FFF;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.item-rarity-badge.transcendent {
    background: linear-gradient(45deg, #9400D3, #4B0082);
    color: #FFF;
    box-shadow: 0 0 10px rgba(148, 0, 211, 0.5);
    animation: transcendentGlow 2s ease-in-out infinite;
}

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

/* ITEM VISUALS */
.item-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.item-image img {
    max-width: 80%;
    max-height: 80%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.trail-preview {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.trail-animation {
    position: absolute;
    top: 50%;
    left: -20px;
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: trailMove 2s linear infinite;
}

@keyframes trailMove {
    0% { left: -20px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.premium-item-card h4 {
    color: #FFF;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.item-description {
    color: #B0C4DE;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

.collection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.collection-name {
    color: #87CEEB;
    font-size: 0.9em;
    font-weight: bold;
}

.nft-progress {
    color: #FFD700;
    font-size: 0.9em;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.item-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}

.effect-tag {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #FFF;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.price-amount {
    color: #FFD700;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.price-currency {
    font-size: 1.3em;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.premium-buy-btn {
    width: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    padding: 15px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

.premium-buy-btn:hover::before {
    left: 100%;
}

.premium-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFA500, #FFD700);
}

.premium-buy-btn:active {
    transform: translateY(0);
}

/* NFT UNLOCK CELEBRATION */
.nft-unlock-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FF69B4, #9400D3, #00CED1);
    background-size: 400% 400%;
    animation: rainbowBackground 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nft-unlock-celebration.celebration-active {
    opacity: 1;
}

@keyframes rainbowBackground {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nft-celebration-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #FFD700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    max-width: 500px;
    animation: celebrationPulse 2s ease-in-out infinite;
}

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

.nft-celebration-content h1 {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: textGlow 1s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { text-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

.nft-badge {
    margin: 20px 0;
}

.nft-glow {
    background: linear-gradient(45deg, #FFD700, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.claim-nft-btn {
    background: linear-gradient(45deg, #32CD32, #00FF00);
    border: none;
    color: #000;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.claim-nft-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.6);
}

/* PURCHASE SUCCESS */
.premium-purchase-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-purchase-success.success-active {
    opacity: 1;
}

.success-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.success-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.rarity-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.3;
    animation: rarityPulse 2s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes rarityPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.5); }
}

.success-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="gold" opacity="0.8"><animate attributeName="cy" values="20;80;20" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="0.5" fill="gold" opacity="0.6"><animate attributeName="cy" values="30;90;30" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="10" r="1.5" fill="gold" opacity="0.7"><animate attributeName="cy" values="10;70;10" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.success-close-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.success-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .premium-store-section {
        padding: 20px;
        margin: 10px;
    }
    
    .premium-header h2 {
        font-size: 2em;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .premium-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .rarity-filters {
        justify-content: center;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

/* TAB CONTENT MANAGEMENT */
.premium-tab-content {
    display: none;
}

.premium-tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FILTER MANAGEMENT */
.premium-item-card[data-rarity]:not([style*="display: block"]) {
    display: block;
}

.premium-item-card.hidden {
    display: none !important;
} 