/* === CALCULADORA ROLLERCOIN - ESTILOS === */

/* Navegación superior */
.site-nav {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.1);
}

.site-nav a {
    font-family: 'Orbitron', sans-serif;
    color: #64748b;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.site-nav a:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.site-nav a.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Título retro */
.calc-title {
    font-family: 'Press Start 2P', 'Orbitron', monospace;
    background: linear-gradient(180deg, #67e8f9 0%, #0ea5e9 50%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
    letter-spacing: 4px;
}

/* Tablas de la calculadora */
.calc-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #1e3a5f;
    border-radius: 8px;
    overflow: hidden;
    background: #0c1829;
}

.calc-table thead th {
    background: linear-gradient(180deg, #d4a017 0%, #b8860b 100%);
    color: #1a1a2e;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #8b6914;
    white-space: nowrap;
}

.calc-table thead th.table-header {
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 2px;
}

.calc-table tbody td {
    padding: 6px 10px;
    font-size: 0.8rem;
    font-family: 'IBM Plex Mono', 'Roboto Mono', monospace;
    border-bottom: 1px solid #1e293b;
    color: #94a3b8;
    text-align: center;
    transition: background 0.2s;
}

.calc-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

.calc-table tbody td.coin-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e2e8f0;
    text-align: left;
}

.calc-table tfoot td {
    background: linear-gradient(180deg, #d4a017 0%, #b8860b 100%);
    color: #1a1a2e;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 10px;
    text-transform: uppercase;
    border-top: 2px solid #8b6914;
}

/* Indicador de moneda (círculo de color) */
.coin-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 0 6px currentColor;
}

/* Controles */
.calc-input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.calc-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.calc-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.calc-select:focus {
    border-color: #38bdf8;
}

/* Toggle USD/Crypto */
.toggle-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #334155;
    background: #1e293b;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.toggle-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.toggle-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #0c1829;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Botón de pegar red */
.paste-btn {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #065f46, #047857);
    color: #34d399;
    border: 2px solid #34d399;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.paste-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
    transform: translateY(-1px);
}

.help-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d4a017;
    color: #1a1a2e;
    border: none;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.help-btn:hover {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* Textarea para pegar datos */
.network-textarea {
    width: 100%;
    min-height: 100px;
    background: #0c1829;
    border: 1px solid #1e3a5f;
    color: #94a3b8;
    padding: 12px;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    resize: vertical;
    outline: none;
}

.network-textarea:focus {
    border-color: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

/* Info de red */
.network-info {
    background: #0c1829;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #64748b;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .calc-table thead th,
    .calc-table tbody td,
    .calc-table tfoot td {
        padding: 5px 6px;
        font-size: 0.65rem;
    }
}

@media (max-width: 640px) {
    .calc-title {
        font-size: 1.2rem !important;
        letter-spacing: 2px;
    }

    .calc-table {
        font-size: 0.6rem;
    }
}
