/* Modern Visual Enhancements for Piston */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors - Enhanced Modern Dark */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #262626;
    --shadow-light: rgba(0, 0, 0, 0.5);
    --shadow-medium: rgba(0, 0, 0, 0.7);
    --shadow-strong: rgba(0, 0, 0, 0.9);
    --card-glow: rgba(99, 102, 241, 0.1);
    --hover-glow: rgba(99, 102, 241, 0.2);
    
    /* Brand Colors - Modern palette */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --discord-color: #5865f2;
    --discord-hover: #4752c4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #0891b2);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    
    /* Spacing */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-hover: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    padding: 0;
    cursor: default;
}

/* Enhanced Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99,102,241,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139,92,246,0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(6,182,212,0.04) 0%, transparent 50%),
        linear-gradient(90deg, rgba(99,102,241,0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(99,102,241,0.12) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0, center, center;
}

@keyframes gridPulse {
    0%, 100% { 
        opacity: 0.05;
        transform: scale(1);
    }
    50% { 
        opacity: 0.08;
        transform: scale(1.02);
    }
}

/* Enhanced Animated Grid Pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: 
        linear-gradient(45deg, rgba(99,102,241,0.3) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(139,92,246,0.2) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px;
    background-position: center;
    animation: gridPulse 15s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content wrapper */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    padding-top: 120px;
}

.hero::before {
    content: none;
}

.hero::after {
    content: none;
}

/* Hero Background Grid */
.hero-background {
    display: none;
}

.brand-highlight {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.brand-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0.1;
    border-radius: 4px;
    z-index: -1;
    animation: brandGlow 2s ease-in-out infinite alternate;
}

@keyframes brandGlow {
    0% { opacity: 0.1; }
    100% { opacity: 0.2; }
}

/* Enhanced Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 4rem 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%, #f8fafc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diagonalSwipe 3s ease-in-out infinite;
    letter-spacing: -0.02em;
    line-height: 0.9;
    position: relative;
}

.hero-title::after {
    content: none;
}

@keyframes diagonalSwipe {
    0% { 
        background-position: -200% -200%;
    }
    50% { 
        background-position: 200% 200%;
    }
    100% { 
        background-position: -200% -200%;
    }
}

.hero-title .accent {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 25%, #7dd3fc 50%, #a78bfa 75%, #818cf8 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diagonalSwipeAccent 3.5s ease-in-out infinite;
}

@keyframes diagonalSwipeAccent {
    0% { 
        background-position: -200% -200%;
    }
    50% { 
        background-position: 200% 200%;
    }
    100% { 
        background-position: -200% -200%;
    }
}

.hero-subtitle-large {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #94a3b8, #a78bfa, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
    animation: subtitleGlow 3s ease-in-out infinite alternate;
    letter-spacing: -0.01em;
    line-height: 1.1;
    position: relative;
}

.hero-subtitle-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 8px;
    z-index: -1;
    animation: subtitlePulse 4s ease-in-out infinite;
}

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

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes subtitleGlow {
    0% { text-shadow: 0 0 20px rgba(148, 163, 184, 0.3); }
    100% { text-shadow: 0 0 30px rgba(148, 163, 184, 0.5), 0 0 50px rgba(167, 139, 250, 0.3); }
}

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

/* Enhanced Navigation - Modern Glass */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1000px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 76px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-logo {
    display: none;
}

.nav-left {
    display: none;
}

.nav-right {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
}

/* Enhanced Navigation Links */
.nav-link {
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.nav-link.active::after {
    width: 100%;
}

/* Enhanced Right Navigation */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.theme-toggle::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;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.theme-toggle i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.login-btn {
    background: linear-gradient(135deg, #5865f2, #4f46e5);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.login-btn::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.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        padding: 1rem;
    }
    
    .nav-center {
        position: static;
        transform: none;
    }
    
    .nav-right {
        position: absolute;
        right: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        background: rgba(10, 10, 10, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.5rem;
    }
    
    .nav-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .hero {
        padding-top: 80px;
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(20px);
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    color: white;
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #5855f1, #7c3aed, #9333ea);
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2, #4f46e5, #6366f1);
    color: white;
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-discord:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.6);
    background: linear-gradient(135deg, #4f46e5, #4338ca, #5855f1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.1);
}

/* Enhanced Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Animations and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Utility Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px currentColor;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5855eb, #7c3aed);
}

/* Selection styling */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* Focus styling */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced performance optimizations */
.hero-section,
.hero-background,
.hero-content {
    will-change: transform, opacity;
}

.btn,
.nav-link,
.card-modern {
    will-change: transform, box-shadow;
}

/* Final responsive tweaks */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(3rem, 10vw, 6rem);
    }
    
    .hero-subtitle-large {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

/* Enhanced Plugin Cards */
.page-header {
    background: transparent;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    display: none;
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #94a3b8, #a78bfa, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.plugins-section {
    padding: 4rem 0;
    background: transparent;
    min-height: 60vh;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Plugin (when there's only one) */
.plugins-grid:has(.featured-plugin) {
    grid-template-columns: 1fr;
    max-width: 800px;
    justify-items: center;
}

.plugin-card.featured-plugin {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.plugin-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.plugin-card:hover::before {
    opacity: 1;
}

.plugin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.plugin-image {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.plugin-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.plugin-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    position: relative;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.plugin-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.plugin-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plugin-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.plugin-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.plugin-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

.stars i.filled {
    color: #fbbf24;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.plugin-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.plugin-actions .btn {
    flex: 1;
    max-width: 200px;
    justify-content: center;
    text-align: center;
}

/* Custom Request Section */
.custom-request-section {
    padding: 4rem 0;
    background: transparent;
}

.custom-request-notice {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.custom-request-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 1;
}

.custom-request-notice .icon {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.custom-request-notice h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.custom-request-notice p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.request-actions {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .plugins-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plugin-card.featured-plugin {
        max-width: 100%;
    }
    
    .plugin-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plugin-actions {
        flex-direction: column;
    }
    
    .plugin-actions .btn {
        max-width: 100%;
    }
    
    .custom-request-notice {
        padding: 2rem;
        margin: 0 1rem;
    }
}

/* --- Enhanced Plugin Page Styles (migrated from plugins.html) --- */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.plugin-card {
    position: relative;
    overflow: hidden;
}

.plugin-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.plugin-card:hover::after {
    opacity: 1;
}

.feature-tag {
    cursor: pointer;
    user-select: none;
}

.feature-tag:hover {
    transform: translateY(-2px) scale(1.05);
}

.stat {
    transition: transform 0.3s ease;
}

.stars i {
    cursor: pointer;
    transition: all 0.2s ease;
}

.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fix for any potential black bar issues */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure no black bars or gaps */
.page-header {
    background: transparent;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    display: none;
}

/* Improve page header content */
.page-header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #94a3b8, #a78bfa, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Smooth transitions for better UX */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Footer Logo and Styling */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 8px;
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 0 3px rgba(99, 102, 241, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.footer-logo-img:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.6),
        0 0 0 5px rgba(99, 102, 241, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.footer-logo::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 50%;
    z-index: 1;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.footer-logo::after {
    content: '';
    position: absolute;
    left: -8px;
    top: -8px;
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: logoGlowOuter 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes logoGlowOuter {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

.footer-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
}

/* Enhanced Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: white;
    border-color: rgba(99, 102, 241, 0.5);
}

.social-links a i {
    position: relative;
    z-index: 1;
}
