/* ========================================
   MMOFinds.de - DESIGN UPGRADE V5
   June 2026 — Video Integration, 3D Elements, Glass Morphism
   ======================================== */

/* === CSS VARIABLES === */
:root {
    --color-primary: #4a9eff;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-bg-card: rgba(30, 30, 30, 0.8);
    --color-bg-card-hover: rgba(40, 40, 40, 0.9);
    --color-border: rgba(74, 158, 255, 0.15);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(74, 158, 255, 0.15);
}

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

/* Video Background Layer */
.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: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.15) 0%, 
        rgba(139, 92, 246, 0.12) 30%, 
        rgba(236, 72, 153, 0.08) 60%, 
        rgba(34, 197, 94, 0.06) 100%);
    animation: hero-gradient-shift 15s ease-in-out infinite alternate;
}

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

/* Animated particle overlay */
.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 8s ease-in-out infinite;
}

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

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, -50px) scale(0.95); }
    75% { transform: translate(30px, -20px) scale(1.02); }
}

/* Hero content on top */
.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    position: relative;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 40%, #8b5cf6 70%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    animation: gradient-text 6s ease-in-out infinite alternate;
}

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

.hero-subtitle {
    position: relative;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === 3D Badge / Pill === */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    animation: badge-pulse 3s ease-in-out infinite;
}

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

/* === STATS ROW V5 — Glass Cards === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0 48px;
    padding: 28px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(74, 158, 255, 0.12);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.stats-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a9eff, #8b5cf6, #ec4899, #22c55e);
    background-size: 200% 100%;
    animation: border-flow 4s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.stat-card {
    text-align: center;
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.06) 0%, 
        rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(74, 158, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(74, 158, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(74, 158, 255, 0.25);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.12);
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a9eff, #8b5cf6);
    -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-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* === SECTION HEADER V5 === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 56px 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(74, 158, 255, 0.1);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #4a9eff, #8b5cf6);
    border-radius: 2px;
}

.section-header a {
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.section-header a:hover {
    opacity: 1;
    transform: translateX(4px);
}

/* === CARDS V5 — Enhanced with 3D === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9eff, #8b5cf6, #ec4899);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), 
        rgba(74, 158, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(74, 158, 255, 0.08),
                0 0 0 1px rgba(74, 158, 255, 0.1);
}

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

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

.card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    z-index: 2;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(20, 20, 20, 0.9));
    z-index: 1;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(26, 26, 26, 0.8));
    z-index: 2;
    pointer-events: none;
}

.card-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

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

/* Video badge overlay */
.card-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-video-badge .play-icon {
    width: 14px;
    height: 14px;
    fill: #4a9eff;
}

.card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

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

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    flex: 1;
}

/* 3D Benefit Card */
.benefit-card {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 158, 255, 0.25);
    box-shadow: 0 16px 48px rgba(74, 158, 255, 0.1);
}

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

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.2);
}

.benefit-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.benefit-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* === FEATURED VIDEO SECTION === */
.video-section {
    margin: 56px 0;
    padding: 40px;
    background: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.06) 0%, 
        rgba(139, 92, 246, 0.04) 50%, 
        rgba(236, 72, 153, 0.03) 100%);
    border: 1px solid rgba(74, 158, 255, 0.12);
    border-radius: var(--radius-xl);
    text-align: center;
}

.video-section h3 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a9eff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

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

.video-player {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.15);
}

.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 0.3s ease;
}

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

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

.video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.5);
}

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

/* === NEWSLETTER SECTION V5 === */
.newsletter-section {
    margin: 56px 0 32px;
    padding: 48px 40px;
    background: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.08) 0%, 
        rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: var(--radius-xl);
    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.08) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.newsletter-desc {
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

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

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    color: var(--color-text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.newsletter-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #4a9eff, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* === FOOTER V5 === */
.site-footer {
    margin-top: 56px;
    padding: 56px 20px 28px;
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
}

.footer-content h3 {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4a9eff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-content p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

/* === RESPONSIVE V5 === */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 16px 50px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
        margin: 24px 0 36px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-section {
        padding: 28px 20px;
    }
    
    .newsletter-section {
        padding: 32px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .section-header {
        margin: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 12px 36px;
        border-radius: 0 0 24px 24px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .card-image {
        min-height: 160px;
    }
    
    .video-section {
        padding: 20px 12px;
    }
    
    .video-play-btn {
        width: 56px;
        height: 56px;
    }
}

/* === ANIMATIONS === */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fade-in-up 0.6s ease-out both;
}

.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; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }
.card:nth-child(11) { animation-delay: 0.55s; }
.card:nth-child(12) { animation-delay: 0.6s; }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
