/* --- RESET & BASE --- */
* { box-sizing: border_box; margin: 0; padding: 0; }
body {
    background-color: #050b14; /* Blu Notte Profondo */
    color: #e0e6ed;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- SFONDO E GLOW --- */
.bg-glow {
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, #1a2c4e 0%, #050b14 70%);
    z-index: -1;
    animation: pulseBg 10s infinite alternate;
}

/* --- LAYOUT --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    letter-spacing: 2px;
}
.logo i { color: #00f2ff; margin-right: 10px; }

.status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(0, 242, 255, 0.05);
}
.pulse {
    width: 8px; height: 8px;
    background-color: #00f2ff;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #00f2ff;
    animation: blink 2s infinite;
}

/* --- HERO & SEARCH --- */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}
.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 30px; }

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}
.search-box input:focus {
    outline: none;
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}
.search-box i {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* --- BLOCKCHAIN CARDS (Glassmorphism) --- */
.chain-wrapper { position: relative; margin-top: 40px; }

/* Linea che collega i blocchi */
.chain-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00f2ff 0%, rgba(255,255,255,0.1) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.block-card {
    background: rgba(20, 30, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}

.block-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.15);
}

/* Badge Numero Blocco */
.block-index {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: #050b14;
    border: 1px solid #00f2ff;
    color: #00f2ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* Contenuto Dati */
.data-row {
    display: flex; justify-content: space-between;
    margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.data-label { color: #94a3b8; font-size: 0.9rem; }
.data-value { color: #fff; font-weight: 600; text-align: right; }
.data-value.highlight { color: #00f2ff; }

/* Hash Footer */
.block-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
    word-break: break-all;
}
.hash-label { color: #475569; display: block; margin-bottom: 4px; }

/* Animazioni */
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }
