/* PUFF N PURL - Cyberpunk Neon Theme - Base Styles */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Valorax-style font using Orbitron */
@font-face {
    font-family: 'Valorax';
    src: local('Orbitron');
    font-weight: 900;
}

:root {
    --cyber-purple: #b400ff;
    --cyber-pink: #ff00ff;
    --cyber-cyan: #00f3ff;
    --cyber-green: #00ff41;
    --cyber-orange: #ff6600;
    --cyber-yellow: #ffff00;
    --cyber-bg: #0a0e27;
    --cyber-card: #1a1f3a;
    --cyber-text: #e0e0e0;
    --cyber-text-dim: #a0a0a0;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--cyber-bg);
    color: var(--cyber-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated cyberpunk background with image support - More visible */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg,
        rgba(10, 14, 39, 0.35) 0%,
        rgba(26, 10, 46, 0.32) 25%,
        rgba(22, 33, 62, 0.38) 50%,
        rgba(10, 14, 39, 0.35) 75%),
        url('/static/images/cyber-bg.jpg') center/cover no-repeat fixed;
    background-size: 320% 320%, cover;
    animation: cyberGradient 16s ease-in-out infinite;
    z-index: -2;
}

.cyber-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes cyberGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash {
    padding: 1rem 1.5rem;
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--cyber-card);
    border: 1px solid var(--cyber-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.flash-success {
    border-color: var(--cyber-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.flash-error {
    border-color: var(--cyber-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.flash-close {
    background: none;
    border: none;
    color: var(--cyber-text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Navigation */
.navbar {
    background: rgba(26, 31, 58, 0.9);
    border-bottom: 2px solid var(--cyber-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: none;
    margin: 0 auto;
    padding: 0.75rem 1rem; /* compact on mobile */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
@media (min-width: 1000px) {
    .nav-container {
        padding: 1rem 2rem 1rem 210px; /* wide layout only on desktop */
    }
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Valorax', 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg,
        var(--cyber-cyan) 0%,
        var(--cyber-purple) 25%,
        var(--cyber-pink) 50%,
        var(--cyber-orange) 75%,
        var(--cyber-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.7),
                 0 0 60px rgba(255, 0, 255, 0.5),
                 0 0 80px rgba(180, 0, 255, 0.3);
    letter-spacing: 3px;
    animation: colorShift 5s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1.2);
    }
    50% {
        filter: hue-rotate(30deg) brightness(1.5);
    }
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--cyber-cyan);
    letter-spacing: 3px;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-user {
    color: var(--cyber-green);
    font-weight: 600;
}

.nav-link {
    color: var(--cyber-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

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

.nav-link.active {
    color: var(--cyber-cyan);
    background: rgba(0, 243, 255, 0.2);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.7);
}

/* Main Content */
.page-wrapper {
    min-height: calc(100vh - 80px);
    padding: 2rem;
    max-width: none;
    margin: 0;
}

.main-page-title {
    font-family: 'Valorax', 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
    letter-spacing: 3px;
}

/* mobile */
@media (max-width: 820px) {
    .main-page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        letter-spacing: 2px;
    }
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 5rem auto;
    padding: 3rem;
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid #00f3ff; /* Hardcoded cyan for testing */
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
}

.auth-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #00f3ff; /* Hardcoded cyan for testing */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-input {
    padding: 1rem;
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid var(--cyber-cyan);
    border-radius: 8px;
    color: var(--cyber-text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--cyber-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.form-textarea {
    padding: 1rem;
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid var(--cyber-cyan);
    border-radius: 8px;
    color: var(--cyber-text);
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--cyber-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.link-primary {
    color: var(--cyber-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link-primary:hover {
    color: var(--cyber-pink);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-purple));
    color: black;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(26, 31, 58, 0.8);
    color: var(--cyber-text);
    border: 2px solid var(--cyber-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--cyber-pink);
    color: var(--cyber-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--cyber-green), var(--cyber-cyan));
    color: black;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
    filter: brightness(1.1);
}

.btn-danger {
    background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-orange));
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    filter: brightness(1.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}