/**
 * Shop Page Styles
 * Styles for SimpleJoy Shop page including PlayPass and Avatar sections
 */

/* PlayPass Selection Styles */
.btn-check:checked + .btn {
    border: 1px solid #c4ff00;
    background: linear-gradient(135deg, #4b6b22, #8bc53f);
    color: #fff;
    position: relative;
}

.btn-check:checked + .btn .fa-dot-circle.d-none {
    display: block !important;
    position: absolute;
    right: 10px;
    top: 10px;
}

/* Avatar Selection Styles */
.avatar-option {
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #2A475E;
    border-color: transparent !important;
    position: relative;
    overflow: hidden;
}

.avatar-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #ffc107 !important;
}

.avatar-option.selected {
    border-color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.1);
}

.avatar-option.current-avatar {
    background-color: rgba(255, 193, 7, 0.1);
}

#premiumAvatars .avatar-option {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Avatar Images */
#premiumAvatars .user-avatar {
    width: 80px;
    height: 80px;
}

.avatar-preview {
    width: 30px;
    height: 30px;
}

.avatar-modal-preview {
    width: 100px;
    height: 100px;
}

/* Button States */
.btn.sending {
    opacity: 0.6;
    pointer-events: none;
}

/* Shop Form */
#shopFormInner {
    transition: opacity 0.3s ease;
}

#shopFormInner.invisible {
    opacity: 0;
}

/* Current Avatar Section */
#currentAvatarSection {
    margin-bottom: 1rem;
}

#currentAvatar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #premiumAvatars .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .avatar-modal-preview .avatar-preview {
        width: 40px;
        height: 40px;
    }
    
    #premiumAvatars .avatar-option {
        min-height: 50px;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ffc107;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Animations */

.avatar-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.5s;
}

.avatar-option:hover::before {
    left: 100%;
}


/* Tab Enhancements */
#premiumAvatars .nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

#premiumAvatars .nav-tabs .nav-link:hover {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

#premiumAvatars .nav-tabs .nav-link.active {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 2px solid #ffc107;
}
