/* NFRAKODE Complete Site Takeover Theme */
/* Authentic cyberpunk aesthetics with gradients, overlays, and CRT effects */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    /* NFRAKODE Color Palette */
    --nfra-bg-primary: #0d021a;
    --nfra-bg-secondary: #1a0533;
    --nfra-bg-tertiary: #2d1b69;
    --nfra-accent-pink: #ff00c1;
    --nfra-accent-cyan: #00ffff;
    --nfra-accent-purple: #8a2be2;
    --nfra-accent-green: #00ff41;
    --nfra-text-primary: #ffffff;
    --nfra-text-secondary: #e0e0e0;
    --nfra-text-muted: #b0b0b0;
    --nfra-border: rgba(255, 0, 193, 0.3);
    --nfra-shadow: rgba(255, 0, 193, 0.5);
    
    /* Gradients */
    --nfra-gradient-primary: linear-gradient(135deg, #ff00c1, #8a2be2, #00ffff);
    --nfra-gradient-bg: linear-gradient(45deg, #0d021a 0%, #1a0533 50%, #2d1b69 100%);
    --nfra-gradient-card: linear-gradient(135deg, rgba(255, 0, 193, 0.1) 0%, rgba(138, 43, 226, 0.1) 50%, rgba(0, 255, 255, 0.1) 100%);
    --nfra-gradient-border: linear-gradient(45deg, #ff00c1, #8a2be2, #00ffff, #00ff41);
    
    /* Animations */
    --nfra-glow-anim: nfraGlow 2s ease-in-out infinite alternate;
    --nfra-flicker-anim: nfraFlicker 0.15s infinite linear;
    --nfra-pulse-anim: nfraPulse 3s ease-in-out infinite;
}

/* Global NFRAKODE Styles */
body.nfrakode-mode {
    font-family: 'Chakra Petch', monospace !important;
    background: var(--nfra-gradient-bg) !important;
    color: var(--nfra-text-primary) !important;
    position: relative;
    overflow-x: hidden;
}

body.nfrakode-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 193, 0.03) 2px,
            rgba(255, 0, 193, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.02) 2px,
            rgba(0, 255, 255, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1000;
    animation: var(--nfra-flicker-anim);
}

/* CRT Scanlines with proper thickness */
body.nfrakode-mode::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(255, 0, 193, 0.1) 1px,
        rgba(255, 0, 193, 0.1) 2px,
        transparent 3px,
        transparent 6px
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0.8;
    animation: var(--nfra-flicker-anim);
}

/* Headers and Navigation */
body.nfrakode-mode header,
body.nfrakode-mode .site-header {
    background: linear-gradient(135deg, rgba(13, 2, 26, 0.95) 0%, rgba(26, 5, 51, 0.95) 100%) !important;
    border-bottom: 2px solid var(--nfra-accent-pink) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(255, 0, 193, 0.3) !important;
}

body.nfrakode-mode .nav-link {
    color: var(--nfra-text-primary) !important;
    text-shadow: 0 0 10px var(--nfra-accent-cyan) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

body.nfrakode-mode .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nfra-gradient-primary);
    transition: width 0.3s ease;
}

body.nfrakode-mode .nav-link:hover,
body.nfrakode-mode .nav-link:focus {
    color: var(--nfra-accent-pink) !important;
    text-shadow: 0 0 20px var(--nfra-accent-pink) !important;
    transform: translateY(-2px) !important;
}

body.nfrakode-mode .nav-link:hover::before {
    width: 100%;
}

/* Logo/Brand */
body.nfrakode-mode .brand,
body.nfrakode-mode .site-title {
    background: var(--nfra-gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 30px var(--nfra-accent-pink) !important;
    animation: var(--nfra-glow-anim) !important;
}

/* Cards and Content Blocks */
body.nfrakode-mode .card,
body.nfrakode-mode .bg-gray-800,
body.nfrakode-mode .bg-gray-900,
body.nfrakode-mode .content-block {
    background: var(--nfra-gradient-card) !important;
    border: 1px solid var(--nfra-border) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 
        0 8px 32px rgba(255, 0, 193, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.nfrakode-mode .card::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: left 0.5s ease;
}

body.nfrakode-mode .card:hover::before {
    left: 100%;
}

body.nfrakode-mode .card:hover {
    border-color: var(--nfra-accent-pink) !important;
    box-shadow: 
        0 12px 48px rgba(255, 0, 193, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-4px) !important;
}

/* Headings */
body.nfrakode-mode h1,
body.nfrakode-mode h2,
body.nfrakode-mode h3,
body.nfrakode-mode h4,
body.nfrakode-mode h5,
body.nfrakode-mode h6,
body.nfrakode-mode .heading {
    background: var(--nfra-gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 20px rgba(255, 0, 193, 0.8) !important;
    font-weight: 600 !important;
    position: relative !important;
}

body.nfrakode-mode h1 {
    font-size: 3rem !important;
    animation: var(--nfra-pulse-anim) !important;
}

/* Buttons */
body.nfrakode-mode .btn,
body.nfrakode-mode button,
body.nfrakode-mode input[type="submit"],
body.nfrakode-mode .button {
    background: var(--nfra-gradient-primary) !important;
    border: 2px solid var(--nfra-accent-pink) !important;
    color: white !important;
    font-family: 'Chakra Petch', monospace !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 0, 193, 0.3) !important;
}

body.nfrakode-mode .btn::before,
body.nfrakode-mode button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

body.nfrakode-mode .btn:hover,
body.nfrakode-mode button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 0, 193, 0.5) !important;
    border-color: var(--nfra-accent-cyan) !important;
}

