/* ========================================
   MMOFinds.de - DESIGN UPGRADE V6
   June 2026 — Enhanced Hero, Dynamic Cards, 3D Elements, Video BG
   ======================================== */

/* === CSS VARIABLES V6 === */
:root {
    --color-primary: #4a9eff;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-bg-card: rgba(25, 25, 35, 0.85);
    --color-bg-card-hover: rgba(35, 35, 50, 0.95);
    --color-border: rgba(74, 158, 255, 0.2);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.75);
    --color-text-muted: rgba(255, 255, 255, 0.45);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(74, 158, 255, 0.2);
    --shadow-glow-accent: 0 0 30px rgba(139, 92, 246, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === HERO SECTION V6 — Enhanced Video Background === */
.hero-section {
    position: relative;
    padding: 120px 20px 100px;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 48px 48px;
    margin-bottom: 56px;
}

.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.3;
}

.hero-video-placeholder {
    background: linear-gradient(135deg,
        rgba(74, 158, 255, 0.2) 0%,
        rgba(139, 92, 246, 0.18) 25%,
        rgba(236, 72, 153, 0.12) 50%,
        rgba(34, 197, 94, 0.1) 75%,
        rgba(74, 158, 255, 0.15) 100%);
    background-size: 400% 400%;
    animation: hero-gradient-v6 20s ease-in-out infinite;
}

@keyframes hero-gradient-v6 {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 75% 100%; }
    75% { background-position: 0% 75%; }
    100% { background-position: 0% 0%; }
}

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

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

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

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

.hero-particles .particle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation-delay: -6s;
}

@keyframes float-v6 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.9; }
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(74, 158, 255, 0.15);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    z-index: 2;
    position: relative;
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(74, 158, 255, 0); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c4b5fd 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;
    line-height: 1.6;
    z-index: 2;
    position: relative;
}

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

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    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);
}

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

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

.stat-number {
    font-size: 2.2rem;
    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: 4px;
}

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

/* === SECTION HEADER V6 === */
.section-header {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 48px 0 28px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-header a {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* === CARDS GRID V6 — Enhanced 3D Cards === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    position: relative;
    backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    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);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px) rotateX(2deg);
    border-color: rgba(74, 158, 255, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--color-bg-card-hover);
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05), rgba(139, 92, 246, 0.05));
}

.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-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--color-bg-card));
    pointer-events: none;
}

.card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(74, 158, 255, 0.2);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === VIDEO SECTION V6 === */
.video-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin: 48px 0;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.video-section::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));
}

.video-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-text);
}

.video-section p {
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}

.video-player {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    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: 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: white;
    margin-left: 4px;
}

/* === NEWSLETTER SECTION V6 === */
.newsletter-section {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    margin: 48px 0;
    backdrop-filter: blur(12px);
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-text);
}

.newsletter-desc {
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

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

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

/* === FOOTER V6 === */
.site-footer {
    background: rgba(15, 15, 25, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 48px 20px 24px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.footer-content p {
    color: var(--color-text-secondary);
    margin: 0 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    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 V6 === */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* === SCROLL REVEAL ANIMATIONS === */
.card, .stat-card, .video-section, .newsletter-section {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-v6 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }

@keyframes reveal-v6 {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .video-section {
        padding: 24px;
    }

    .newsletter-section {
        padding: 24px;
    }

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

    .section-header {
        font-size: 1.3rem;
    }
}

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

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

    .hero-title {
        font-size: 1.8rem;
    }
}
