/* Hacker Typer VIP - Full Hollywood Style */

.hacker-typer-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.15);
    border: 1px solid #1a3a1a;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.ht-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    padding: 8px 14px;
    border-bottom: 1px solid #222;
    user-select: none;
}

.ht-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.ht-title-text {
    color: #00ff41;
    font-size: 13px;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.ht-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ht-lang-select {
    background: #111;
    color: #00ff41;
    border: 1px solid #333;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 12px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.ht-lang-select:hover,
.ht-lang-select:focus {
    border-color: #00ff41;
}

.ht-btn {
    background: #1a1a1a;
    color: #00ff41;
    border: 1px solid #333;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.ht-btn:hover {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
}

/* Terminal */
.ht-terminal {
    flex: 1;
    background: #0a0a0a;
    overflow-y: auto;
    padding: 16px 20px;
    outline: none;
    position: relative;
    min-height: 400px;
}

.ht-terminal:focus {
    box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.05);
}

.ht-code {
    margin: 0;
    padding: 0;
    color: #00ff41;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
}

.ht-cursor {
    background: #00ff41;
    color: #0a0a0a;
    animation: blink 1s step-end infinite;
    padding: 0 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Overlays */
.ht-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
}

.ht-overlay.active {
    display: flex;
}

.ht-overlay-content {
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.ht-overlay-content h1 {
    font-size: 48px;
    margin: 0 0 12px;
    letter-spacing: 6px;
    text-shadow: 0 0 20px currentColor;
}

.ht-access-granted .ht-overlay-content h1 {
    color: #00ff41;
}

.ht-access-denied .ht-overlay-content h1 {
    color: #ff3333;
}

.ht-overlay-content p {
    color: #aaa;
    font-size: 16px;
    margin: 6px 0;
}

.ht-small {
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 20px !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

/* Hint bar */
.ht-hint {
    background: #111;
    color: #555;
    font-size: 11px;
    padding: 6px 14px;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    letter-spacing: 0.3px;
}

/* Fullscreen mode */
.hacker-typer-wrapper.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    z-index: 999999;
    border: none;
}

.hacker-typer-wrapper.fullscreen .ht-terminal {
    min-height: auto;
}

/* Scrollbar */
.ht-terminal::-webkit-scrollbar {
    width: 8px;
}
.ht-terminal::-webkit-scrollbar-track {
    background: #0a0a0a;
}
.ht-terminal::-webkit-scrollbar-thumb {
    background: #1a3a1a;
    border-radius: 4px;
}
.ht-terminal::-webkit-scrollbar-thumb:hover {
    background: #00ff41;
}

/* Responsive */
@media (max-width: 600px) {
    .ht-title-text {
        display: none;
    }
    .ht-code {
        font-size: 12px;
    }
    .ht-overlay-content h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }
}
