/* Hacking Loader - Inline Style */
.hacker-loader-area {
    width: 100%;
    min-height: 50vh;
    /* Occupy space in grid */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #00ff00;
    grid-column: 1 / -1;
    /* Span full width of grid */
}

/* Ensure no background/z-index issues */
.hacker-loader-area::before {
    /* Optional: scanline effect constrained to this area if desired, 
      but user wants simple. Let's keep it clean or minimal scanlines. */
    content: none;
}

/* CRT Scanline Effect */
.hacker-overlay::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.hacker-overlay.hidden {
    display: none;
}

.terminal-log {
    width: 100%;
    max-width: 800px;
    height: 60vh;
    overflow-y: hidden;
    /* Auto scroll handles logic */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #00ff00;
    z-index: 3;
    text-align: center;
    margin: 0 auto;
    /* Force center in block layout */
}

/* Hacker Spinner */
.hacker-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(0, 255, 0, 0.3);
    border-top: 5px solid #00ff00;
    border-radius: 50%;
    animation: spinHacker 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

@keyframes spinHacker {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.log-line {
    animation: fadeInOut 0.2s forwards;
    white-space: pre-wrap;
    font-weight: bold;
    min-height: 2rem;
    /* Prevent layout shift */
}

@keyframes fadeInOut {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.log-line.danger {
    color: #ff0000;
    text-shadow: 0 0 5px red;
}

.log-line.warning {
    color: #ffff00;
    text-shadow: 0 0 5px yellow;
}

@keyframes typeLine {
    to {
        opacity: 1;
    }
}

/* Updated Card Styles (No Folder Icon/Text) */
.item-card.folder .card-icon {
    display: none;
    /* Hide icon as requested */
}

.item-card.folder {
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.item-card.folder .card-subtitle {
    display: none;
    /* Hide 'Folder' text */
}

.item-card.folder .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Page Title Hint */
.page-hint {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}