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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #F0F0F0;
    padding: 0;
    overflow-x: hidden;
}

/* Navigation Header */
.top-nav {
    background: linear-gradient(to bottom, rgba(58, 47, 38, 0.95), rgba(58, 47, 38, 0.98));
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #d4af37;
}

.top-nav nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.top-nav .logo i {
    font-size: 2.5rem;
}

.top-nav nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.top-nav nav a {
    color: #f5f1e8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.top-nav nav a:hover,
.top-nav nav a.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

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

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    background: rgba(42, 42, 42, 0.9);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.main-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.subtitle {
    font-size: 1.2rem;
    color: #B0B0B0;
    margin-bottom: 0;
}

.subtitle-hint {
    font-size: 0.9rem;
    color: #808080;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.header-stats span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Category Filters */
.category-filters {
    position: relative;
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 auto 30px;
    left: 50%;
    transform: translateX(-50%);
}

.filter-slider {
    position: absolute;
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #7928ca);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    top: 0;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.filter-btn {
    position: relative;
    padding: 12px 28px;
    background: transparent;
    border: none;
    color: #B0B0B0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
    white-space: nowrap;
}

.filter-btn:hover {
    color: #F0F0F0;
}

.filter-btn.active {
    color: #FFFFFF;
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

#effectSearch {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #F0F0F0;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#effectSearch:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.search-container i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #B0B0B0;
}

/* Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.effect-card {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.effect-card.hidden {
    display: none;
}

.effect-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card {
    background: #1e1e1e;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Card Header Categories */
.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.card-header.elemental {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.card-header.status {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.card-header.combat {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.card-header.buff {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-header.debuff {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.card-header.field {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFF;
}

.card-header i {
    font-size: 1.5rem;
    color: #FFF;
}

/* Card Content */
.card-content {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    background: rgba(20, 20, 20, 0.5);
}

.demo-card {
    width: 140px;
    height: 180px;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 3px solid #404040;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.card-image {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.card-name {
    font-weight: bold;
    font-size: 1rem;
    color: #F0F0F0;
    text-align: center;
}

.card-description {
    padding: 15px 20px;
    background: rgba(42, 42, 42, 0.8);
    color: #B0B0B0;
    font-size: 0.9rem;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== ELEMENTAL EFFECTS ==================== */

/* Soaked Effect */
@keyframes soaked {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 0 0 rgba(0, 191, 255, 0);
    }
    50% { 
        filter: hue-rotate(180deg) brightness(1.2);
        box-shadow: 0 0 30px rgba(0, 191, 255, 0.8),
                    inset 0 0 20px rgba(0, 191, 255, 0.3);
    }
}

.soaked-effect {
    animation: soaked 1.5s ease-in-out;
}

/* Burning Effect */
@keyframes burning {
    0%, 100% { 
        filter: brightness(1) saturate(1);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    }
    25% { 
        filter: brightness(1.3) saturate(1.5);
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.8);
    }
    50% { 
        filter: brightness(1.5) saturate(2);
        box-shadow: 0 0 40px rgba(255, 140, 66, 1);
    }
    75% { 
        filter: brightness(1.3) saturate(1.5);
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.8);
    }
}

.burning-effect {
    animation: burning 1s ease-in-out infinite;
}

/* Electrified Effect */
@keyframes electrified {
    0%, 100% { 
        filter: brightness(1) contrast(1);
        box-shadow: 0 0 0 rgba(255, 255, 0, 0);
    }
    10% { 
        filter: brightness(2) contrast(1.5);
        box-shadow: 0 0 30px rgba(255, 255, 0, 1);
    }
    20% { 
        filter: brightness(1) contrast(1);
        box-shadow: 0 0 0 rgba(255, 255, 0, 0);
    }
    35% { 
        filter: brightness(2.5) contrast(2);
        box-shadow: 0 0 40px rgba(255, 255, 0, 1);
    }
    45% { 
        filter: brightness(1) contrast(1);
        box-shadow: 0 0 0 rgba(255, 255, 0, 0);
    }
}

.electrified-effect {
    animation: electrified 1.2s ease-in-out;
}

/* Frozen Effect */
@keyframes frozen {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1.2) saturate(0.3);
        border-color: #87ceeb;
        transform: scale(1);
    }
    50% { 
        filter: hue-rotate(200deg) brightness(1.5) saturate(0.5);
        border-color: #00bfff;
        box-shadow: 0 0 30px rgba(135, 206, 235, 0.8);
        transform: scale(0.98);
    }
}

.frozen-effect {
    animation: frozen 1.5s ease-in-out;
}

/* Gust Effect */
@keyframes gust {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    20% { transform: translateX(-10px) rotate(-3deg); opacity: 0.9; }
    40% { transform: translateX(15px) rotate(5deg); opacity: 0.7; }
    60% { transform: translateX(-20px) rotate(-7deg); opacity: 0.5; }
    80% { transform: translateX(25px) rotate(10deg); opacity: 0.3; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

.gust-effect {
    animation: gust 1s ease-in-out;
}

/* ==================== STATUS EFFECTS ==================== */

/* Petrify Effect */
@keyframes petrify {
    0% { filter: grayscale(0) brightness(1); }
    50% { filter: grayscale(1) brightness(0.7) contrast(1.5); }
    100% { filter: grayscale(0.8) brightness(0.6) contrast(1.3); }
}

.petrify-effect {
    animation: petrify 1.5s ease-in-out;
}

/* Poisoned Effect */
@keyframes poisoned {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 0 0 rgba(0, 255, 0, 0);
    }
    25% { 
        filter: hue-rotate(60deg) brightness(0.8);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
    50% { 
        filter: hue-rotate(90deg) brightness(0.6);
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
    }
    75% { 
        filter: hue-rotate(60deg) brightness(0.8);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
}

.poisoned-effect {
    animation: poisoned 1.2s ease-in-out;
}

/* Blinded Effect */
@keyframes blinded {
    0%, 100% { 
        filter: brightness(1) blur(0px);
        opacity: 1;
    }
    50% { 
        filter: brightness(0.3) blur(5px);
        opacity: 0.5;
    }
}

.blinded-effect {
    animation: blinded 1.5s ease-in-out;
}

/* Cursed Effect */
@keyframes cursed {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1) contrast(1);
        box-shadow: 0 0 0 rgba(138, 43, 226, 0);
    }
    25% { 
        filter: hue-rotate(270deg) brightness(0.7) contrast(1.5);
        box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
    }
    50% { 
        filter: hue-rotate(300deg) brightness(0.5) contrast(2);
        box-shadow: 0 0 40px rgba(138, 43, 226, 1);
    }
    75% { 
        filter: hue-rotate(270deg) brightness(0.7) contrast(1.5);
        box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
    }
}

.cursed-effect {
    animation: cursed 1.5s ease-in-out;
}

/* Stun Effect */
@keyframes stun {
    0%, 100% { transform: rotate(0deg); filter: brightness(1); }
    10% { transform: rotate(5deg); filter: brightness(1.3); }
    20% { transform: rotate(-5deg); filter: brightness(1.3); }
    30% { transform: rotate(5deg); filter: brightness(1.3); }
    40% { transform: rotate(-5deg); filter: brightness(1.3); }
    50% { transform: rotate(5deg); filter: brightness(1.3); }
    60% { transform: rotate(-5deg); filter: brightness(1.3); }
    70% { transform: rotate(5deg); filter: brightness(1.3); }
    80% { transform: rotate(-5deg); filter: brightness(1.3); }
    90% { transform: rotate(3deg); filter: brightness(1.1); }
}

.stun-effect {
    animation: stun 1s ease-in-out;
}

/* Paralysis Effect */
@keyframes paralysis {
    0%, 100% { transform: translateX(0); filter: brightness(1); }
    5% { transform: translateX(-2px); filter: brightness(1.5); }
    10% { transform: translateX(2px); filter: brightness(1); }
    15% { transform: translateX(-2px); filter: brightness(1.5); }
    20% { transform: translateX(2px); filter: brightness(1); }
    25% { transform: translateX(-2px); filter: brightness(1.5); }
}

.paralysis-effect {
    animation: paralysis 0.8s ease-in-out;
}

/* Sleep Effect */
@keyframes sleep {
    0%, 100% { 
        filter: brightness(0.7) blur(1px);
        opacity: 0.9;
    }
    50% { 
        filter: brightness(0.5) blur(2px);
        opacity: 0.7;
    }
}

.sleep-effect {
    animation: sleep 2s ease-in-out infinite;
}

/* Confusion Effect */
@keyframes confusion {
    0% { filter: hue-rotate(0deg); transform: rotate(0deg); }
    25% { filter: hue-rotate(90deg); transform: rotate(5deg); }
    50% { filter: hue-rotate(180deg); transform: rotate(-5deg); }
    75% { filter: hue-rotate(270deg); transform: rotate(3deg); }
    100% { filter: hue-rotate(360deg); transform: rotate(0deg); }
}

.confusion-effect {
    animation: confusion 1.5s ease-in-out;
}

/* Silence Effect */
@keyframes silence {
    0%, 100% { 
        filter: grayscale(0) brightness(1);
        opacity: 1;
    }
    50% { 
        filter: grayscale(0.7) brightness(0.8);
        opacity: 0.6;
    }
}

.silence-effect {
    animation: silence 1s ease-in-out;
}

/* Taunt Effect */
@keyframes taunt {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1) saturate(1);
        border-color: #ff4444;
    }
    25% { 
        transform: scale(1.1);
        filter: brightness(1.3) saturate(1.5);
        border-color: #ff0000;
    }
    50% { 
        transform: scale(0.95);
        filter: brightness(1.5) saturate(2);
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    }
    75% { 
        transform: scale(1.05);
        filter: brightness(1.3) saturate(1.5);
    }
}

.taunt-effect {
    animation: taunt 0.8s ease-in-out;
}

/* Root Effect */
@keyframes root {
    0%, 100% { 
        transform: translateY(0);
        filter: hue-rotate(0deg) saturate(1.5);
    }
    50% { 
        transform: translateY(5px);
        filter: hue-rotate(90deg) saturate(2);
        box-shadow: 0 10px 20px rgba(34, 139, 34, 0.6);
    }
}

.root-effect {
    animation: root 1.2s ease-in-out;
}

/* Fear Effect */
@keyframes fear {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    10% { transform: translateX(-15px) scale(0.95); opacity: 0.9; }
    20% { transform: translateX(-30px) scale(0.9); opacity: 0.8; }
    30% { transform: translateX(-45px) scale(0.85); opacity: 0.7; }
    40% { transform: translateX(-60px) scale(0.8); opacity: 0.6; }
    50% { transform: translateX(-75px) scale(0.75); opacity: 0.5; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.fear-effect {
    animation: fear 1.5s ease-in-out;
}

/* Madness Effect */
@keyframes madness {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1) contrast(1);
        transform: rotate(0deg) scale(1);
    }
    10% { filter: hue-rotate(60deg) brightness(1.3) contrast(1.5); transform: rotate(3deg) scale(1.05); }
    20% { filter: hue-rotate(120deg) brightness(0.8) contrast(2); transform: rotate(-3deg) scale(0.95); }
    30% { filter: hue-rotate(180deg) brightness(1.5) contrast(1.2); transform: rotate(5deg) scale(1.08); }
    40% { filter: hue-rotate(240deg) brightness(0.7) contrast(2.5); transform: rotate(-5deg) scale(0.92); }
    50% { filter: hue-rotate(300deg) brightness(1.8) contrast(1.8); transform: rotate(7deg) scale(1.1); }
    60% { filter: hue-rotate(0deg) brightness(0.6) contrast(3); transform: rotate(-7deg) scale(0.9); }
    70% { filter: hue-rotate(90deg) brightness(1.4) contrast(1.5); transform: rotate(4deg) scale(1.06); }
    80% { filter: hue-rotate(270deg) brightness(0.9) contrast(2); transform: rotate(-4deg) scale(0.94); }
    90% { filter: hue-rotate(180deg) brightness(1.2) contrast(1.7); transform: rotate(2deg) scale(1.03); }
}

.madness-effect {
    animation: madness 2s ease-in-out;
}

/* ==================== COMBAT EFFECTS ==================== */

/* Hit Effect */
@keyframes hit {
    0%, 100% { 
        transform: translateX(0);
        background-color: rgba(255, 0, 0, 0);
    }
    50% { 
        transform: translateX(-5px);
        background-color: rgba(255, 0, 0, 0.3);
    }
}

.hit-effect {
    animation: hit 0.3s ease-in-out;
}

/* Heavy Hit Effect */
@keyframes heavyhit {
    0%, 100% { transform: translateX(0) scale(1); filter: brightness(1); }
    10% { transform: translateX(-15px) scale(1.1); filter: brightness(1.5); }
    20% { transform: translateX(15px) scale(0.9); filter: brightness(2); }
    30% { transform: translateX(-10px) scale(1.05); filter: brightness(1.5); }
    40% { transform: translateX(10px) scale(0.95); filter: brightness(1.5); }
    50% { transform: translateX(-5px) scale(1.02); filter: brightness(1.3); }
    60% { transform: translateX(5px) scale(0.98); filter: brightness(1.3); }
}

.heavyhit-effect {
    animation: heavyhit 0.8s ease-in-out;
}

/* Torn/Bleeding Effect */
@keyframes torn {
    0%, 100% { 
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 0 rgba(139, 0, 0, 0);
    }
    25% { 
        filter: brightness(0.8) hue-rotate(-10deg);
        box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
    }
    50% { 
        filter: brightness(0.6) hue-rotate(-20deg);
        box-shadow: 0 0 25px rgba(139, 0, 0, 0.8);
    }
    75% { 
        filter: brightness(0.8) hue-rotate(-10deg);
        box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
    }
}

.torn-effect {
    animation: torn 1.5s ease-in-out;
}

/* Knockback Effect */
@keyframes knockback {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    30% { transform: translateX(-80px) scale(0.9); opacity: 0.8; }
    50% { transform: translateX(-100px) scale(0.85); opacity: 0.7; }
    70% { transform: translateX(-50px) scale(0.95); opacity: 0.9; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.knockback-effect {
    animation: knockback 0.8s ease-out;
}

/* Knockdown Effect */
@keyframes knockdown {
    0% { transform: rotate(0deg) translateY(0); opacity: 1; }
    30% { transform: rotate(20deg) translateY(10px); opacity: 0.9; }
    60% { transform: rotate(45deg) translateY(30px); opacity: 0.7; }
    80% { transform: rotate(60deg) translateY(50px) scale(0.8); opacity: 0.5; }
    100% { transform: rotate(0deg) translateY(0); opacity: 1; }
}

.knockdown-effect {
    animation: knockdown 1s ease-out;
}

/* ==================== BUFF EFFECTS ==================== */

/* Shield Effect */
@keyframes shield {
    0%, 100% { 
        border-color: #404040;
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    25% { 
        border-color: #ffd700;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                    inset 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% { 
        border-color: #ffeb3b;
        box-shadow: 0 0 35px rgba(255, 215, 0, 1),
                    inset 0 0 30px rgba(255, 215, 0, 0.5);
    }
    75% { 
        border-color: #ffd700;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                    inset 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

.shield-effect {
    animation: shield 1.5s ease-in-out;
}

/* Fortify Effect */
@keyframes fortify {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1) contrast(1);
        border-color: #404040;
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.3) contrast(1.5);
        border-color: #b8860b;
        box-shadow: 0 0 30px rgba(184, 134, 11, 0.8);
    }
}

.fortify-effect {
    animation: fortify 1s ease-in-out;
}

/* Attack Up Effect */
@keyframes attackup {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
    25% { 
        transform: scale(1.08);
        filter: brightness(1.3) saturate(1.5);
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    }
    50% { 
        transform: scale(1.15);
        filter: brightness(1.5) saturate(2);
        box-shadow: 0 0 40px rgba(255, 69, 0, 1);
    }
    75% { 
        transform: scale(1.08);
        filter: brightness(1.3) saturate(1.5);
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    }
}

.attackup-effect {
    animation: attackup 0.8s ease-in-out;
}

/* Crit Up Effect */
@keyframes critup {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    25% { 
        transform: scale(1.1) rotate(5deg);
        filter: brightness(1.5);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
    50% { 
        transform: scale(1.2) rotate(-5deg);
        filter: brightness(2);
        box-shadow: 0 0 50px rgba(255, 215, 0, 1);
    }
    75% { 
        transform: scale(1.1) rotate(3deg);
        filter: brightness(1.5);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

.critup-effect {
    animation: critup 0.6s ease-in-out;
}

/* Berserk Effect */
@keyframes berserk {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1) saturate(1) hue-rotate(0deg);
        border-color: #404040;
    }
    20% { 
        transform: scale(1.15);
        filter: brightness(1.5) saturate(2) hue-rotate(-30deg);
        border-color: #ff0000;
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.9);
    }
    40% { 
        transform: scale(1.08);
        filter: brightness(1.3) saturate(1.8) hue-rotate(-20deg);
    }
    60% { 
        transform: scale(1.12);
        filter: brightness(1.4) saturate(2) hue-rotate(-25deg);
        box-shadow: 0 0 35px rgba(255, 0, 0, 0.8);
    }
    80% { 
        transform: scale(1.1);
        filter: brightness(1.35) saturate(1.9) hue-rotate(-22deg);
    }
}

.berserk-effect {
    animation: berserk 1s ease-in-out;
}

/* Regen Effect */
@keyframes regen {
    0%, 100% { 
        box-shadow: 0 0 0 rgba(0, 255, 0, 0);
        filter: brightness(1);
    }
    25% { 
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
        filter: brightness(1.2);
    }
    50% { 
        box-shadow: 0 0 35px rgba(0, 255, 0, 1);
        filter: brightness(1.4);
    }
    75% { 
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
        filter: brightness(1.2);
    }
}

.regen-effect {
    animation: regen 1.5s ease-in-out;
}

/* Lifesteal Effect */
@keyframes lifesteal {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 0 0 rgba(255, 0, 127, 0);
    }
    33% { 
        filter: hue-rotate(-30deg) brightness(1.3);
        box-shadow: 0 0 25px rgba(255, 0, 127, 0.8);
    }
    66% { 
        filter: hue-rotate(-60deg) brightness(1.5);
        box-shadow: 0 0 40px rgba(255, 0, 127, 1);
    }
}

.lifesteal-effect {
    animation: lifesteal 1s ease-in-out;
}

/* Stealth Effect */
@keyframes stealth {
    0% { opacity: 1; filter: blur(0px); }
    50% { opacity: 0.3; filter: blur(3px); }
    100% { opacity: 0.5; filter: blur(2px); }
}

.stealth-effect {
    animation: stealth 1.5s ease-in-out;
}

/* ==================== DEBUFF EFFECTS ==================== */

/* Vulnerable Effect */
@keyframes vulnerable {
    0%, 100% { 
        border-color: #404040;
        filter: brightness(1);
    }
    50% { 
        border-color: #ff69b4;
        filter: brightness(0.7);
        box-shadow: 0 0 25px rgba(255, 105, 180, 0.8),
                    inset 0 0 20px rgba(255, 105, 180, 0.4);
    }
}

.vulnerable-effect {
    animation: vulnerable 1s ease-in-out;
}

/* Attack Down Effect */
@keyframes attackdown {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
    50% { 
        transform: scale(0.9);
        filter: brightness(0.7) saturate(0.5);
        box-shadow: 0 0 20px rgba(128, 128, 128, 0.6);
    }
}

.attackdown-effect {
    animation: attackdown 1s ease-in-out;
}

/* Defense Down Effect */
@keyframes defensedown {
    0%, 100% { 
        border-color: #404040;
        filter: brightness(1);
    }
    50% { 
        border-color: #ff6347;
        filter: brightness(0.8) contrast(1.5);
        box-shadow: inset 0 0 25px rgba(255, 99, 71, 0.6);
    }
}

.defensedown-effect {
    animation: defensedown 1.2s ease-in-out;
}

/* Speed Down Effect */
@keyframes speeddown {
    0% { transform: translateX(0); filter: brightness(1); }
    25% { transform: translateX(-5px); filter: brightness(0.9); }
    50% { transform: translateX(-8px); filter: brightness(0.8); }
    75% { transform: translateX(-5px); filter: brightness(0.9); }
    100% { transform: translateX(0); filter: brightness(1); }
}

.speeddown-effect {
    animation: speeddown 2s ease-in-out;
}

/* Mana Burn Effect */
@keyframes manaburn {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 0 0 rgba(0, 0, 255, 0);
    }
    25% { 
        filter: hue-rotate(240deg) brightness(0.7);
        box-shadow: 0 0 20px rgba(0, 0, 255, 0.8);
    }
    50% { 
        filter: hue-rotate(260deg) brightness(0.5);
        box-shadow: 0 0 35px rgba(0, 0, 255, 1);
    }
    75% { 
        filter: hue-rotate(240deg) brightness(0.7);
        box-shadow: 0 0 20px rgba(0, 0, 255, 0.8);
    }
}

.manaburn-effect {
    animation: manaburn 1.3s ease-in-out;
}

/* ==================== FIELD EFFECTS ==================== */

/* Flame Field Effect */
@keyframes flamefield {
    0%, 100% { 
        filter: brightness(1) saturate(1);
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    }
    25% { 
        filter: brightness(1.3) saturate(1.8);
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8);
    }
    50% { 
        filter: brightness(1.6) saturate(2.5);
        box-shadow: 0 0 50px rgba(255, 69, 0, 1);
    }
    75% { 
        filter: brightness(1.3) saturate(1.8);
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8);
    }
}