body.nfrakode-mode .btn:hover::before,
body.nfrakode-mode button:hover::before {
    left: 100%;
}

/* Forms */
body.nfrakode-mode input[type="text"],
body.nfrakode-mode input[type="email"],
body.nfrakode-mode input[type="password"],
body.nfrakode-mode textarea,
body.nfrakode-mode select {
    background: rgba(26, 5, 51, 0.8) !important;
    border: 1px solid var(--nfra-border) !important;
    color: var(--nfra-text-primary) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

body.nfrakode-mode input:focus,
body.nfrakode-mode textarea:focus,
body.nfrakode-mode select:focus {
    border-color: var(--nfra-accent-pink) !important;
    box-shadow: 0 0 20px rgba(255, 0, 193, 0.3) !important;
    outline: none !important;
}

/* Music Player */
body.nfrakode-mode .music-player {
    background: var(--nfra-gradient-card) !important;
    border: 2px solid var(--nfra-accent-pink) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 12px 48px rgba(255, 0, 193, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body.nfrakode-mode .track-title {
    color: var(--nfra-accent-cyan) !important;
    text-shadow: 0 0 15px var(--nfra-accent-cyan) !important;
}

body.nfrakode-mode .track-artist {
    color: var(--nfra-text-secondary) !important;
}

/* Links */
body.nfrakode-mode a {
    color: var(--nfra-accent-cyan) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

body.nfrakode-mode a:hover {
    color: var(--nfra-accent-pink) !important;
    text-shadow: 0 0 15px var(--nfra-accent-pink) !important;
}

/* Tables */
body.nfrakode-mode table {
    background: rgba(26, 5, 51, 0.6) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

body.nfrakode-mode th {
    background: var(--nfra-gradient-primary) !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

body.nfrakode-mode td {
    border-bottom: 1px solid var(--nfra-border) !important;
}

body.nfrakode-mode tr:hover {
    background: rgba(255, 0, 193, 0.1) !important;
}

/* Footer */
body.nfrakode-mode footer {
    background: linear-gradient(135deg, rgba(13, 2, 26, 0.95) 0%, rgba(26, 5, 51, 0.95) 100%) !important;
    border-top: 2px solid var(--nfra-accent-cyan) !important;
    backdrop-filter: blur(10px) !important;
}

/* Social Icons */
body.nfrakode-mode .social-icon {
    color: var(--nfra-accent-cyan) !important;
    transition: all 0.3s ease !important;
}

body.nfrakode-mode .social-icon:hover {
    color: var(--nfra-accent-pink) !important;
    text-shadow: 0 0 20px var(--nfra-accent-pink) !important;
    transform: scale(1.2) !important;
}

/* Special Text Effects */
body.nfrakode-mode .glitch-text {
    position: relative !important;
    color: var(--nfra-accent-pink) !important;
    text-shadow: 0 0 20px var(--nfra-accent-pink) !important;
}

body.nfrakode-mode .cyber-text {
    background: var(--nfra-gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: var(--nfra-glow-anim) !important;
}

/* Scrollbar */
body.nfrakode-mode::-webkit-scrollbar {
    width: 12px !important;
}

body.nfrakode-mode::-webkit-scrollbar-track {
    background: var(--nfra-bg-primary) !important;
}

body.nfrakode-mode::-webkit-scrollbar-thumb {
    background: var(--nfra-gradient-primary) !important;
    border-radius: 6px !important;
}

body.nfrakode-mode::-webkit-scrollbar-thumb:hover {
    background: var(--nfra-accent-pink) !important;
}

/* Animations */
@keyframes nfraGlow {
    0% { text-shadow: 0 0 20px var(--nfra-accent-pink); }
    100% { text-shadow: 0 0 30px var(--nfra-accent-pink), 0 0 40px var(--nfra-accent-cyan); }
}

@keyframes nfraFlicker {
    0%, 90%, 100% { opacity: 1; }
    92%, 98% { opacity: 0.8; }
    94%, 96% { opacity: 0.9; }
}

@keyframes nfraPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body.nfrakode-mode h1 {
        font-size: 2rem !important;
    }
    
    body.nfrakode-mode .card {
        margin: 8px !important;
    }
    
    body.nfrakode-mode .btn,
    body.nfrakode-mode button {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Print Styles */
@media print {
    body.nfrakode-mode::before,
    body.nfrakode-mode::after {
        display: none !important;
    }
    
    body.nfrakode-mode {
        background: white !important;
        color: black !important;
    }
}