/* ========================================
   MMOFinds.de - DESIGN UPGRADE V7
   June 2026 — Enhanced Hero, 3D Cards, Video BG, Mobile Optimized
   ======================================== */

/* === CSS VARIABLES V7 === */
: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-warning: #f59e0b;
    --color-bg-hero: #0a0a1a;
    --color-bg-card: rgba(20, 20, 35, 0.8);
    --color-bg-card-hover: rgba(30, 30, 50, 0.95);
    --color-border: rgba(74, 158, 255, 0.15);
    --color-border-hover: rgba(74, 158, 255, 0.4);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(74, 158, 255, 0.15);
    --shadow-glow-accent: 0 0 40px rgba(139, 92, 246, 0.15);
    --shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.15);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* === HERO SECTION V7 — Enhanced Mesh Gradient + Video BG === */
.hero-section {
    position: relative;
    padding: 140px 20px 120px;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 64px 64px;
    margin-bottom: 64px;
    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 80% 60% at 20% 30%, rgba(74, 158, 255, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 70% 40% at 30% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 100%);
    background-size: 200% 200%;
    animation: hero-mesh-v7 15s ease-in-out infinite;
}

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

/* Enhanced particle system V7 */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float-v7 12s ease-in-out infinite;
}

.hero-particles::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.12) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

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

@keyframes float-v7 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-primary-light);
    backdrop-filter: blur(10px);
    z-index: 2;
    position: relative;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
    z-index: 2;
    position: relative;
}

/* === STATS ROW V7 — Glass Cards === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

.stat-card {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* === SECTION HEADER V7 === */
.section-header {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header a {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.section-header a:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: var(--color-primary);
    text-decoration: none;
}

/* === CARDS GRID V7 — Enhanced 3D === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.card {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0);
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, transparent 50%, rgba(139, 92, 246, 0.08) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(8px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

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

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 100%);
    pointer-events: none;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--transition-normal);
}

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

.card-body {
    padding: 16px;
    position: relative;
    z-index: 1;
}

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

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #fff;
}

.card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === VIDEO SECTION V7 === */
.video-section {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 56px 0;
    text-align: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.video-section h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.video-section p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.video-player {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    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;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition-fast);
}

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

.video-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(74, 158, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}

/* === NEWSLETTER SECTION V7 === */
.newsletter-section {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.newsletter-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.newsletter-desc {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(20, 20, 35, 0.8);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

.newsletter-form input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* === FOOTER V7 === */
.site-footer {
    background: rgba(10, 10, 20, 0.9);
    border-top: 1px solid var(--color-border);
    padding: 48px 20px 24px;
    text-align: center;
    margin-top: 48px;
}

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

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

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

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    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 V7 === */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* === LIGHT MODE === */
body.light-mode {
    --color-bg: #f8f9fa;
    --color-bg-card: rgba(255, 255, 255, 0.9);
    --color-bg-card-hover: rgba(255, 255, 255, 1);
    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-hover: rgba(74, 158, 255, 0.4);
    --color-text: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #8a8a8a;
    --color-bg-hero: linear-gradient(135deg, #e8f0fe 0%, #f0e6ff 50%, #fce4ec 100%);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
}

body.light-mode .hero-section {
    background: var(--color-bg-hero);
    border-radius: 0 0 64px 64px;
}

body.light-mode .hero-video-placeholder {
    opacity: 0.5;
}

body.light-mode .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .site-footer {
    background: rgba(248, 249, 250, 0.95);
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

/* === RESPONSIVE V7 === */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 16px 80px;
        border-radius: 0 0 32px 32px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

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

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

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

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

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

    .card-image {
        height: 160px;
    }

    .video-section {
        padding: 24px 16px;
        margin: 40px 0;
    }

    .newsletter-section {
        padding: 24px 16px;
        margin: 40px 0;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-header a {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 12px 60px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

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

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

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

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

    .cards-grid {
        gap: 12px;
    }
}

/* === ANIMATIONS V7 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.25s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.3s; }
.cards-grid .card:nth-child(7) { animation-delay: 0.35s; }
.cards-grid .card:nth-child(8) { animation-delay: 0.4s; }
.cards-grid .card:nth-child(9) { animation-delay: 0.45s; }
.cards-grid .card:nth-child(10) { animation-delay: 0.5s; }
.cards-grid .card:nth-child(11) { animation-delay: 0.55s; }
.cards-grid .card:nth-child(12) { animation-delay: 0.6s; }

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

/* === FEATURES SECTION V7 === */
.features-section {
    margin: 56px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    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 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* === FEATURES RESPONSIVE === */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
}
