/* ========================================
   MMOFinds.de - DESIGN UPGRADE V9
   June 2026 — AI Video Backgrounds, 3D Elements, Glassmorphism v3, Social Media Ready
   ======================================== */

/* === CSS VARIABLES V9 === */
:root {
    --color-primary: #4a9eff;
    --color-primary-light: #6db3ff;
    --color-secondary: #8b5cf6;
    --color-secondary-light: #a78bfa;
    --color-accent: #ec4899;
    --color-accent-light: #f472b6;
    --color-success: #22c55e;
    --color-success-light: #4ade80;
    --color-warning: #f59e0b;
    --color-info: #06b6d4;
    --color-bg-hero: #030318;
    --color-bg-card: rgba(12, 12, 28, 0.8);
    --color-bg-card-hover: rgba(22, 22, 48, 0.95);
    --color-border: rgba(74, 158, 255, 0.1);
    --color-border-hover: rgba(74, 158, 255, 0.3);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    --color-text-muted: rgba(255, 255, 255, 0.4);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 80px rgba(74, 158, 255, 0.15);
    --shadow-glow-accent: 0 0 80px rgba(139, 92, 246, 0.15);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === HERO SECTION V9 — AI Video BG + Animated Mesh + 3D Elements === */
.hero-section {
    position: relative;
    padding: 180px 20px 160px;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 100px 100px;
    margin-bottom: 90px;
    background: var(--color-bg-hero);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video,
.hero-video-bg .hero-video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-video-placeholder {
    background:
        radial-gradient(ellipse 100% 80% at 10% 15%, rgba(74, 158, 255, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 80% 90% at 90% 85%, rgba(139, 92, 246, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 50% 45%, rgba(236, 72, 153, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 30% 95%, rgba(34, 197, 94, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 80% 10%, rgba(6, 182, 212, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #030318 0%, #08082a 50%, #030318 100%);
    background-size: 400% 400%;
    animation: hero-mesh-v9 25s ease-in-out infinite;
}

@keyframes hero-mesh-v9 {
    0% { background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%, 50% 50%; }
    25% { background-position: 100% 25%, 0% 100%, 25% 75%, 100% 0%, 0% 50%, 75% 25%; }
    50% { background-position: 50% 100%, 50% 0%, 75% 25%, 50% 100%, 100% 0%, 25% 75%; }
    75% { background-position: 0% 50%, 50% 100%, 100% 75%, 0% 50%, 50% 0%, 100% 25%; }
    100% { background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%, 50% 50%; }
}

/* Enhanced particle system V9 — More particles, deeper */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after,
.hero-particles::nth-of-type(3) {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float-v9 18s ease-in-out infinite;
}

.hero-particles::before {
    width: 350px;
    height: 350px;
    top: 5%;
    left: -5%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
}

.hero-particles::after {
    width: 450px;
    height: 450px;
    bottom: 0%;
    right: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation-delay: -8s;
}

@keyframes float-v9 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -50px) scale(1.15); }
    50% { transform: translate(-30px, 40px) scale(0.9); }
    75% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--color-primary-light);
    margin-bottom: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: badge-pulse-v9 3s ease-in-out infinite;
}

@keyframes badge-pulse-v9 {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 158, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(74, 158, 255, 0.2); }
}

.hero-badge span:first-child {
    font-size: 1.2rem;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #ffffff 0%, #6db3ff 40%, #a78bfa 70%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--color-text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.65;
}

/* === STATS ROW V9 — Glassmorphism v3 + Animated Borders === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 90px;
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-normal);
    background-size: 200% 100%;
    animation: border-shimmer-v9 3s linear infinite;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.3), transparent, rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-glow-accent);
}

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

@keyframes border-shimmer-v9 {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* === FEATURES SECTION V9 — 3D Icon Cards + Glassmorphism v3 === */
.features-section {
    margin-bottom: 90px;
}

.section-header {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-text);
    position: relative;
}

.section-header a {
    font-size: 0.6em;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.section-header a:hover {
    color: var(--color-primary-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74, 158, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(3deg);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(74, 158, 255, 0.2));
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === WHATS NEW SECTION V9 — Enhanced Cards === */
.whats-new-section {
    margin-bottom: 90px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(74, 158, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-6px);
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

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

.card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 20px;
}

.card-meta {
    margin-bottom: 12px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--color-primary);
}

.card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* === VIDEO SECTION V9 — Enhanced Player === */
.video-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 90px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.video-section h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 12px;
}

.video-section > p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 1rem;
}

.video-player {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16/9;
    background: #000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.15);
}

.video-play-btn {
    width: 72px;
    height: 72px;
    background: rgba(74, 158, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.4);
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--color-primary);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}

.video-platforms {
    text-align: center;
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.video-platforms div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-platforms img {
    width: 44px;
    height: 44px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.video-platforms div:hover img {
    opacity: 1;
}

.video-platforms span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.video-section > p:last-child {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

/* === NEWSLETTER SECTION V9 === */
.newsletter-section {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    margin-bottom: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 12px;
}

.newsletter-desc {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(15, 15, 30, 0.8);
    color: var(--color-text);
    font-size: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
}

/* === FOOTER V9 === */
.site-footer {
    background: rgba(8, 8, 20, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 48px 20px 32px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-content p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* === THEME TOGGLE V9 === */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

/* === MOBILE RESPONSIVE V9 === */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 16px 100px;
        border-radius: 0 0 60px 60px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 60px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-section {
        padding: 32px 20px;
    }

    .video-platforms {
        gap: 16px;
    }

    .newsletter-section {
        padding: 32px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 100px 12px 80px;
    }
}

/* === SCROLL ANIMATIONS V9 === */
@keyframes fadeInUp-v9 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.card,
.stat-card {
    animation: fadeInUp-v9 0.6s ease-out both;
}

.feature-card:nth-child(1),
.card:nth-child(1),
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2),
.card:nth-child(2),
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3),
.card:nth-child(3),
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4),
.card:nth-child(4),
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5),
.card:nth-child(5),
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6),
.card:nth-child(6),
.stat-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7),
.card:nth-child(7),
.stat-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8),
.card:nth-child(8),
.stat-card:nth-child(8) { animation-delay: 0.8s; }
