/* ============================================
   BOT.CSS - Discord Bot Page
   KCenter Design System v2.0
   ============================================ */

/* ============================================
   IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   VARIABLES LOCALES
   ============================================ */
:root {
    /* Discord Brand Colors */
    --discord-blurple: #5865f2;
    --discord-dark-blurple: #4752c4;
    --discord-darker-blurple: #3b48cc;
    --discord-purple: #7289da;

    /* Bot Page Specific */
    --bot-gradient-start: rgba(34, 36, 58, 0.95);
    --bot-gradient-end: rgba(30, 32, 52, 0.98);
    --bot-border-glow: rgba(180, 198, 255, 0.15);
    --bot-text-light: #b4c6ff;
    --bot-text-lighter: #a3b3d9;
    --bot-bg-feature: rgba(22, 27, 41, 0.6);
    --bot-code-bg: rgba(22, 27, 41, 0.8);
    --bot-code-color: #8bc7ff;

    /* Shadows */
    --bot-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(88, 101, 242, 0.08);
    --bot-shadow-hover: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 100px rgba(88, 101, 242, 0.12);
    --bot-logo-shadow: 0 12px 40px rgba(88, 101, 242, 0.3), 0 0 0 4px rgba(88, 101, 242, 0.1);
    --bot-button-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.bot-main {
    min-height: calc(100vh - 80px);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.bot-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
}

/* Hero Background */
.bot-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 50% 50%,
            rgba(88, 101, 242, 0.08) 0%,
            transparent 60%
    );
    animation: heroPulse 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Hero Particles */
.bot-hero-particles {
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(88, 101, 242, 0.04) 0%, transparent 50%);
    animation: particlesFloat 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes particlesFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(-20px, -30px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-40px, -15px) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translate(30px, -20px) rotate(270deg);
        opacity: 0.7;
    }
}

/* ============================================
   BOT PROMO CARD
   ============================================ */
.bot-promo-card {
    position: relative;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 50px;
    background: linear-gradient(135deg, var(--bot-gradient-start) 0%, var(--bot-gradient-end) 100%);
    border-radius: 24px;
    border: 1px solid var(--bot-border-glow);
    box-shadow:
            var(--bot-shadow-xl),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: cardEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bot-shadow-hover);
    border-color: rgba(180, 198, 255, 0.25);
}

/* Card Glow Effect */
.bot-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle at center,
            rgba(88, 101, 242, 0.1) 0%,
            transparent 50%
    );
    animation: glowRotate 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   HEADER SECTION
   ============================================ */
.bot-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Logo Wrapper */
.bot-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 36px;
}

.bot-logo {
    width: 130px;
    height: 130px;
    border-radius: 30px;
    box-shadow: var(--bot-logo-shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--discord-blurple) 0%, var(--discord-darker-blurple) 100%);
    padding: 4px;
}

.bot-logo:hover {
    transform: translateY(-12px) scale(1.08) rotate(5deg);
    box-shadow:
            0 20px 60px rgba(88, 101, 242, 0.5),
            0 0 0 6px rgba(88, 101, 242, 0.2),
            0 0 100px rgba(88, 101, 242, 0.4);
}

/* Logo Ring Animation */
.bot-logo-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--discord-blurple);
    border-radius: 34px;
    opacity: 0;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

/* Title */
.bot-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.bot-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--bot-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(88, 101, 242, 0.4);
    animation: titleShimmer 4s ease-in-out infinite alternate;
}

@keyframes titleShimmer {
    0% {
        filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(88, 101, 242, 0.7));
    }
}

.bot-title-highlight {
    color: var(--discord-blurple);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
}

