/* NeoBot Dashboard - Main Styles */
/* Theme Colors from constants.js */
:root {
    --primary: #9370DB;        /* Medium Purple - matches landing page */
    --deep-purple: #6D28D9;
    --light-blue: #00CED1;     /* Dark Turquoise/Cyan - matches landing page */
    --dark-bg: #0F0F23;
    --darker-bg: #070714;
    --card-bg: #1a1a2e;
    --hover-bg: #252540;
    --text: #E5E7EB;
    --text-dim: #9CA3AF;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --border: rgba(147, 112, 219, 0.3);  /* Updated to match new primary */
    --glow: rgba(147, 112, 219, 0.6);    /* Updated to match new primary */
}

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

/* Fluent Emoji Styles - Windows 11 Style Emojis */
.fluent-emoji, .emoji-img, .emoji-img-inline {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.emoji-img {
    width: 1.5em;
    height: 1.5em;
    vertical-align: -0.25em;
}

.emoji-img-inline {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    margin-right: 0.2em;
}

html {
    overflow-x: hidden;
    width: 100%;
    background: linear-gradient(180deg, #0A0A10 0%, #0D0E1A 50%, #0F1022 100%);
    filter: contrast(1.08) saturate(1.08) brightness(1.015);
    position: relative;
}

/* Subtle vignette for depth */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

/* Fine grain texture overlay */
html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='6.5' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Extremely subtle neon accent fog - bottom right */
body::before {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(107, 92, 255, 0.04) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
}

/* Animated Starfield Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
}

.stars {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyIiBoZWlnaHQ9IjIiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGRkYiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9zdmc+') repeat;
    animation: twinkle1 300s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzIiBoZWlnaHQ9IjMiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM2MEE1RkEiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPjwvc3ZnPg==') repeat;
    animation: twinkle2 250s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM4QjVDRjYiIGZpbGwtb3BhY2l0eT0iMC4wNiIvPjwvc3ZnPg==') repeat;
    animation: twinkle3 200s linear infinite;
}

@keyframes twinkle1 {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, -50%, 0); }
}

@keyframes twinkle2 {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50%, 50%, 0); }
}

@keyframes twinkle3 {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 50%, 0); }
}

/* Landing Page */
.landing-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-section {
    max-width: 1200px;
    text-align: center;
}

.logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    color: white;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bot-emoji {
    font-size: 3rem;
    margin-top: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.bot-avatar {
    width: 120px;
    height: 120px;
    margin-top: 1rem;
    display: inline-block;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--glow);
    animation: avatarFloat 3s ease-in-out infinite;
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes avatarFloat {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin: 2rem 0 4rem;
}

/* Two-column layout wrapper */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.left-column, .right-column {
    width: 100%;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop two-column layout */
@media (min-width: 900px) {
    .content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        margin-top: 2rem;
    }
    
    .left-column {
        flex: 1;
    }
    
    .right-column {
        flex: 1;
        max-width: 500px;
        padding-top: 4rem;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.12s cubic-bezier(0.2, 0, 0.2, 1), 
                border-color 0.05s linear, 
                box-shadow 0.12s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--light-blue) 100%);
    opacity: 0;
    transition: opacity 0.05s linear;
    will-change: opacity;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.emoji-img {
    width: 3rem;
    height: 3rem;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: emojiWiggle 3s ease-in-out infinite;
}

.emoji-img-inline {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: emojiWiggle 3s ease-in-out infinite;
}

@keyframes emojiWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
    .emoji-img,
    .emoji-img-inline {
        animation: none;
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--deep-purple) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.08s cubic-bezier(0.2, 0, 0.2, 1), 
                box-shadow 0.12s cubic-bezier(0.2, 0, 0.2, 1);
    margin-top: 2rem;
    will-change: transform;
    transform: translateZ(0);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.login-btn svg {
    width: 24px;
    height: 24px;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.05s linear;
    will-change: opacity;
}

.login-btn:hover .btn-glow {
    opacity: 1;
}

.login-secure-text {
    margin-top: 0.75rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-text {
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide-up {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
}

.bounce-in {
    animation: bounceIn 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateZ(0);
    }
}

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

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Custom scrollbar styling for the page */
/* Scrollbar styles moved to dashboard.css for liquid glass effect */
/* Removed to prevent conflicts with dashboard scrollbar */

/* Footer Styles */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links .discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.footer-links .discord-link:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
    color: #5865F2;
    transform: translateY(-2px);
}

/* Discord CTA Section */
.discord-cta {
    max-width: 700px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.discord-cta-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discord-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.discord-cta-icon {
    color: #5865F2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.discord-cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.discord-cta-text {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.discord-join-btn:hover {
    background: #4752C4;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.discord-cta-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.discord-cta-features span {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.08s cubic-bezier(0.2, 0, 0.2, 1), 
                box-shadow 0.12s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}

.community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
}

.community-btn:hover .btn-glow {
    opacity: 1;
}

.community-btn svg {
    width: 24px;
    height: 24px;
}

/* Two-column layout button styling */
.left-column .community-btn {
    margin-top: 2rem;
    width: auto;
    max-width: 350px;
}

.right-column .login-btn {
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.right-column .login-secure-text {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.right-column .discord-cta {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 480px) {
    /* Extra small devices (phones in portrait) */
    
    .logo {
        font-size: 2.5rem !important;
    }
    
    /* Force single column on mobile */
    .content-wrapper {
        flex-direction: column !important;
    }
    
    .left-column, .right-column {
        max-width: 100% !important;
    }
    
    .right-column .login-btn {
        width: 90%;
        max-width: 350px;
        justify-content: center;
    }
    
    .bot-avatar {
        width: 100px;
        height: 100px;
    }
    
    .tagline {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .emoji-img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Stack buttons on very small phones only - centered */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .login-btn,
    .community-btn {
        padding: 0.875rem 2rem !important;
        font-size: 1.1rem !important;
        width: 90%;
        max-width: 350px;
        justify-content: center;
    }
    
    .discord-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .discord-cta-title {
        font-size: 1.5rem;
    }
    
    .site-footer {
        padding: 2rem 1rem;
    }
}

/* Tablet and medium mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .landing-container {
        padding: 1rem 1rem 0 1rem;
    }
    
    .hero-section {
        padding: 0 0.5rem;
    }
    
    .logo-glow {
        width: 200px;
        height: 200px;
    }
    
    .features {
        gap: 1rem;
        padding: 0;
    }
    
    .feature-card {
        transition: transform 0.2s ease;
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    .login-btn,
    .community-btn {
        padding: 1rem 2.5rem;
        font-size: 1.15rem;
        min-height: 54px; /* Touch-friendly size */
    }
    
    .footer-text {
        font-size: 0.85rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    /* Hide Discord CTA card on mobile - already have Join Community button */
    .discord-cta {
        display: none;
    }
    
    .site-footer {
        margin-top: 3rem;
    }
    
    .footer-brand {
        font-size: 1.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-links a {
        font-size: 0.95rem;
        padding: 0.5rem;
        display: inline-block;
        text-align: center;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .landing-container {
        min-height: auto;
    }
    
    .logo {
        font-size: 2.5rem !important;
    }
    
    .bot-avatar {
        width: 80px;
        height: 80px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(155, 89, 182, 0.2);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation; /* Prevents double-tap zoom */
}

/* Better touch scrolling on iOS */
.landing-container,
.config-container {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text selection on buttons */
button,
.btn,
.tab-btn,
.toggle-switch {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
