/* ============================================
   GLASSMORPHISM - EFEITOS AVANÇADOS
   Arena de Vendas
   ============================================ */

/* ============================================
   VARIANTES DE GLASS
   ============================================ */

/* Glass Padrão */
.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-medium {
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-heavy {
    background: rgba(22, 22, 31, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================
   GLASS COM CORES (Para Rankings)
   ============================================ */

.glass-gold {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 237, 78, 0.08) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 8px 32px rgba(255, 215, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.glass-silver {
    background: linear-gradient(
        135deg,
        rgba(192, 192, 192, 0.15) 0%,
        rgba(232, 232, 232, 0.08) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(192, 192, 192, 0.3);
    box-shadow:
        0 8px 32px rgba(192, 192, 192, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.glass-bronze {
    background: linear-gradient(
        135deg,
        rgba(205, 127, 50, 0.15) 0%,
        rgba(230, 168, 113, 0.08) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(205, 127, 50, 0.3);
    box-shadow:
        0 8px 32px rgba(205, 127, 50, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.glass-cyber {
    background: linear-gradient(
        135deg,
        rgba(0, 243, 255, 0.12) 0%,
        rgba(0, 128, 255, 0.06) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 243, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.glass-fire {
    background: linear-gradient(
        135deg,
        rgba(255, 8, 68, 0.12) 0%,
        rgba(255, 107, 53, 0.06) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 8, 68, 0.25);
    box-shadow:
        0 8px 32px rgba(255, 8, 68, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.glass-matrix {
    background: linear-gradient(
        135deg,
        rgba(57, 255, 20, 0.12) 0%,
        rgba(46, 213, 115, 0.06) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(57, 255, 20, 0.25);
    box-shadow:
        0 8px 32px rgba(57, 255, 20, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ============================================
   BORDAS ANIMADAS (Efeito Competição)
   ============================================ */

.glass-border-animated {
    position: relative;
    overflow: hidden;
}

.glass-border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        transparent,
        var(--blue-electric),
        transparent
    );
    border-radius: inherit;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

.glass-border-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-radius: inherit;
    z-index: -1;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   CARTÕES INTERATIVOS
   ============================================ */

.glass-card-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glass-card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 243, 255, 0) 0%,
        rgba(0, 243, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.glass-card-hover:hover::before {
    opacity: 1;
}

/* ============================================
   REFLEXOS E BRILHOS
   ============================================ */

.glass-shine {
    position: relative;
    overflow: hidden;
}

.glass-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ============================================
   BOTÕES GLASS
   ============================================ */

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

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

/* ============================================
   INPUTS GLASS
   ============================================ */

.input-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-glass:focus {
    outline: none;
    border-color: var(--blue-electric);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.input-glass::placeholder {
    color: var(--text-muted);
}

/* ============================================
   MODAIS GLASS
   ============================================ */

.modal-glass {
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.modal-content-glass {
    background: rgba(22, 22, 31, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 96px rgba(0, 0, 0, 0.8);
}

/* ============================================
   TOOLTIPS GLASS
   ============================================ */

.tooltip-glass {
    background: rgba(22, 22, 31, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
