/* Estilos principais para Bitcoin Miner */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3em;
    color: #f7931a;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.mining-status {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: #f7931a;
    margin-bottom: 20px;
    font-size: 2em;
}

.content h3 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 1.5em;
}

.mining-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: white;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.bitcoin-icon {
    font-size: 1.5em;
    margin: 0 10px;
}

.explanation {
    background: #f8f9fa;
    border-left: 5px solid #f7931a;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    overflow-x: auto;
}

.highlight {
    background: linear-gradient(120deg, #f7931a 0%, #ffeb3b 100%);
    padding: 2px 6px;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    padding: 3px;
    margin: 10px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 20px;
    border-radius: 7px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.mining-log {
    background: #000;
    color: #00ff00;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    height: 200px;
    overflow-y: auto;
    margin: 20px 0;
    border: 2px solid #f7931a;
}

.btn {
    background: linear-gradient(45deg, #f7931a, #ffeb3b);
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

.footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .mining-stats {
        grid-template-columns: 1fr;
    }
}

/* Animações adicionais para a página de mineração */

@keyframes mining-glow {
    0% { box-shadow: 0 0 5px #f7931a; }
    50% { box-shadow: 0 0 20px #f7931a, 0 0 30px #f7931a; }
    100% { box-shadow: 0 0 5px #f7931a; }
}

.mining-active {
    animation: mining-glow 2s infinite;
}

@keyframes hash-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hash-display {
    background: #000;
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    white-space: nowrap;
    margin: 10px 0;
}

.hash-text {
    display: inline-block;
    animation: hash-scroll 10s linear infinite;
}

@keyframes bitcoin-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bitcoin-icon {
    animation: bitcoin-spin 3s linear infinite;
    color: #f7931a;
}

.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #f7931a,
        0 0 10px #f7931a,
        0 0 15px #f7931a,
        0 0 20px #f7931a;
}

/* Efeito de partículas (simulado com CSS) */
.particle {
    position: absolute;
    background: #f7931a;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 4s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

/* Responsividade melhorada */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
}

/* Tema escuro alternativo */
.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.dark-theme .content {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.dark-theme .explanation {
    background: rgba(247, 147, 26, 0.1);
    border-left-color: #f7931a;
    color: #fff;
}

/* Indicador de conexão */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transition: all 0.3s ease;
}

.connection-online {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.connection-offline {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.connection-connecting {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    animation: pulse 1s infinite;
}