.flamefield-effect {
    animation: flamefield 1.5s ease-in-out infinite;
}

/* Heavy Rain Effect */
@keyframes heavyrain {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(0.8);
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.3);
    }
    50% { 
        filter: hue-rotate(180deg) brightness(1.2);
        box-shadow: 0 0 20px rgba(30, 144, 255, 0.7);
    }
}

.heavyrain-effect {
    animation: heavyrain 2s ease-in-out infinite;
}

/* Thunderstorm Effect */
@keyframes thunderstorm {
    0%, 90%, 100% { 
        filter: brightness(0.6);
        box-shadow: 0 0 0 rgba(255, 255, 0, 0);
    }
    5%, 15%, 25% { 
        filter: brightness(3);
        box-shadow: 0 0 60px rgba(255, 255, 0, 1);
    }
    10%, 20%, 30% { 
        filter: brightness(0.6);
        box-shadow: 0 0 0 rgba(255, 255, 0, 0);
    }
}

.thunderstorm-effect {
    animation: thunderstorm 3s ease-in-out infinite;
}

/* Toxic Fog Effect */
@keyframes toxicfog {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(0.7) blur(1px);
        box-shadow: 0 0 15px rgba(0, 128, 0, 0.5);
    }
    50% { 
        filter: hue-rotate(90deg) brightness(0.5) blur(3px);
        box-shadow: 0 0 35px rgba(0, 255, 0, 0.8);
    }
}

