/**
 * SioreX - Efeitos Metálicos Realistas
 * Brilho, reflexos especulares, variação de cor
 */

/* ============================================================
   VARIÁVEIS DE METAL
   ============================================================ */
:root {
    /* Pontos de brilho para reflexo especular */
    --highlight-white: rgba(255, 255, 255, 0.9);
    --highlight-soft: rgba(255, 255, 255, 0.4);
    --highlight-subtle: rgba(255, 255, 255, 0.15);

    /* Sombras para profundidade */
    --metal-shadow-dark: rgba(0, 0, 0, 0.6);
    --metal-shadow-soft: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   AÇO INOX POLIDO
   Características: Muito brilhante, reflexos fortes, tom frio
   ============================================================ */
.metal-inox {
    position: relative;
    background:
        /* Reflexo especular principal (ponto de luz no topo) */
        radial-gradient(
            ellipse 80% 50% at 50% 0%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            transparent 70%
        ),
        /* Reflexo secundário (luz ambiente) */
        radial-gradient(
            ellipse 120% 80% at 50% 100%,
            rgba(200, 200, 210, 0.15) 0%,
            transparent 50%
        ),
        /* Gradiente base do metal - NÃO LINEAR */
        linear-gradient(180deg,
            #E8E8EC 0%,
            #C8C8D0 3%,
            #A8A8B4 8%,
            #888894 15%,
            #6A6A78 30%,
            #58586A 50%,
            #4A4A5C 70%,
            #5A5A6C 85%,
            #6A6A7A 92%,
            #7A7A8A 96%,
            #8A8A98 100%
        );
    box-shadow:
        /* Borda de luz no topo */
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 2px 1px rgba(255, 255, 255, 0.3),
        /* Sombra na base */
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2),
        /* Sombra externa */
        0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Pseudo-elemento para brilho extra (efeito de luz de janela) */
.metal-inox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 60%;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

/* ============================================================
   COBRE POLIDO
   Características: Tom quente alaranjado, reflexos dourados
   ============================================================ */
.metal-cobre {
    position: relative;
    background:
        /* Reflexo especular quente */
        radial-gradient(
            ellipse 70% 40% at 30% 10%,
            rgba(255, 220, 180, 0.7) 0%,
            rgba(255, 180, 120, 0.3) 40%,
            transparent 70%
        ),
        /* Reflexo secundário */
        radial-gradient(
            ellipse 100% 60% at 70% 90%,
            rgba(180, 100, 60, 0.3) 0%,
            transparent 60%
        ),
        /* Gradiente do cobre - variação orgânica */
        linear-gradient(165deg,
            #FFD4B8 0%,
            #E8A878 5%,
            #D48858 12%,
            #C06830 25%,
            #A85420 40%,
            #8C4018 55%,
            #A85828 70%,
            #C06838 82%,
            #D88850 90%,
            #E8A068 95%,
            #F0B880 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 180, 0.7),
        inset 0 2px 2px rgba(255, 200, 150, 0.3),
        inset 0 -1px 0 rgba(80, 30, 10, 0.5),
        inset 0 -2px 3px rgba(60, 20, 5, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.metal-cobre::before {
    content: '';
    position: absolute;
    top: 2%;
    left: 5%;
    width: 35%;
    height: 30%;
    background: linear-gradient(
        160deg,
        rgba(255, 240, 200, 0.5) 0%,
        rgba(255, 200, 150, 0.2) 50%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

/* ============================================================
   BRONZE ENVELHECIDO
   Características: Tom dourado escuro, pátina sutil
   ============================================================ */
.metal-bronze {
    position: relative;
    background:
        /* Reflexo mais suave (bronze é menos brilhante) */
        radial-gradient(
            ellipse 60% 35% at 40% 15%,
            rgba(220, 190, 140, 0.5) 0%,
            rgba(180, 140, 90, 0.2) 50%,
            transparent 80%
        ),
        /* Manchas de pátina */
        radial-gradient(
            circle at 80% 70%,
            rgba(100, 130, 100, 0.15) 0%,
            transparent 30%
        ),
        /* Gradiente do bronze */
        linear-gradient(175deg,
            #D4B896 0%,
            #C4A070 6%,
            #A88050 15%,
            #8C6838 30%,
            #705028 50%,
            #5A4020 65%,
            #6A4C28 78%,
            #7A5C38 88%,
            #8A6C48 94%,
            #9A7C58 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(220, 190, 140, 0.5),
        inset 0 -1px 0 rgba(40, 25, 10, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   AÇO CARBONO (Escuro)
   Características: Quase preto, reflexos sutis azulados
   ============================================================ */
.metal-carbono {
    position: relative;
    background:
        /* Reflexo frio sutil */
        radial-gradient(
            ellipse 90% 40% at 50% 5%,
            rgba(150, 160, 180, 0.25) 0%,
            rgba(100, 110, 130, 0.1) 40%,
            transparent 70%
        ),
        /* Gradiente escuro com variação */
        linear-gradient(180deg,
            #484858 0%,
            #383848 5%,
            #2A2A3A 15%,
            #1E1E2A 35%,
            #14141E 55%,
            #1A1A28 75%,
            #222234 88%,
            #2A2A40 95%,
            #323248 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(150, 160, 180, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   AÇO ESCOVADO (Brushed Steel)
   Características: Brilho direcional horizontal
   ============================================================ */
.metal-escovado {
    position: relative;
    background:
        /* Reflexo alongado horizontal */
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.15) 25%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            rgba(255, 255, 255, 0.05) 100%
        ),
        /* Gradiente base curvado */
        linear-gradient(180deg,
            #7A7A82 0%,
            #6A6A72 10%,
            #5A5A64 30%,
            #4A4A56 50%,
            #5A5A64 70%,
            #6A6A72 90%,
            #7A7A82 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   FERRO OXIDADO (Ferrugem)
   Características: Manchas irregulares, textura áspera
   ============================================================ */
.metal-oxidado {
    position: relative;
    background:
        /* Manchas de ferrugem */
        radial-gradient(
            ellipse 40% 30% at 20% 30%,
            rgba(180, 80, 40, 0.4) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 50% 40% at 75% 60%,
            rgba(160, 70, 30, 0.35) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 30% 25% at 50% 80%,
            rgba(140, 60, 25, 0.3) 0%,
            transparent 70%
        ),
        /* Base de metal escuro */
        linear-gradient(180deg,
            #5A4A3A 0%,
            #4A3A2C 20%,
            #3A2C20 50%,
            #4A3A2A 80%,
            #5A4838 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(180, 140, 100, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   BOTÕES METÁLICOS REALISTAS
   ============================================================ */

/* Botão Aço Inox Polido */
.btn-metal-inox {
    position: relative;
    padding: 10px 20px;
    border: 1px solid #3A3A4A;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    color: #1A1A2A;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);

    background:
        /* Ponto de brilho especular */
        radial-gradient(
            ellipse 60% 40% at 50% 0%,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 30%,
            transparent 60%
        ),
        /* Gradiente curvado */
        linear-gradient(180deg,
            #F0F0F4 0%,
            #D8D8E0 5%,
            #B0B0BC 15%,
            #8888A0 35%,
            #7070A8 50%,
            #9898AC 70%,
            #B8B8C4 85%,
            #D0D0D8 95%,
            #E0E0E8 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.3);

    transition: all 0.15s ease;
}

.btn-metal-inox:hover {
    background:
        radial-gradient(
            ellipse 70% 50% at 50% 0%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.5) 30%,
            transparent 60%
        ),
        linear-gradient(180deg,
            #FFFFFF 0%,
            #E8E8F0 5%,
            #C0C0CC 15%,
            #9898AC 35%,
            #8080A0 50%,
            #A8A8B8 70%,
            #C8C8D0 85%,
            #E0E0E8 95%,
            #F0F0F4 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-metal-inox:active {
    background:
        linear-gradient(180deg,
            #909098 0%,
            #A0A0A8 20%,
            #B8B8C0 50%,
            #A0A0A8 80%,
            #909098 100%
        );
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(1px);
}

/* Botão Cobre */
.btn-metal-cobre {
    position: relative;
    padding: 10px 20px;
    border: 1px solid #5A2810;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    color: #FFEEDD;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.5);

    background:
        radial-gradient(
            ellipse 50% 35% at 35% 10%,
            rgba(255, 220, 180, 0.7) 0%,
            rgba(255, 180, 120, 0.3) 50%,
            transparent 80%
        ),
        linear-gradient(170deg,
            #F8C090 0%,
            #E89860 8%,
            #C87840 20%,
            #A85828 40%,
            #884018 55%,
            #A85828 70%,
            #C87040 85%,
            #E08858 95%,
            #F0A070 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 180, 0.8),
        inset 0 2px 1px rgba(255, 200, 150, 0.4),
        inset 0 -1px 0 rgba(60, 20, 5, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.5);

    transition: all 0.15s ease;
}

.btn-metal-cobre:hover {
    background:
        radial-gradient(
            ellipse 60% 40% at 35% 8%,
            rgba(255, 235, 200, 0.85) 0%,
            rgba(255, 200, 140, 0.4) 50%,
            transparent 80%
        ),
        linear-gradient(170deg,
            #FFD8A8 0%,
            #F0A878 8%,
            #D88850 20%,
            #B86838 40%,
            #985028 55%,
            #B86838 70%,
            #D88050 85%,
            #F09868 95%,
            #FFB080 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 200, 0.9),
        inset 0 -1px 0 rgba(60, 20, 5, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-metal-cobre:active {
    background:
        linear-gradient(180deg,
            #985028 0%,
            #B06038 30%,
            #C87048 50%,
            #B06038 70%,
            #985028 100%
        );
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 200, 150, 0.2);
    transform: translateY(1px);
}

/* ============================================================
   HEADERS METÁLICOS
   ============================================================ */

/* Header Aço Inox */
.header-metal-inox {
    position: relative;
    background:
        radial-gradient(
            ellipse 100% 200% at 50% -50%,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 60%
        ),
        linear-gradient(180deg,
            #A0A0AC 0%,
            #8888A8 3%,
            #6A6A88 10%,
            #5050A8 25%,
            #454580 40%,
            #3A3A70 55%,
            #404068 70%,
            #484858 85%,
            #3A3A48 95%,
            #2A2A38 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 2px 2px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Header Cobre */
.header-metal-cobre {
    position: relative;
    background:
        radial-gradient(
            ellipse 80% 150% at 30% -30%,
            rgba(255, 200, 150, 0.4) 0%,
            rgba(255, 150, 100, 0.15) 40%,
            transparent 70%
        ),
        linear-gradient(180deg,
            #D89060 0%,
            #C07848 5%,
            #A86030 15%,
            #884820 30%,
            #703818 50%,
            #5A2810 70%,
            #482008 85%,
            #381808 95%,
            #281008 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 180, 120, 0.6),
        inset 0 2px 2px rgba(255, 150, 100, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   PAINÉIS / CARDS METÁLICOS
   ============================================================ */

/* Painel Metal Polido */
.panel-metal-escovado {
    position: relative;
    border-radius: 6px;
    border: 1px solid #2A2A38;
    overflow: hidden;

    background:
        /* Reflexo horizontal suave */
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.12) 30%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.12) 70%,
            rgba(255, 255, 255, 0.05) 100%
        ),
        /* Base curvada */
        linear-gradient(180deg,
            #4A4A54 0%,
            #3A3A44 15%,
            #2A2A34 50%,
            #3A3A44 85%,
            #4A4A54 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   SIDEBAR METÁLICA
   ============================================================ */
.sidebar-metal {
    background:
        /* Reflexo vertical suave na borda esquerda */
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.03) 5%,
            transparent 20%
        ),
        /* Gradiente base - metal escuro polido */
        linear-gradient(180deg,
            #5A5248 0%,
            #4A4238 5%,
            #3A3228 15%,
            #2A2420 40%,
            #201C18 60%,
            #181410 80%,
            #100C08 100%
        );
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset -1px 0 0 rgba(0, 0, 0, 0.3),
        4px 0 20px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   TABELA METÁLICA
   ============================================================ */
.table-header-metal {
    background:
        /* Reflexo no topo */
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            transparent 50%
        ),
        /* Base escura */
        linear-gradient(180deg,
            #5A5A68 0%,
            #4A4A58 8%,
            #3A3A48 25%,
            #2A2A38 50%,
            #222230 75%,
            #1A1A28 90%,
            #141420 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   INPUT METÁLICO (campo rebaixado)
   ============================================================ */
.input-metal {
    background:
        /* Sombra interna para parecer rebaixado */
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 20%,
            transparent 50%,
            rgba(255, 255, 255, 0.03) 100%
        ),
        linear-gradient(180deg,
            #1A1A22 0%,
            #222230 30%,
            #2A2A38 70%,
            #323242 100%
        );
    border: 1px solid #1A1A22;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-metal:focus {
    border-color: #C06830;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(192, 104, 48, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================================
   ANIMAÇÕES DE BRILHO
   ============================================================ */
@keyframes metal-shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.metal-shine-animated {
    position: relative;
    overflow: hidden;
}

.metal-shine-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: metal-shine 3s infinite;
    pointer-events: none;
}

/* ============================================================
   UTILITÁRIOS DE BRILHO
   ============================================================ */

/* Adiciona reflexo especular no topo */
.metal-highlight-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 50%;
    background: radial-gradient(
        ellipse 100% 100% at 50% 0%,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 70%
    );
    pointer-events: none;
}

/* Borda iluminada */
.metal-edge-light {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset -1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
