/* ========================
   INVITE PAGE STYLES
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #8b5cf6;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Bot-specific colors */
    --guard-color: #ef4444;
    --music-color: #8b5cf6;
    --fun-color: #f59e0b;
    --utility-color: #06b6d4;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: none;
}

* {
    cursor: none !important;
}

/* ========================
   CUSTOM CURSOR
   ======================== */
.cursor,
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
}

.cursor {
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: transparent;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ========================
   BACKGROUND ANIMATIONS
   ======================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-60px, 60px) scale(0.95);
    }
}

/* ========================
   BACK BUTTON
   ======================== */
.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(-5px);
}

.back-btn:active {
    transform: translateX(-2px) !important;
    transition: transform 0.1s ease;
}

.back-btn:focus {
    outline: none;
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

/* ========================
   INVITE CONTAINER
   ======================== */
.invite-container {
    width: 100%;
    max-width: 1200px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
   INVITE CARD
   ======================== */
.invite-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 30px;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.invite-card:hover .card-glow {
    opacity: 0.7;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Bot-specific glows */
.card-glow.music-glow {
    background: linear-gradient(135deg, var(--music-color), var(--primary));
}

.card-glow.fun-glow {
    background: linear-gradient(135deg, var(--fun-color), var(--secondary));
}

.card-glow.utility-glow {
    background: linear-gradient(135deg, var(--utility-color), var(--accent));
}

/* ========================
   BOT INFO SECTION
   ======================== */
.bot-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bot-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px currentColor;
    }
}

.bot-avatar-large.guard {
    color: var(--guard-color);
    border-color: var(--guard-color);
}

.bot-avatar-large.music {
    color: var(--music-color);
    border-color: var(--music-color);
}

.bot-avatar-large.fun {
    color: var(--fun-color);
    border-color: var(--fun-color);
}

.bot-avatar-large.utility {
    color: var(--utility-color);
    border-color: var(--utility-color);
}

.bot-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bot-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: -0.5rem;
}

/* ========================
   FEATURES LIST
   ======================== */
.bot-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================
   BOT STATS
   ======================== */
.bot-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 16px;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* ========================
   INVITE ACTION SECTION
   ======================== */
.invite-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 450px;
}

.invite-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.invite-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================
   INVITE BUTTON
   ======================== */
.invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.invite-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.6);
}

.invite-btn:active {
    transform: translateY(-1px) !important;
    transition: transform 0.1s ease;
}

.invite-btn:focus {
    outline: none;
}

.invite-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.invite-btn:hover::before {
    left: 100%;
}

.invite-btn span,
.invite-btn svg {
    position: relative;
    z-index: 1;
}

/* ========================
   PERMISSIONS NOTE
   ======================== */
.permissions-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.permissions-note svg {
    flex-shrink: 0;
    color: var(--secondary);
}

/* ========================
   SUPPORT LINKS
   ======================== */
.support-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.support-link:active {
    transform: translateY(0px) !important;
    transition: transform 0.1s ease;
}

.support-link:focus {
    outline: none;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .invite-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .bot-info {
        align-items: center;
        text-align: center;
    }

    .feature-item {
        justify-content: center;
    }

    .invite-content {
        text-align: center;
    }

    .support-links {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    * {
        cursor: auto !important;
    }

    .back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .invite-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .bot-avatar-large {
        width: 100px;
        height: 100px;
    }

    .bot-avatar-large svg {
        width: 60px;
        height: 60px;
    }

    .bot-title {
        font-size: 2rem;
    }

    .invite-title {
        font-size: 1.5rem;
    }

    .bot-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .bot-features-list {
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .invite-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================
   LOADING ANIMATION
   ======================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.5s ease;
}
