/* DotaWager – минималистичные монохромные эффекты */

/* Партиклы фона */
@keyframes particle-float {
    0% { transform: translateY(0px); opacity: 0.4; }
    50% { transform: translateY(-16px); opacity: 0.7; }
    100% { transform: translateY(0px); opacity: 0.4; }
}

.particle-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    animation: particle-float 18s ease-in-out infinite;
    z-index: -1;
}

/* Эффект свечения для текста */
.neon-glow {
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 12px rgba(255, 255, 255, 0.12);
    animation: neon-pulse 3s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow:
            0 0 6px rgba(255, 255, 255, 0.2),
            0 0 12px rgba(255, 255, 255, 0.12);
    }
    to {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 0.25),
            0 0 24px rgba(255, 255, 255, 0.15);
    }
}

/* 3D эффект для карточек */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

/* Волновой эффект */
.wave-effect {
    position: relative;
    overflow: hidden;
}

.wave-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: wave 3s infinite;
}

@keyframes wave {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Эффект печати текста */
.typewriter {
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.5); }
}

/* Эффект магмы для кнопок */
.magma-effect {
    position: relative;
    overflow: hidden;
}

.magma-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: magma-flow 3s infinite;
}

@keyframes magma-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Эффект стекла с размытием */
.glass-morphism {
    background: rgba(18, 18, 18, 0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Анимированные градиенты */
.animated-gradient {
    background: linear-gradient(-45deg, #101010, #1d1d1d, #101010, #1d1d1d);
    background-size: 400% 400%;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Эффект огня */
.fire-effect {
    position: relative;
    overflow: hidden;
}

.fire-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
    animation: fire-flicker 2.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0% { opacity: 0.3; transform: scaleX(0.9); }
    100% { opacity: 0.6; transform: scaleX(1.05); }
}

/* Эффект молнии */
.lightning-effect {
    position: relative;
}


.lightning-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: lightning 4s infinite;
    pointer-events: none;
}

@keyframes lightning {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.4; }
}

/* Эффект голограммы */
.hologram {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.15),
        0 0 16px rgba(255, 255, 255, 0.08);
    animation: hologram-flicker 5s infinite;
}

@keyframes hologram-flicker {
    0%, 100% { opacity: 0.9; }
    25% { opacity: 1; }
    50% { opacity: 0.85; }
    75% { opacity: 1; }
}

/* Резиновый эффект для кнопок */
.rubber-band {
    animation: rubber-band 0.8s ease-out;
}

@keyframes rubber-band {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* Эффект пульсации тени */
.shadow-pulse {
    animation: shadow-pulse 3s infinite;
}

@keyframes shadow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
    70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Магический эффект */
.magic-effect {
    position: relative;
    overflow: hidden;
}

.magic-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    opacity: 0;
    animation: magic-sparkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes magic-sparkle {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* Эффект ледяного свечения */
.ice-glow {
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 12px rgba(255, 255, 255, 0.15);
    animation: ice-pulse 4s ease-in-out infinite alternate;
}

@keyframes ice-pulse {
    from {
        text-shadow:
            0 0 6px rgba(255, 255, 255, 0.2),
            0 0 12px rgba(255, 255, 255, 0.15);
    }
    to {
        text-shadow:
            0 0 14px rgba(255, 255, 255, 0.25),
            0 0 26px rgba(255, 255, 255, 0.18);
    }
}

/* Эффект портала */
.portal-effect {
    position: relative;
    overflow: hidden;
}

.portal-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 75%);
    animation: portal-spin 8s linear infinite;
    pointer-events: none;
}

@keyframes portal-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Киберпанковый эффект текста */
.cyber-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 12px rgba(255, 255, 255, 0.12);
    animation: cyber-glitch 3s infinite;
}

@keyframes cyber-glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

/* Эффект матрицы для фона */
.matrix-bg {
    position: relative;
    overflow: hidden;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 60, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(122, 47, 141, 0.1) 0%, transparent 50%);
    animation: matrix-flow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes matrix-flow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Эффект взрыва */
.explosion-effect {
    position: relative;
    overflow: hidden;
}

.explosion-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 60, 60, 0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: explosion 1s ease-out;
}

@keyframes explosion {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Эффект водопада */
.waterfall-effect {
    position: relative;
    overflow: hidden;
}

.waterfall-effect::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 123, 255, 0.3) 50%, transparent 100%);
    animation: waterfall 3s infinite;
}

@keyframes waterfall {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Темное свечение */
.dark-glow {
    box-shadow:
        0 0 5px rgba(232, 60, 60, 0.5),
        0 0 10px rgba(232, 60, 60, 0.3),
        0 0 15px rgba(232, 60, 60, 0.2),
        0 0 20px rgba(232, 60, 60, 0.1);
}

/* Эффект пульсирующего сердца */
.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Эффект вращающейся рамки */
.spin-border {
    position: relative;
    overflow: hidden;
}

.spin-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--dota-red), var(--dota-purple), var(--dota-red));
    border-radius: inherit;
    z-index: -1;
    animation: spin-border 3s linear infinite;
}

@keyframes spin-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимированный текст с градиентом */
.gradient-text {
    background: linear-gradient(45deg, var(--dota-red), var(--dota-purple), var(--dota-gold));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text-flow 3s ease infinite;
}

@keyframes gradient-text-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
