/* css/tools.css - Estilos Específicos para Ferramentas */

/* --- Layout da Página de Tools --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Um pouco mais largo */
    gap: 40px;
    margin-top: -180px;
}

/* --- Card Base --- */
.tool-card {
    background-color: #141414; /* Usando cor direta caso a var falhe, ou var(--bg-card) se importado */
    background-color: var(--bg-card, #141414);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 4px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--gold-primary, #C9A23A);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(-5px);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tool-header i {
    font-size: 1.5rem;
    color: var(--gold-primary, #C9A23A);
}

.tool-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.tool-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- Inputs e Formulários --- */
.tool-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-input, .tool-select {
    width: 100%;
    padding: 14px;
    background-color: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.tool-input:focus, .tool-select:focus {
    outline: none;
    border-color: var(--gold-primary, #C9A23A);
    box-shadow: 0 0 10px rgba(201, 162, 58, 0.1);
}

.input-row {
    display: flex;
    gap: 10px;
}

/* --- Tracker Simulation (A parte "Tech") --- */
.track-simulation {
    margin-top: 20px;
    background-color: #050505;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.track-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--gold-primary, #C9A23A);
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 0.95rem;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.blink-dot {
    width: 8px; height: 8px;
    background-color: var(--gold-primary, #C9A23A);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--gold-primary, #C9A23A);
    animation: blink 1.5s infinite;
}

.track-details p {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #222;
    padding-bottom: 4px;
}

.progress-bar {
    height: 4px;
    background-color: #222;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--gold-primary, #C9A23A);
    width: 0%;
    transition: width 2s ease-in-out;
}

/* --- Calculadora Result Box --- */
.result-box {
    margin-top: 5px;
    padding: 15px;
    background-color: #050505;
    border: 1px dashed #333;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #666; /* Cor padrão antes do cálculo */
    transition: 0.3s;
}

/* --- Currency Rows --- */
.rate-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ddd;
    font-size: 0.9rem;
}

.rate-value {
    color: var(--gold-primary, #C9A23A);
    font-family: monospace;
    font-weight: 700;
}

/* --- Animations --- */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

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

/* =========================================
   2. HEADER PREMIUM (Grid Layout - Definitivo)
   ========================================= */

.main-header {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 90px;
    width: 100%;
}

.main-header .container {
    max-width: 98%; /* Ocupa a tela toda */
    padding: 0 40px; /* Margem lateral generosa */
    margin: 0 auto;
    height: 100%;
}

.header-wrapper {
    display: grid;
    /* 3 Colunas.
       1fr (Esquerda) | auto (Meio - Tamanho do Menu) | 1fr (Direita) */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

/* --- 1. Logo (Esquerda) --- */
.logo-area {
    display: flex;
    justify-content: flex-start;
}

.logo-area img {
    height: 100px;
    width: auto;
    display: flex;
    object-fit: contain;
}

/* --- 2. Menu (Centro Absoluto) --- */
.nav-area {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px; /* Espaço entre os links */
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    transition: 0.3s;
    position: relative;
    white-space: nowrap; /* Não quebra linha */
}

.nav-list a:hover, .nav-list a.active { color: #fff; }

.nav-list a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background-color: var(--gold-primary); transition: width 0.3s ease;
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

/* --- 3. Botão (Direita Isolada) --- */
.action-area {
    display: flex;
    justify-content: flex-end;
    padding-left: 20px;
}

.btn-header {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    background: transparent;
    text-decoration: none;
}

.btn-header:hover {
    background-color: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 25px rgba(201, 162, 58, 0.5); 
    transform: translateY(-2px);
}

/* --- Mobile Toggle --- */
.mobile-toggle { display: none; font-size: 1.8rem; color: #fff; cursor: pointer; justify-self: end; }

/* Responsivo */
@media (max-width: 1200px) {
    /* Muda o grid para: Logo (Esq) e Hambúrguer (Dir) */
    .header-wrapper { display: flex; justify-content: space-between; }
    .nav-area, .action-area { display: none; } 
    .mobile-toggle { display: block; }
}

/* --- 3. MOBILE MENU FIX (Ocultar a lista solta) --- */

.mobile-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #050505;
    border-bottom: 1px solid var(--gold-primary);
    padding: 40px 20px;
    
    display: none;
    
    flex-direction: column;
    gap: 25px;
    text-align: center;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Classe que o JavaScript adiciona para abrir */
.mobile-menu.open {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu a:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Animação suave */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}