/* Gamification Styles */

/* Toasts */
.gamification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(20, 20, 25, 0.95);
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    pointer-events: none;
}

.gamification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.gamification-toast.success {
    border-color: #10B981;
    color: #10B981;
}

.gamification-toast.info {
    border-color: #3B82F6;
    color: #3B82F6;
}

/* (Molduras) */
.profile-frame-container {
    position: relative;
    display: inline-block;
    padding: 8px; 
}

.profile-avatar-large {

    /* z-index: 16; */
    position: relative;
}

/* (PNG Image) */
.frame-border {
    position: absolute;
    top: -18%;
    left: -18%;
    right: -18%;
    bottom: -18%;
    pointer-events: none;
    z-index: 10; 
    box-sizing: border-box;
    transition: all 0.3s;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* (Pulsing Light) */
.frame-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5; 
    box-sizing: border-box;
    transition: all 0.3s;
}

/* (Images only) */
.frame-wood { background-image: url('../assets/borda/1.png'); }
.frame-iron { background-image: url('../assets/borda/2.png'); }
.frame-bronze { background-image: url('../assets/borda/3.png'); }
.frame-silver { background-image: url('../assets/borda/4.png'); }
.frame-gold { background-image: url('../assets/borda/5.png'); }
.frame-platinum { background-image: url('../assets/borda/6.png'); }
.frame-adm { background-image: url('../assets/borda/ADm.png'); }

/* (Animations and Shadows only) */
.glow-wood {
    box-shadow: inset 0 0 15px rgba(139, 69, 19, 0.6), 0 0 10px rgba(139, 69, 19, 0.4);
    animation: woodPulse 4s infinite ease-in-out;
}
.glow-iron {
    box-shadow: inset 0 0 15px rgba(67, 75, 77, 0.6), 0 0 12px rgba(67, 75, 77, 0.4);
    animation: ironPulse 4s infinite ease-in-out;
}
.glow-bronze {
    box-shadow: inset 0 0 20px rgba(205, 127, 50, 0.6), 0 0 15px rgba(205, 127, 50, 0.4);
    animation: bronzePulse 4s infinite ease-in-out;
}
.glow-silver {
    box-shadow: inset 0 0 20px rgba(192, 192, 192, 0.6), 0 0 18px rgba(192, 192, 192, 0.4);
    animation: silverPulse 4s infinite ease-in-out;
}
.glow-gold {
    box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: goldShine 3s infinite linear;
}
.glow-platinum {
    box-shadow: inset 0 0 25px rgba(66, 214, 255, 0.5), 0 0 20px rgba(66, 214, 255, 0.5);
    animation: platinumShine 3s infinite linear;
}
.glow-adm {
    box-shadow: inset 0 0 30px #F6A32C, 0 0 25px #F6A32C;
    animation: admShine 2s infinite linear;
}

@keyframes woodPulse {
    0%, 100% { box-shadow: 0 0 10px #00650d; opacity: 0.8; }
    50% { box-shadow: 0 0 25px #8a9e57; opacity: 1; }
}

@keyframes ironPulse {
    0%, 100% { box-shadow: 0 0 22px rgb(207 207 207 / 86%); opacity: 0.8; }
    50% { box-shadow: 0 0 50px rgb(79 26 26); opacity: 1; }
}

@keyframes bronzePulse {
    0%, 100% { box-shadow: 0 0 25px rgb(255 185 120 / 74%); opacity: 0.8; }
    50% { box-shadow: 0 0 55px rgb(249 127 14 / 70%); opacity: 1; }
}

@keyframes silverPulse {
    0%, 100% { box-shadow: 0 0 28px rgb(227 255 255 / 70%); opacity: 0.8; }
    50% { box-shadow: 0 0 40px rgb(100 184 227 / 84%); opacity: 1; }
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 30px rgb(198 127 255 / 81%); opacity: 0.9; }
    50% { box-shadow: 0 0 55px rgb(255 224 58 / 90%); opacity: 1; }
}

@keyframes platinumShine {
    0%, 100% { box-shadow: 0 0 20px rgb(66 255 224 / 50%); opacity: 0.9; }
    50% { box-shadow: 0 0 50px rgb(66 255 153 / 90%); opacity: 1; }
}

@keyframes admShine {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 133, 63, 0.801); opacity: 0.9; filter: hue-rotate(0deg); }
    50% { box-shadow: 0 0 60px #f6702c; opacity: 1; filter: hue-rotate(10deg); }
}

/* Frame Selector UI Upgrade */
.frame-selector-wrapper {
    margin-top: 1.5rem;
    text-align: center;
}

.frame-selector-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.current-frame-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1e;
    position: relative;
    border: 2px solid var(--dashboard-border);
    overflow: visible;
}

.btn-toggle-frames {
    position: absolute;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #ffe6d0;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.btn-toggle-frames:hover {
    transform: scale(1.1);
    background: var(--dashboard-accent-hover);
}

.btn-toggle-frames.active {
    transform: rotate(45deg);
    background: #fff0c9;
}

.frame-options-container {
    overflow: hidden;
    display: none; /* Colapsado por padrão */
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid var(--dashboard-border);
    margin-top: 10px;
    animation: fadeIn 0.3s ease-out;
}

.frame-options-container.show {
    display: grid;
}

.frame-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    background:transparent;
    overflow: visible;
    opacity: 0.4;
    filter: grayscale(1);
}

.frame-option.unlocked {
    opacity: 1;
    filter: none;
}

.frame-option.unlocked:hover {
    transform: scale(1.1);
}

.frame-option.active {
    background: #ffe6d0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.frame-option .option-glow {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 8px;
    left: 8px;
    right: 0px;
    bottom: 0;
    border-radius: 80%;
    z-index: 1;
}

.frame-option .option-border {
    position: absolute;
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
