/* assets/css/tools-detalhe.css */
/* Estilos exclusivos e mágicos para a página de detalhes de Ferramentas */
/* Baseado no estilo de Produto Detalhe */

:root {
    --magic-gold: #fbbf24;
    --magic-gold-dark: #b45309;
    --magic-purple: #8b5cf6;
    --magic-neon-green: #00ff8c;
    --magic-cyan: #06b6d4;
    --card-bg-dark: #0f172a;
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* =========================================
   ANIMAÇÕES GERAIS
   ========================================= */

@keyframes rotate-border {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes magic-soft-glow-gold {
    0%, 100% { box-shadow: 0 0 4px rgba(251, 191, 36, 0.2); border-color: rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.5); border-color: rgba(251, 191, 36, 0.9); }
}

@keyframes magic-soft-glow-green {
    0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.2); border-color: rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 12px rgba(74, 222, 128, 0.5); border-color: rgba(74, 222, 128, 0.9); }
}

@keyframes magic-soft-glow-cyan {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 211, 238, 0.2); border-color: rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); border-color: rgba(34, 211, 238, 0.9); }
}

@keyframes coin-float-shine {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4)); }
    50% { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8)); }
}

@keyframes gift-float-shine {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.4)); }
    50% { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.8)); }
}

@keyframes crown-float-royal {
    0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6)); }
    50% { transform: translateY(-6px) rotate(5deg); filter: drop-shadow(0 0 25px rgba(234, 179, 8, 1)); }
}

.magic-coin-icon { display: inline-block; color: #fbbf24; animation: coin-float-shine 3s ease-in-out infinite; position: relative; z-index: 1; }
.magic-gift-icon { display: inline-block; color: #4ade80; animation: gift-float-shine 3s ease-in-out infinite; position: relative; z-index: 1; }
.magic-vip-icon { display: inline-block; color: #facc15; animation: crown-float-royal 3s ease-in-out infinite; position: relative; z-index: 1; }

.text-vip-gradient {
    background: linear-gradient(to right, #fcd34d, #f59e0b, #fcd34d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% auto; animation: shimmer 3s linear infinite;
}

/* =========================================
   NOVA CLASSE: CAIXA MÁGICA (3 COLUNAS)
   ========================================= */
.magic-box-premium {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
    transform: translateZ(0); will-change: transform;
}

.magic-box-premium::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 400%; height: 400%;
    transform: translate(-50%, -50%); z-index: -2;
    background: conic-gradient(from 0deg, #10b981 0%, #34d399 35%, #22d3ee 50%, #34d399 65%, #10b981 100%);
    animation: rotate-border 6s linear infinite;
}

.magic-box-premium::after {
    content: ''; position: absolute; inset: 2px;
    background: rgba(15, 23, 42, 0.98); border-radius: calc(0.75rem - 2px); z-index: -1;
}

/* =========================================
   IMAGEM MÁGICA (BORDA 1PX VIVA & ZOOM)
   ========================================= */
.magic-image-wrapper {
    position: relative; padding: 1px; border-radius: 0.75rem; overflow: hidden;
    background: #1f2937; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5);
    transform: translateZ(0); will-change: transform;
}

/* ATUALIZAÇÃO DO GRADIENTE PARA INCLUIR MAIS UMA COR (ROSE/RED) */
.magic-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%; /* Grande o suficiente para cobrir na rotação */
    transform: translate(-50%, -50%);
    z-index: 0;
    /* Gradiente Mágico Vivo: Cyan -> Magenta -> Rose (NOVO) -> Gold -> Neon Green -> Cyan */
    background: conic-gradient(
        from 0deg,
        #22d3ee 0%,      /* Cyan */
        #e879f9 20%,     /* Magenta */
        #f43f5e 40%,     /* Rose (NOVA COR PARA PREENCHIMENTO) */
        #fbbf24 60%,     /* Gold */
        #4ade80 80%,     /* Neon Green */
        #22d3ee 100%     /* Loop Cyan */
    );
    animation: rotate-border 4s linear infinite;
}

.magic-image-inner {
    position: relative; width: 100%; height: 100%;
    background: #0f172a; border-radius: calc(0.75rem - 1px); overflow: hidden; z-index: 1;
}

#tool-image-container:hover #tool-image {
    cursor: crosshair; transition: transform 0.1s linear; 
}

/* =========================================
   BOTÕES MÁGICOS
   ========================================= */
.btn-magic-action {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 800; text-transform: uppercase;
    color: white; text-decoration: none; border-radius: 0.6rem; overflow: hidden; z-index: 1;
    width: 100%; max-width: 320px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); letter-spacing: 0.05em;
}
.btn-magic-action:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.btn-magic-action i, .btn-magic-action span { position: relative; z-index: 10; transition: color 0.3s ease; }

.btn-magic-gold {
    background: rgba(251, 191, 36, 0.05); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4);
    animation: magic-soft-glow-gold 3s infinite ease-in-out;
}
.btn-magic-gold:hover {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%); color: #fffbeb;
    border-color: #fbbf24; box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.btn-magic-gold:hover i { color: #fff; text-shadow: 0 0 5px #fbbf24; }

