/* View: index — Landing page styles */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    background-color: #000;
    color: #33ff33;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Futura', monospace;
    overflow: hidden;
    position: relative;
}

/* Container for extra wide ASCII art */
.ascii-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: 'VT323', monospace;
}

/* Dropdown styles */
.dropdown-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.dropdown-header:hover {
    text-shadow: 0 0 8px #33ff33;
}

.pink-text-color {
    color: #e622c5;
}

.pink-text-color:hover {
    text-shadow: 0 0 8px #e622c5;
}

.pink-text-color-glowing {
    color: #e622c5;
    text-shadow: 0 0 8px #e622c5;
}

.dropdown-arrow {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s;
    font-family: 'VT323', monospace;
}

.dropdown-header.expanded .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 20px;
}

.dropdown-content.expanded {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
    padding-bottom: 10px;
}

/* Pink project tooltip visibility */
#pinkProjectTooltip {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#pinkProjectTooltip.visible {
    opacity: 1;
}

/* CRT screen effect overlay */
body::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));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

/* Subtle screen glow */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

#ascii-container {
    white-space: pre;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 0 5px #33ff33;
    position: relative;
    z-index: 1;
    transition: font-size 0.3s;
    display: inline-block;
}

.controls {
    position: fixed;
    width: 205px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

#drawer {
    font-size: large;
    max-height: 100vh;
    overflow: hidden;
}

#drawer .custom-button {
    width: 80%;
}

#drawer h3 {
    text-align: left;
    padding-left: 10px;
}

/* Ensure drawer content is scrollable */
.drawer-content {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

/* Ensure pink tooltip appears above everything */
.pink-tooltip {
    z-index: 99999 !important;
}

/* Centered pink tooltip (for maximum intensity message) */
.pink-tooltip-center {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Remove the arrow for centered tooltips */
.pink-tooltip-center .tooltip-content::before {
    display: none;
}

/* Custom scrollbar styling for drawer */
#drawer::-webkit-scrollbar,
.drawer-content::-webkit-scrollbar {
    width: 8px;
}

#drawer::-webkit-scrollbar-track,
.drawer-content::-webkit-scrollbar-track {
    background: #002200;
}

#drawer::-webkit-scrollbar-thumb,
.drawer-content::-webkit-scrollbar-thumb {
    background: #33ff33;
    border-radius: 4px;
}

#drawer::-webkit-scrollbar-thumb:hover,
.drawer-content::-webkit-scrollbar-thumb:hover {
    background: #44ff44;
}

/* This is added to the ascii wrapper and the controls when the drawer is opened */
.blur-content {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

/* Landing page buttons — scoped to drawer/controls only, does NOT bleed into modals */
#drawer button,
.controls button {
    padding: 10px 25px;
    background: #002200;
    color: #33ff33;
    border: 2px solid #33ff33;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Futura', monospace;
    font-weight: bold;
    transition: all 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#drawer button:hover,
.controls button:hover {
    background: #003300;
}

#drawer button.active,
.controls button.active {
    background: #004400;
}

/* Horizontal scan line effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(51, 255, 51, 0.15);
    z-index: 3;
    opacity: 0.7;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Glitch effect (duplicated here since effects.css is not loaded on landing page) */
.effect-glitch {
    position: relative;
}

.effect-glitch::before,
.effect-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.effect-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #e622c5;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.effect-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #33ff33;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(84px, 9999px, 26px, 0); }
    80% { clip: rect(52px, 9999px, 68px, 0); }
    100% { clip: rect(38px, 9999px, 12px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 32px, 0); }
    20% { clip: rect(28px, 9999px, 88px, 0); }
    40% { clip: rect(72px, 9999px, 18px, 0); }
    60% { clip: rect(14px, 9999px, 56px, 0); }
    80% { clip: rect(42px, 9999px, 74px, 0); }
    100% { clip: rect(86px, 9999px, 48px, 0); }
}
