/* 
 * Lost in the Shell Bank - Main Theme
 * Breaking through digital barriers - Shell by shell
 */

:root {
    --shell-cyan: #00E5FF;
    --shell-green: #00ff41;
    --shell-magenta: #FF1493;
    --shell-purple: #B24BFF;
    --shell-gold: #FFD700;
    --shell-silver: #C0C0C0;
    --shell-black: #0a0e1f;
    --shell-dark: #1a1f3c;
}

/* Typography Lost in the Shell */
.cyber-font {
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.terminal-font {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Background cyberpunk Lost in the Shell */
.shell-bg {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(178, 75, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--shell-black) 0%, var(--shell-dark) 100%);
    background-size: cover;
    background-attachment: fixed;
}

/* Stars background for Lost in the Shell */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: shell-twinkle 5s infinite;
}

.star.shell-cyan { 
    background-color: var(--shell-cyan); 
    box-shadow: 0 0 4px var(--shell-cyan); 
}

.star.shell-green { 
    background-color: var(--shell-green); 
    box-shadow: 0 0 4px var(--shell-green); 
}

.star.shell-magenta { 
    background-color: var(--shell-magenta); 
    box-shadow: 0 0 4px var(--shell-magenta); 
}

@keyframes shell-twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Shell Protection Status */
.shell-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(10, 14, 31, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--shell-cyan);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.shell-status.shell-intact {
    border-color: var(--shell-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.shell-status.shell-compromised {
    border-color: var(--shell-magenta);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    animation: shell-warning 3s infinite;
}

.shell-status.shell-breached {
    border-color: var(--shell-purple);
    box-shadow: 0 0 20px rgba(178, 75, 255, 0.4);
    animation: shell-danger 2s infinite;
}

.shell-status.shell-owned {
    border-color: var(--shell-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    animation: shell-compromised 1s infinite;
}

@keyframes shell-warning {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes shell-danger {
    0% { box-shadow: 0 0 20px rgba(178, 75, 255, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 20, 147, 0.6); }
    100% { box-shadow: 0 0 20px rgba(178, 75, 255, 0.4); }
}

@keyframes shell-compromised {
    0% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.8); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.5); }
}

.integrity-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--shell-cyan) 0%, var(--shell-magenta) 100%);
    border-radius: 3px;
    margin-top: 6px;
    transition: width 0.3s ease;
}

.integrity-text {
    font-size: 0.75rem;
    color: var(--shell-cyan);
    font-weight: bold;
    text-transform: uppercase;
}

/* Navigation principale */
.main-nav {
    background: rgba(10, 14, 31, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--shell-cyan);
    background: rgba(0, 229, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--shell-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:before, .nav-link.active:before {
    width: 80%;
}

/* Flag display Lost in the Shell style */
.flag-display {
    background: linear-gradient(45deg, var(--shell-green), var(--shell-cyan));
    color: var(--shell-black);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid var(--shell-green);
    animation: flag-glow 2s infinite alternate;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

@keyframes flag-glow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.4); }
    100% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.7); }
}

.flag-submit {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--shell-black);
    opacity: 0.8;
}

/* Terminal styles */
.terminal-window {
    background: rgba(10, 14, 31, 0.95);
    border: 1px solid var(--shell-green);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: var(--shell-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.terminal-header {
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--shell-green);
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--shell-green);
    border-radius: 8px 8px 0 0;
}

.terminal-body {
    padding: 16px;
    line-height: 1.6;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.terminal-prompt {
    color: var(--shell-cyan);
    margin-right: 8px;
}

.terminal-command {
    color: var(--shell-green);
}

.terminal-output {
    color: #ffffff;
    margin-left: 20px;
    white-space: pre-wrap;
}

.terminal-error {
    color: var(--shell-magenta);
    margin-left: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .shell-status {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .stars {
        display: none; /* Disable stars on mobile for performance */
    }
}

/* Shell scanning effects */
@keyframes shell-scan {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.shell-scan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 229, 255, 0.03),
        transparent
    );
    animation: shell-scan 8s linear infinite;
    pointer-events: none;
}

/* Matrix rain effect (used sparingly) */
@keyframes matrix-rain {
    0% { transform: translateY(-100vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.matrix-char {
    position: absolute;
    color: var(--shell-green);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: matrix-rain 3s linear infinite;
    opacity: 0.7;
}

/* Shell corruption effects */
@keyframes shell-corruption {
    0% { 
        border-color: var(--shell-cyan);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }
    25% { 
        border-color: var(--shell-magenta);
        box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
    }
    50% { 
        border-color: var(--shell-purple);
        box-shadow: 0 0 20px rgba(178, 75, 255, 0.5);
    }
    75% { 
        border-color: var(--shell-gold);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }
    100% { 
        border-color: var(--shell-cyan);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }
}

/* Data breach indicator */
.breach-indicator {
    position: relative;
    overflow: hidden;
}

.breach-indicator::after {
    content: 'BREACH DETECTED';
    position: absolute;
    top: 50%;
    left: -100%;
    transform: translateY(-50%) rotate(-45deg);
    background: var(--shell-magenta);
    color: var(--shell-black);
    padding: 4px 60px;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0.8;
    animation: breach-sweep 4s infinite;
}

@keyframes breach-sweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}
