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

body {
    background: #0a0a0a;
    color: #0f0;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Finestra terminale ---------- */
.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.terminal-window {
    width: 100%;
    max-width: 1024px;
    background: #121212;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 0, 0.04);
    overflow: hidden;
}

.titlebar {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
}

.dots {
    display: flex;
    gap: 8px;
    z-index: 1;
}

.dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: #9a9a9a;
    pointer-events: none;
}

.terminal-body {
    padding: 32px;
}

.section {
    margin-bottom: 30px;
}

.section p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ---------- Prompt e output ---------- */
.prompt { color: #ff0000; font-weight: bold; }
.prompt-user { color: #00ff00; }
.prompt-at { color: #ffff00; }
.prompt-host { color: #87ceeb; }
.prompt-path { color: #90ee90; }
.dollar-sign { color: #ffff00; }
.command { color: #ffffff; }

.output {
    color: #b8b8b8;
    margin-bottom: 20px;
}

.output-highlight { color: #0f0; font-weight: bold; }
.success { color: #0f0; }
.warning { color: #ffaa00; }
.comment { color: #5a5a5a; }

.output-link {
    color: #00ffff;
    text-decoration: underline;
    cursor: pointer;
}

.output-link:hover { color: #00cccc; }

/* ---------- Header profilo ---------- */
.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 8px 0 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #262626;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #00ff00;
    object-fit: cover;
    flex-shrink: 0;
}

.banner-text {
    text-align: left;
    line-height: 1.8;
    width: 36ch;
    max-width: 100%;
}

.banner-name {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #0f0, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#typewriter {
    display: inline-block;
    white-space: nowrap;
    color: #ffffff;
}

.blink {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    body { font-size: 13px; }

    .page {
        align-items: flex-start;
        padding: 12px 8px;
    }

    .terminal-body { padding: 18px 14px; }

    .banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .banner-text { text-align: center; }

    .profile-photo {
        width: 120px;
        height: 120px;
    }
}