.btn-magic-login {
    background: rgba(74, 222, 128, 0.05); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4);
    animation: magic-soft-glow-green 3s infinite ease-in-out;
}
.btn-magic-login:hover {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%); color: #f0fdf4;
    border-color: #4ade80; box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.btn-magic-secondary {
    background: rgba(34, 211, 238, 0.05); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.4);
    animation: magic-soft-glow-cyan 3s infinite ease-in-out;
}
.btn-magic-secondary:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%); color: #ecfeff;
    border-color: #22d3ee; box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.btn-magic-audio { position: relative; display: inline-block; border-radius: 0.5rem; overflow: hidden; cursor: pointer; }
.animate-bounce-slow { animation: bounce 2s infinite; }

.btn-magic-reorder {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.4rem 0.8rem;
    margin-top: 1rem; margin-left: auto; margin-right: auto;
    background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5;
    border-radius: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; overflow: hidden;
    position: relative; width: fit-content; min-width: auto;
}
.btn-magic-reorder:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%); color: white; border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); transform: translateY(-2px);
}
.btn-magic-reorder:hover i { transform: rotate(180deg); color: #fff; }

/* =========================================
   CARDS MÁGICOS E LAYOUT
   ========================================= */
.magic-info-card {
    position: relative; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--glass-border);
    border-radius: 0.75rem; padding: 1rem; transition: all 0.3s ease; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}
.magic-info-card:hover {
    background: rgba(30, 41, 59, 0.8); border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.magic-info-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--magic-cyan); opacity: 0.8; box-shadow: 0 0 10px var(--magic-cyan);
}
.magic-card-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: #94a3b8;
    font-weight: 800; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
}
.card-type-update {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.3), rgba(15, 23, 42, 0.6)); border-left: none;
}
.card-type-update::before { background: #3b82f6; box-shadow: 0 0 15px #3b82f6; width: 3px; }

/* === LICENÇA COMPACTA (ACESSO LIBERADO) === */
.magic-license-compact {
    display: flex; align-items: center; justify-content: space-between;
    background: radial-gradient(circle at center, #064e3b 0%, #022c22 100%);
    border: 1px solid rgba(52, 211, 153, 0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 0; position: relative;
    overflow: hidden; width: 100%; animation: pulse-glow-green 3s infinite;
}
.magic-license-compact::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #34d399, transparent); opacity: 0.7;
}
@keyframes pulse-glow-green { 0%, 100% { box-shadow: 0 0 15px rgba(52, 211, 153, 0.2); } 50% { box-shadow: 0 0 25px rgba(52, 211, 153, 0.5); } }

.license-content-left { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.license-icon-wrapper {
    width: 42px; height: 42px; border-radius: 12px; background: rgba(16, 185, 129, 0.15);
    display: flex; align-items: center; justify-content: center; color: #34d399; font-size: 1.2rem;
    border: 1px solid rgba(52, 211, 153, 0.2); flex-shrink: 0; box-shadow: 0 0 15px rgba(52, 211, 153, 0.1);
}
.license-text-wrapper { display: flex; flex-direction: column; line-height: 1.3; }
.license-title {
    font-size: 0.75rem; font-weight: 800; color: #6ee7b7; text-transform: uppercase; letter-spacing: 0.1em;
}
/* ADICIONADO: Fonte Mágica para o Timer */
.license-timer-box {
    display: flex;
    gap: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(52, 211, 153, 0.6);
}

.license-download-btn {
    width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #10b981, #059669);
    color: white; display: flex; align-items: center; justify-content: center; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; margin-left: 15px;
}
.license-download-btn:hover { background: #10b981; transform: scale(1.15) rotate(5deg); box-shadow: 0 0 20px #34d399; border-color: #a7f3d0; }

/* === PUBLICADOR === */
.publisher-card-container {
    position: relative; background: linear-gradient(160deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 12px; padding: 16px; overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3); transition: all 0.3s ease;
}
.publisher-card-container:hover {
    border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.5); transform: translateY(-3px);
}
.publisher-card-container::after {
    content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    transform: skewX(-20deg); animation: shimmer 6s infinite linear; pointer-events: none;
}
.author-magic-compact { position: relative; display: flex; align-items: center; gap: 1rem; padding: 0.25rem; z-index: 2; }
.author-magic-avatar-wrapper { width: 54px; height: 54px; flex-shrink: 0; position: relative; }
.author-magic-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}
.author-magic-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.author-magic-name { font-size: 1.1rem; font-weight: 800; color: white; letter-spacing: 0.02em; }
.author-magic-role { font-size: 0.75rem; color: #a5b4fc; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }

/* === PILLS === */
.fantastic-pill {
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
    padding: 0.4rem 1rem; border-radius: 12px; text-decoration: none; color: rgba(255,255,255,0.9);
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; letter-spacing: 0.5px;
}
.fantastic-pill:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.05); color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.fantastic-pill::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--magic-purple), var(--magic-neon-green), transparent);
    opacity: 0.6; transition: opacity 0.3s;
}
.fantastic-pill:hover::after { opacity: 1; height: 3px; box-shadow: 0 0 10px var(--magic-neon-green); }

/* === ESTRELAS & PONTOS === */
.point-floater-magic {
    position: fixed; z-index: 9999; pointer-events: none; font-family: 'Inter', sans-serif;
    font-weight: 900; font-size: 1.4rem; color: #fbbf24; text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transition: transform 5s cubic-bezier(0.19, 1, 0.22, 1), opacity 5s ease; transform-origin: center center;
}
.point-floater-magic.negative { color: #ef4444; text-shadow: 0 2px 10px rgba(127, 29, 29, 0.5); }

.rating-star { transition: all 0.2s; position: relative; color: #4b5563; }
.rating-star.active { color: #fbbf24; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.6)); animation: star-pulse 2s infinite; }
.rating-star:hover { transform: scale(1.3) rotate(15deg); color: #fcd34d; filter: drop-shadow(0 0 10px #fbbf24); cursor: pointer; }
@keyframes star-pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4)); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)); } }

/* === TERMINAL === */
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.terminal-loader {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.05);
}

/* === NUMERADOR DE AVALIAÇÕES (18px) === */
#tool-rating-count {
    font-size: 18px; font-weight: 600; opacity: 0.9; margin-left: 2px; vertical-align: 1px;
}

/* === ÍCONE DA VERSÃO (CÍRCULO PERFEITO) === */
.version-icon-wrapper {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; /* Garante círculo perfeito */
    aspect-ratio: 1/1;
}