/* ========================================
   okurairi.net - Terminal Playground Split
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
}

/* --- Split Container --- */
.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* --- Panels --- */
.panel {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-left {
    background: #0A1818;
}

.panel-right {
    background: #FFF4F0;
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    min-height: 100vh;
}

/* --- Grid Overlay --- */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: 40px 40px;
}

.grid-overlay.visible {
    opacity: 1;
}

.grid-left {
    /* Grid Dark: #1A3030 at 15% opacity */
    border-right: 1px solid #1A3030;
    background-image:
        linear-gradient(to right, rgba(26, 48, 48, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 48, 48, 0.15) 1px, transparent 1px);
}

.grid-right {
    background-image:
        linear-gradient(to right, rgba(240, 216, 208, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(240, 216, 208, 0.15) 1px, transparent 1px);
}

/* --- Generative Canvas --- */
#generative-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Center Divider --- */
.center-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #40B8A8 15%,
        #40B8A8 50%,
        #D06050 50%,
        #D06050 85%,
        transparent 100%
    );
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.center-divider.visible {
    opacity: 0.6;
}

/* --- Bounce Enter Animation --- */
.bounce-el {
    opacity: 0;
    transform: translateY(25px);
}

.bounce-el.entered {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Split Title --- */
.split-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.split-title-left {
    color: #40B8A8;
}

.split-title-right {
    color: #D06050;
}

/* --- Terminal Header --- */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(26, 48, 48, 0.6);
    border-radius: 8px 8px 0 0;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(64, 184, 168, 0.15);
    border-bottom: none;
}

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

.dot-red { background: #D06050; }
.dot-yellow { background: #F0D8D0; }
.dot-green { background: #40B8A8; }

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #80C0B0;
    margin-left: 8px;
    opacity: 0.7;
}

/* --- Terminal Blocks --- */
.terminal-block {
    margin-bottom: 1.6rem;
    padding: 0.4rem 0;
}

.prompt {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.95rem;
    color: #40B8A8;
    margin-right: 8px;
}

.command {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: #80C0B0;
}

.output {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: #80C0B0;
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(64, 184, 168, 0.2);
}

.output-highlight {
    color: #40B8A8;
    border-left-color: rgba(64, 184, 168, 0.5);
}

.file-entry {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #80C0B0;
    line-height: 1.6;
}

.status-row {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #80C0B0;
}

.status-label {
    color: #40B8A8;
    display: inline-block;
    min-width: 120px;
}

/* --- Blinking Cursor --- */
.cursor-block {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #40B8A8;
    vertical-align: middle;
    animation: cursor-blink 1s step-end infinite;
}

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

/* --- Right Panel Content Cards --- */
.content-card {
    margin-bottom: 2.5rem;
    padding: 1.8rem 2rem;
    background: rgba(240, 216, 208, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(208, 96, 80, 0.1);
    transition: border-color 0.3s ease;
}

.content-card:hover {
    border-color: rgba(208, 96, 80, 0.3);
}

.card-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #D06050;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.card-text {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: #806060;
}

/* --- Pattern Preview SVG --- */
.pattern-preview {
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(208, 96, 80, 0.05);
    border-radius: 4px;
}

.mini-pattern {
    width: 100%;
    height: auto;
    max-height: 80px;
}

/* --- Footer Mark --- */
.footer-mark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(208, 96, 80, 0.15);
}

.footer-domain {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.3rem;
    color: #D06050;
}

.footer-year {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #806060;
    opacity: 0.6;
}

/* --- Scrollbar Styling --- */
.panel-left::-webkit-scrollbar {
    width: 4px;
}

.panel-left::-webkit-scrollbar-track {
    background: #0A1818;
}

.panel-left::-webkit-scrollbar-thumb {
    background: rgba(64, 184, 168, 0.3);
    border-radius: 2px;
}

.panel-right::-webkit-scrollbar {
    width: 4px;
}

.panel-right::-webkit-scrollbar-track {
    background: #FFF4F0;
}

.panel-right::-webkit-scrollbar-thumb {
    background: rgba(208, 96, 80, 0.3);
    border-radius: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .center-divider {
        left: 0;
        top: 50%;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
        background: linear-gradient(
            to right,
            transparent 0%,
            #40B8A8 15%,
            #40B8A8 50%,
            #D06050 50%,
            #D06050 85%,
            transparent 100%
        );
    }

    .panel-content {
        padding: 2rem 1.5rem;
    }

    .content-card {
        padding: 1.2rem 1.4rem;
    }
}
