/* Custom CSS for SEABRE.SHOP Retro Interface */

/* Tailwind Custom Colors */
:root {
    --beige-900: #8B7355;
    --beige-800: #A68B5B;
    --beige-700: #C19A6B;
    --beige-600: #D4AF8C;
    --beige-500: #E6C299;
    --beige-400: #F2D7A3;
    --beige-300: #F5E1B8;
    --beige-200: #F8EBCD;
    --beige-100: #FBF5E2;
    --beige-50: #FDFCF7;
}

/* Scanlines Effect */
.scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
}

/* CRT Monitor Glow Effect */
.crt-glow {
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #10B981; }
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid #10B981;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Retro Button Styles */
.retro-button {
    background: linear-gradient(145deg, #374151, #1F2937);
    border: 2px solid #4B5563;
    color: #10B981;
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.retro-button:hover {
    background: linear-gradient(145deg, #4B5563, #374151);
    border-color: #6B7280;
    color: #34D399;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.retro-button:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Terminal Window Styles */
.terminal-window {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #4B5563;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: linear-gradient(145deg, #374151, #1F2937);
    border-bottom: 1px solid #4B5563;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ASCII Art Styles */
.ascii-art {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    color: #10B981;
}

/* Product Card Styles */
.product-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #4B5563;
    border-radius: 4px;
    padding: 16px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Skill Badge Styles */
.skill-badge {
    background: linear-gradient(145deg, #1F2937, #111827);
    border: 1px solid #374151;
    color: #10B981;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin: 2px;
    display: inline-block;
}

/* Music Note Animation */
@keyframes music-note {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.music-note {
    animation: music-note 2s ease-in-out infinite;
}

/* Boot Sequence Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.boot-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.boot-slide-up {
    animation: slideUp 0.8s ease-out;
}

#mobile-continue-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ascii-art {
        font-size: 8px;
    }
    
    .terminal-window {
        margin: 4px;
    }
    
    .retro-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Mobile-specific adjustments */
    body {
        font-size: 14px;
    }
    
    #main-interface {
        padding: 0;
    }
    
    .absolute.inset-4 {
        inset: 2px;
    }
    
    .absolute.inset-2 {
        inset: 1px;
    }
    
    .p-6 {
        padding: 1rem;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    .text-sm {
        font-size: 0.75rem;
    }
    
    .text-xs {
        font-size: 0.625rem;
    }
    
    /* Make command buttons more touch-friendly */
    button {
        min-height: 44px;
        padding: 8px 12px;
    }
    
    /* Adjust boot sequence for mobile */
    #boot-sequence pre {
        font-size: 6px;
        line-height: 1.2;
    }
    
    #boot-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        font-size: 6px;
    }
    
    #boot-sequence pre {
        font-size: 4px;
    }
    
    .p-6 {
        padding: 0.75rem;
    }
    
    .text-lg {
        font-size: 0.875rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Glitch Effect for Easter Eggs */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    animation: glitch 0.3s ease-in-out;
}

/* Matrix Rain Effect (for special sections) */
@keyframes matrix-rain {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

.matrix-rain {
    position: absolute;
    color: #10B981;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    opacity: 0.1;
    animation: matrix-rain 10s linear infinite;
    pointer-events: none;
}
