/* CSS Variables for 80s Synthwave Theme */
:root {
    --bg-color: #0d0221;
    --text-primary: #f8f8ff;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #b026ff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) translateZ(-200px);
    z-index: -2;
    animation: moveGrid 10s linear infinite;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.3;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 
        0 0 2px #fff,
        0 0 5px var(--neon-pink),
        0 0 15px var(--neon-pink),
        0 0 30px var(--neon-pink);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0aab2;
    max-width: 600px;
    margin: 0 auto;
}

/* Button */
.generator-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.neon-btn {
    background: transparent;
    border: 2px solid var(--neon-blue);
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--neon-blue);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    box-shadow: 
        inset 0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neon-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: 
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
    transform: scale(1.05);
}

.neon-btn:active {
    transform: scale(0.95);
}

/* Terminal Display */
.hidden {
    display: none !important;
}

#promptDisplayArea {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.5s ease-out forwards;
}

.terminal-window {
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-header .title {
    color: #888;
    font-family: monospace;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 20px;
    min-height: 150px;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Blinking cursor */
.terminal-body p::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

.copy-btn {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-pink);
}

/* Content Section (SEO) */
.content-section {
    background: rgba(13, 2, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.content-section h2 {
    font-family: var(--font-heading);
    color: var(--neon-purple);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(176, 38, 255, 0.3);
    padding-bottom: 0.5rem;
}

.content-section article {
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    color: #ccc;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}
footer a {
    color: var(--neon-blue);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .neon-btn { font-size: 1.2rem; padding: 0.8rem 2rem; }
    .terminal-body { font-size: 1rem; }
}