/* Subtitle */
.bot-subtitle {
    font-size: 1.2rem;
    color: var(--bot-text-lighter);
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   FEATURES BADGES
   ============================================ */
.bot-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.bot-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bot-feature-badge:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.feature-icon {
    font-size: 1.3rem;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bot-text-light);
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */
.bot-description {
    background: var(--bot-bg-feature);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 48px;
    border: 1px solid rgba(180, 198, 255, 0.08);
    box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.bot-description:hover {
    background: rgba(22, 27, 41, 0.75);
    border-color: rgba(180, 198, 255, 0.15);
    box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bot-description-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bot-description-item:last-child {
    margin-bottom: 0;
}

.description-bullet {
    color: var(--bot-code-color);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.description-text {
    font-size: 1.05rem;
    color: var(--bot-text-light);
    line-height: 1.8;
    margin: 0;
}

/* Command Code */
.bot-command {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bot-code-bg);
    color: var(--bot-code-color);
    border: 1px solid rgba(139, 199, 255, 0.2);
    border-radius: 8px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.bot-command:hover {
    background: rgba(22, 27, 41, 0.95);
    border-color: rgba(139, 199, 255, 0.4);
    color: #a8d8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 199, 255, 0.3);
}

/* ============================================
   CTA SECTION
   ============================================ */
.bot-cta {
    text-align: center;
}

/* Add Bot Button */
.add-bot-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--discord-blurple) 0%, var(--discord-dark-blurple) 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: var(--bot-button-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.add-bot-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
            0 14px 40px rgba(88, 101, 242, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #6b75f5 0%, #5562d0 100%);
    color: #ffffff;
    text-decoration: none;
}

.add-bot-btn:active {
    transform: translateY(-3px) scale(0.98);
}

/* Button Icon */
.btn-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.add-bot-btn:hover .btn-icon {
    transform: rotate(145deg) scale(1.1);
}

/* Button Shine Effect */
.btn-shine {
    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.6s ease;
}

.add-bot-btn:hover .btn-shine {
    left: 100%;
}

/* CTA Info */
.bot-cta-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--bot-text-lighter);
    font-weight: 500;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets (1024px and below) */
@media (max-width: 1024px) {
    .bot-promo-card {
        padding: 50px 40px;
        max-width: 800px;
    }

    .bot-title {
        font-size: 2.2rem;
    }

    .bot-logo {
        width: 120px;
        height: 120px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .bot-hero {
        padding: 100px 1.5rem 60px;
        min-height: auto;
    }

    .bot-promo-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .bot-logo {
        width: 110px;
        height: 110px;
        border-radius: 26px;
        margin-bottom: 28px;
    }

    .bot-title {
        font-size: 1.9rem;
    }

    .bot-subtitle {
        font-size: 1.1rem;
    }

    .bot-features {
        gap: 12px;
    }

    .bot-feature-badge {
        padding: 10px 16px;
    }

    .feature-icon {
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 0.85rem;
    }

    .bot-description {
        padding: 26px 24px;
        margin-bottom: 40px;
    }

    .description-text {
        font-size: 1rem;
    }

    .add-bot-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .bot-hero {
        padding: 90px 1rem 50px;
    }

    .bot-promo-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .bot-logo {
        width: 100px;
        height: 100px;
        border-radius: 24px;
        margin-bottom: 24px;
    }

    .bot-title {
        font-size: 1.6rem;
        gap: 6px;
    }

    .bot-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .bot-features {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .bot-feature-badge {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .bot-description {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .bot-description-item {
        gap: 12px;
    }

    .description-bullet {
        font-size: 1.2rem;
    }

    .description-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bot-command {
        padding: 5px 10px;
        font-size: 0.88rem;
    }

    .add-bot-btn {
        padding: 16px 32px;
        font-size: 1rem;
        gap: 10px;
    }

    .btn-icon {
        font-size: 1.2rem;
    }

    .bot-cta-info {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .bot-promo-card {
        padding: 28px 20px;
    }

    .bot-title {
        font-size: 1.4rem;
    }

    .bot-subtitle {
        font-size: 0.95rem;
    }

    .description-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus Visible */
.add-bot-btn:focus-visible {
    outline: 3px solid rgba(88, 101, 242, 0.6);
    outline-offset: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bot-promo-card {
        border-width: 2px;
        border-color: rgba(180, 198, 255, 0.4);
    }

    .add-bot-btn {
        border-width: 3px;
        border-color: #ffffff;
    }

    .bot-description {
        border-width: 2px;
    }

    .bot-feature-badge {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bot-card-glow,
    .bot-hero-particles,
    .bot-hero-bg,
    .bot-logo-ring {
        animation: none !important;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .bot-promo-card {
        background: linear-gradient(135deg, rgba(34, 36, 58, 0.98) 0%, rgba(30, 32, 52, 1) 100%);
    }

    .bot-description {
        background: rgba(22, 27, 41, 0.75);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sidebar-item-active {
    background: rgba(88, 101, 242, 0.1);
    color: var(--discord-blurple);
}

/* Loading State */
.bot-promo-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bot-promo-card.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: loadingSweep 1.5s infinite;
}

@keyframes loadingSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
