@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --neon-cyan: #0ff0fc;
    --neon-purple: #bc13fe;
    --neon-pink: #ff44cc;
    --neon-green: #0fff50;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.font-audiowide {
    font-family: 'Audiowide', cursive;
}

.font-press-start {
    font-family: 'Press Start 2P', cursive;
}

/* Grid Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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: 50px 50px;
    opacity: 0.3;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.8) 0%, rgba(28, 10, 41, 0.9) 100%);
    z-index: 1;
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

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

.glitch::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation: glitch-spark 2s infinite;
}

.glitch::after {
    color: var(--neon-purple);
    z-index: -2;
    animation: glitch-spark 5s infinite;
}

@keyframes glitch-spark {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, 5px); }
    80% { transform: translate(5px, -5px); }
    100% { transform: translate(0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(3deg); }
    20% { transform: skew(0deg); }
    30% { transform: skew(-3deg); }
    40% { transform: skew(0deg); }
}

/* Neon Buttons */
.neon-btn {
    position: relative;
    padding: 12px 24px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.neon-btn span {
    position: relative;
    z-index: 1;
}

.neon-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.neon-cyan {
    background: rgba(0, 59, 77, 0.3);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.neon-purple {
    background: rgba(66, 0, 77, 0.3);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:hover {
    box-shadow: 0 0 20px currentColor;
}

/* Holographic Panels */
.holographic-panel {
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s;
    overflow: hidden;
    z-index: 1;
}

.holographic-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.panel-header i {
    width: 40px;
    height: 40px;
}

.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0.7;
}

/* Terminal Window */
.terminal-window {
    background: rgba(0, 10, 20, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: rgba(0, 20, 40, 0.8);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

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

.terminal-btn-red {
    background: #ff5f56;
}

.terminal-btn-yellow {
    background: #ffbd2e;
}

.terminal-btn-green {
    background: #27c93f;
}

.terminal-title {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 15px;
    min-height: 200px;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #00ffaa;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.neon-underline {
    position: relative;
    display: inline-block;
}

.neon-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--neon-cyan);
}