/* Premium Styling for Tiago's Maintenance Page */

:root {
    --bg-dark: #06040b;
    --bg-panel: rgba(14, 10, 24, 0.55);
    --border-color: rgba(255, 255, 255, 0.06);
    
    /* Neon glow colors */
    --neon-cyan: #00f0ff;
    --neon-purple: #9d00ff;
    --neon-orange: #ff8800;
    --neon-green: #00ff66;
    
    --text-primary: #f2edf8;
    --text-secondary: #a39eb8;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Grids & Ambient Lights */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: -30%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.09) 0%, rgba(0, 240, 255, 0.04) 35%, transparent 65%);
    z-index: -1;
    pointer-events: none;
    animation: slow-glow 15s infinite alternate ease-in-out;
}

@keyframes slow-glow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(2%, 4%) scale(1.05);
    }
}

/* Custom Cursor Glow */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cursor-glow {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 65%);
    border-radius: 50%;
}

/* CSS Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-upwards var(--d) infinite linear;
}

@keyframes float-upwards {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--x-drift));
        opacity: 0;
    }
}

/* Text and Neon effects */
.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
}

.neon-text-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 5px rgba(255, 136, 0, 0.6), 0 0 15px rgba(255, 136, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(157, 0, 255, 0.15));
}

/* Header style */
.header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 4, 11, 0.75);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .version {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: monospace;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.orange {
    background: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
    animation: pulse 2s infinite;
}

.status-dot.green {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse-green 1.5s infinite;
}

.status-text {
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 136, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 136, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 136, 0, 0);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 255, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
    }
}

/* Layout container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 20px 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

.maintenance-section {
    position: relative;
    border-radius: 28px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
}

.maintenance-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(255, 136, 0, 0.1);
    color: var(--neon-orange);
    border: 1px solid rgba(255, 136, 0, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.badge.complete {
    background: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
    border-color: rgba(0, 255, 102, 0.25);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Console Box */
.console-box {
    position: relative;
    z-index: 2;
    background: #09060f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.console-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    justify-content: space-between;
}

.console-controls {
    display: flex;
    gap: 8px;
}

.console-controls .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.console-controls .dot.red { background: #ff5f56; }
.console-controls .dot.yellow { background: #ffbd2e; }
.console-controls .dot.green { background: #27c93f; }

.console-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.console-speed-btn {
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    color: var(--neon-cyan);
    font-family: monospace;
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.console-speed-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.console-speed-btn.boosted {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
}

.console-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Progress bar inside console */
.upgrade-progress-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.progress-label {
    color: var(--text-secondary);
}

.progress-val {
    color: var(--neon-cyan);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 5px;
    transition: width 0.5s ease-out;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-bar-stripes 1.5s infinite linear;
}

@keyframes progress-bar-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Console logs */
.log-terminal {
    height: 140px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--neon-cyan);
    background: rgba(0, 0, 0, 0.3);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    scroll-behavior: smooth;
}

/* Custom scrollbar for terminal */
.log-terminal::-webkit-scrollbar {
    width: 6px;
}
.log-terminal::-webkit-scrollbar-track {
    background: transparent;
}
.log-terminal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.log-terminal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.log-line {
    margin-bottom: 6px;
    opacity: 0.9;
    animation: fade-in-log 0.2s ease-out forwards;
}

@keyframes fade-in-log {
    0% { transform: translateY(4px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0.9; }
}

.log-line.text-muted {
    color: var(--text-secondary);
}

.log-line.text-success {
    color: var(--neon-green);
}

.log-line.text-warning {
    color: var(--neon-orange);
}

/* Notify Card */
.notify-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.notify-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.notify-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    display: flex;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
}

.input-group input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: var(--neon-cyan);
    color: #06040a;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    background: #00e0ef;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-feedback {
    margin-top: 14px;
    font-size: 0.85rem;
    min-height: 20px;
    font-weight: 600;
}

.form-feedback.success {
    color: var(--neon-green);
    animation: pulse-green-text 1.5s infinite alternate;
}

.form-feedback.error {
    color: #ff5f56;
}

/* Sound play shortcut */
.sound-pad-container {
    display: flex;
    justify-content: center;
    z-index: 2;
}

.sound-pad {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sound-pad:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: scale(1.03);
}

.sound-pad:active {
    transform: scale(0.97);
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 4, 11, 0.9);
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer .copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    font-family: monospace;
}

/* Responsiveness */
@media (max-width: 768px) {
    .maintenance-section {
        padding: 40px 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 16px;
    }
}