.toxicfog-effect {
    animation: toxicfog 2.5s ease-in-out infinite;
}

/* Lava Field Effect */
@keyframes lavafield {
    0%, 100% { 
        filter: brightness(1.2) saturate(2);
        box-shadow: 0 5px 25px rgba(255, 69, 0, 0.8);
    }
    50% { 
        filter: brightness(1.8) saturate(3);
        box-shadow: 0 5px 45px rgba(255, 0, 0, 1);
    }
}

.lavafield-effect {
    animation: lavafield 2s ease-in-out infinite;
}

/* Time Distortion Effect */
@keyframes timedistortion {
    0%, 100% { 
        filter: hue-rotate(0deg) blur(0px);
        transform: scale(1);
    }
    25% { 
        filter: hue-rotate(90deg) blur(2px);
        transform: scale(1.1);
    }
    50% { 
        filter: hue-rotate(180deg) blur(4px);
        transform: scale(0.9);
    }
    75% { 
        filter: hue-rotate(270deg) blur(2px);
        transform: scale(1.05);
    }
}

.timedistortion-effect {
    animation: timedistortion 3s ease-in-out infinite;
}

/* ==================== CONTROL PANEL ==================== */

.control-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(42, 42, 42, 0.9);
    border-radius: 15px;
}

.control-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.control-btn.primary {
    background: linear-gradient(45deg, #00d4ff, #7928ca);
    color: white;
}

.control-btn.secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.control-btn.danger {
    background: linear-gradient(45deg, #ff0844, #ff6b6b);
    color: white;
}

.control-btn.success {
    background: linear-gradient(45deg, #56ab2f, #a8e063);
    color: white;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background: rgba(42, 42, 42, 0.9);
    border-radius: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.main-footer p {
    margin: 5px 0;
    color: #B0B0B0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-nav nav {
        flex-direction: column;
        gap: 1rem;
    }

    .top-nav nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .main-header h1 {
        font-size: 2rem;
    }
    
    .effects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .category-filters {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        left: 0;
        transform: none;
        width: 100%;
        justify-content: flex-start;
    }
    
    .category-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-btn {
        justify-content: center;
    }
}

/* Particle animations */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}

/* Canvas containers */
#pixiContainer, #threeContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ==================== CODE DISPLAY SECTION ==================== */

.code-display-section {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.code-display-header h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.close-code-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-code-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.code-tab-btn {
    background: transparent;
    border: none;
    color: #B0B0B0;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-tab-btn:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.code-tab-btn.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.code-content-container {
    position: relative;
}

.code-block-wrapper {
    display: none;
}

.code-block-wrapper.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 212, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: none;
}

.code-header span {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1rem;
}

.copy-btn {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: linear-gradient(45deg, #00b8e6, #0088bb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: linear-gradient(45deg, #00ff88, #00cc66);
}

.copy-btn.copied i:before {
    content: "\f00c"; /* Font Awesome check icon */
}

.code-block-wrapper pre {
    margin: 0;
    background: #1a1a1a;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.code-block-wrapper code {
    display: block;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #F0F0F0;
    white-space: pre;
}

/* Syntax highlighting */
.code-block-wrapper code .comment {
    color: #6a9955;
}

.code-block-wrapper code .keyword {
    color: #569cd6;
}

.code-block-wrapper code .string {
    color: #ce9178;
}

.code-block-wrapper code .number {
    color: #b5cea8;
}

.code-block-wrapper code .function {
    color: #dcdcaa;
}

.code-block-wrapper code .property {
    color: #9cdcfe;
}

/* Scrollbar styling */
.code-block-wrapper pre::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.code-block-wrapper pre::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.code-block-wrapper pre::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 5px;
}

.code-block-wrapper pre::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}
