/* ==========================================================================
   UltraPlugins - Minimalist & Clean Design System
   ========================================================================== */
:root {
    --bg-gray: #121316;
    --card-bg: #181a1f;
    --card-border: #262930;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    --color-blue: #0062ff;
    --color-blue-light: #00d0ff;
    --color-blue-subtle: #38bdf8;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;

    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Ambient Background: Soft Lights (Blue & Light Blue) --- */
.ambient-light, .community-light {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Hero Section Lights (Large Corner Lighting) */
.light-cyan {
    top: -120px;
    left: -120px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 208, 255, 0.20) 0%, rgba(0, 208, 255, 0.06) 45%, transparent 70%);
}

.light-blue {
    top: auto;
    bottom: -120px;
    right: -120px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.18) 0%, rgba(0, 98, 255, 0.05) 50%, transparent 70%);
}

/* Community Section Lights */
.light-cyan-bottom {
    top: -80px;
    left: -80px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 208, 255, 0.16) 0%, rgba(0, 208, 255, 0.04) 55%, transparent 75%);
}

.light-blue-bottom {
    bottom: -80px;
    right: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.16) 0%, rgba(0, 98, 255, 0.03) 60%, transparent 75%);
}

/* Mobile & Tablet optimizations for instantaneous, buttery smooth 120fps rendering */
@media (max-width: 1024px) {
    .ambient-light, .community-light {
        filter: none !important;
        will-change: auto !important;
        transform: none !important;
    }
    .light-cyan, .light-blue {
        width: 320px !important;
        height: 320px !important;
        opacity: 0.85;
    }
    .light-cyan-bottom, .light-blue-bottom {
        width: 280px !important;
        height: 280px !important;
        opacity: 0.85;
    }
    .animate-sweep-down,
    .animate-sweep-right-delayed {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Minimal Navbar --- */
.navbar-minimal {
    background: rgba(18, 19, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar Link Glowing Blue Line on Hover */
.nav-link {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00d0ff, #0066ff);
    box-shadow: 0 0 10px rgba(0, 208, 255, 0.8);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- ENTRANCE ANIMATIONS (Sequential Slower Sweep) --- */

/* 1. Downward Vertical Sweep for Title, Subtitle, Buttons */
@keyframes sweepDown {
    0% {
        opacity: 0;
        transform: translateY(-34px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-sweep-down {
    animation: sweepDown 1.0s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.24s; }
.delay-300 { animation-delay: 0.38s; }
.delay-400 { animation-delay: 0.52s; }
.delay-500 { animation-delay: 0.66s; }

/* 2. Left-to-Right Sweep for Logo (Smoothly enters right after buttons) */
@keyframes sweepRight {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-sweep-right-delayed {
    animation: sweepRight 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}


/* --- Hero Typography (Fix: Prevents letter 'g' from clipping) --- */
.hero-gradient-text {
    background: linear-gradient(135deg, #00d0ff 0%, #0088ff 50%, #0050e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
    line-height: 1.22;
}

.font-heading {
    font-family: var(--font-heading);
}

/* --- Logo Wrapper (Clean, subtle shadow) --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-4px);
}

/* --- BUTTONS --- */

/* 1. "Our Plugins" Button */
.btn-our-plugins {
    background: linear-gradient(135deg, #00c0ff 0%, #0066ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

/* Soft backlight glow */
.btn-glow-aura {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.6) 0%, rgba(0, 102, 255, 0) 70%);
    filter: blur(12px);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-our-plugins:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-our-plugins:hover .btn-glow-aura {
    opacity: 1;
    transform: scale(1.15);
}

.btn-our-plugins:active {
    transform: translateY(-1px);
}

/* 2. "Join Discord" Transparent Button */
.btn-join-discord {
    background: transparent;
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    cursor: pointer;
}

.btn-join-discord:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    color: #ffffff;
}

.btn-join-discord:active {
    transform: translateY(-1px);
}

/* 3. Community Discord Solid Button */
.btn-join-discord-solid {
    background: linear-gradient(135deg, #00c0ff 0%, #0066ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
    cursor: pointer;
}

.btn-join-discord-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.45);
}

.btn-join-discord-solid:active {
    transform: translateY(-1px);
}

/* --- PLUGINS SECTION (Gradient from #000000 to #0D0D0D from top to bottom) --- */
.plugins-section {
    background: linear-gradient(180deg, #000000 0%, #0D0D0D 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- OVERLAPPING TOP-BORDER LOGO PLUGIN CARDS (UltraPluginsWeb Style) --- */
.plugin-card {
    background-color: var(--plugin-bg, #14161b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 420px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.plugin-card:hover {
    transform: translateY(-6px);
    border-color: var(--plugin-hover-color, #00d0ff);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 35px var(--plugin-hover-glow, rgba(0, 208, 255, 0.28));
}

.plugin-card-badge-logo {
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.plugin-card:hover .plugin-card-badge-logo {
    transform: scale(1.05);
}

.plugin-icon-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- MODAL --- */
#pluginModal.active {
    display: flex;
    opacity: 1;
}

#pluginModal.active .modal-card {
    transform: scale(1);
}

/* ==========================================================================
   Authentication Suite Styles (Login & Register)
   ========================================================================== */

.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 208, 255, 0.05);
}

/* OAuth Buttons */
.social-oauth-btn {
    background-color: #14161a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.social-oauth-btn:hover {
    transform: translateY(-2px);
    background-color: #1a1d24;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.social-oauth-btn:active {
    transform: translateY(0);
}

/* Input Fields */
.input-minimal {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-minimal:focus {
    border-color: #00d0ff;
    box-shadow: 0 0 0 3px rgba(0, 208, 255, 0.15);
    background-color: #121418;
}

/* Category Filter Buttons */
.category-filter-btn {
    cursor: pointer;
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #00c0ff 0%, #0066ff 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.35);
}

/* Category Badges */
.badge-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 9999px;
}

.badge-premium {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-free {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-addons {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Admin Dashboard Elements */
.admin-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.admin-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

/* Submit Primary Button */
.btn-auth-primary {
    cursor: pointer;
}

.btn-auth-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-auth-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}


