/* ========================================================
   HAKANKILINC.DEV - MATRIX TERMINAL INTRO SCREEN
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap');

html.intro-skipped #hk-matrix-intro {
    display: none !important;
}

#hk-matrix-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background-color: #020302;
    color: #22c55e;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
}

#hk-matrix-intro.fade-out {
    opacity: 0 !important;
    filter: blur(6px) !important;
    pointer-events: none !important;
}

/* CRT Scanlines */
#hk-matrix-intro .hk-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.35)
    );
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.35;
}

/* 0101 Matrix Rain Canvas */
#hk-matrix-intro #hk-matrix-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

@media (max-width: 768px) {
    #hk-matrix-intro #hk-matrix-canvas {
        width: 100%;
        opacity: 0.25;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* Terminal Üst Başlık Çubuğu */
#hk-matrix-intro .hk-term-header {
    position: relative;
    z-index: 10;
    padding: 14px 24px;
    background: rgba(6, 10, 6, 0.95);
    border-bottom: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
}

#hk-matrix-intro .hk-term-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #4ade80;
}

#hk-matrix-intro .hk-term-badge {
    font-size: 11px;
    color: #16a34a;
    font-weight: 400;
}

#hk-matrix-intro .hk-skip-btn {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    font-family: inherit;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#hk-matrix-intro .hk-skip-btn:hover {
    background: rgba(22, 163, 74, 0.3);
    border-color: #22c55e;
    color: #ffffff;
}

/* Terminal Gövde */
#hk-matrix-intro .hk-term-body {
    position: relative;
    z-index: 10;
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    #hk-matrix-intro .hk-term-body {
        padding: 16px;
        font-size: 11.5px;
        line-height: 1.55;
    }
}

#hk-matrix-intro .hk-log-line {
    margin-bottom: 6px;
    word-break: break-word;
    color: #22c55e;
}

#hk-matrix-intro .hk-highlight {
    color: #86efac !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

#hk-matrix-intro .hk-ascii-box {
    margin: 12px 0;
    font-family: 'Fira Code', monospace;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    white-space: pre;
    overflow-x: auto;
}

@media (max-width: 768px) {
    #hk-matrix-intro .hk-ascii-box {
        font-size: 9px;
    }
}

#hk-matrix-intro .hk-typing-active {
    display: flex;
    align-items: center;
    min-height: 1.6em;
    color: #86efac;
}

#hk-matrix-intro .hk-cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background-color: #22c55e;
    margin-left: 4px;
    vertical-align: middle;
    animation: hkBlink 0.7s infinite;
}

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

/* Terminal Alt Bilgi */
#hk-matrix-intro .hk-term-footer {
    position: relative;
    z-index: 10;
    padding: 10px 24px;
    background: rgba(4, 6, 4, 0.95);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #15803d;
}

#hk-matrix-intro .hk-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-weight: 600;
}

#hk-matrix-intro .hk-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: hkPulse 1.5s infinite;
}

@keyframes hkPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}
