/**
 * Magic UI Effects für Zertifikat-Seite
 * Inspiriert von Magic UI Design - konvertiert zu reinem CSS
 */

/* ========================================
   1. RETRO GRID BACKGROUND - CALM
   ======================================== */
.generate-zertifikat-container {
    position: relative;
    overflow: visible;
}

.generate-zertifikat-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    perspective: 200px;
    opacity: 0.12;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 215, 0, 0.08) 0%,
        transparent 70%
    );
}

.retro-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 600vw;
    height: 300vh;
    margin-left: -200%;
    background-image: 
        linear-gradient(to right, rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(70deg);
    transform-origin: 100% 0 0;
    animation: grid-scroll 90s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes grid-scroll {
    0% {
        transform: rotateX(65deg) translateY(0);
    }
    100% {
        transform: rotateX(65deg) translateY(60px);
    }
}

.retro-grid-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 90%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   2. PREMIUM BUTTON EFFECT
   ======================================== */
.submit-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000000;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transform: translateY(-50%);
    animation: premium-shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes premium-shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.submit-button:hover {
    box-shadow: 
        0 8px 24px rgba(212, 175, 55, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-button:active {
    transform: translateY(0);
}

/* ========================================
   3. SHINE BORDER FOR FORM - DISABLED (zu hektisch)
   ======================================== */
.form-section {
    position: relative;
    overflow: hidden;
}

/* Subtiler statischer Glow statt Animation */
.form-section::before {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 50%;
    width: 50%;
    height: 15%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 215, 0, 0.15) 0%,
        transparent 70%
    );
    filter: blur(20px);
    opacity: 1;
    pointer-events: none;
}

/* ========================================
   4. PREMIUM GRADIENT TEXT FOR HEADLINE - STATIC
   ======================================== */
.form-headline {
    position: relative;
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #2c2c2c 25%,
        #FFD700 50%,
        #2c2c2c 75%,
        #1a1a1a 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Subtile Glow nur bei Hover */
.form-section:hover .form-headline {
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
    transition: filter 0.6s ease;
}

/* ========================================
   5. PARTICLES EFFECT - DISABLED (zu hektisch)
   ======================================== */
/* Partikel komplett deaktiviert für ruhigeres Design */

/* ========================================
   6. CONFETTI EFFECT (for success)
   ======================================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Different confetti shapes */
.confetti-square { background: #FFD700; }
.confetti-circle { background: #D4AF37; border-radius: 50%; }
.confetti-triangle { 
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #1a73e8;
}

/* ========================================
   7. RIPPLE EFFECT FOR BUTTONS
   ======================================== */
.print-button,
.pdf-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9f3d, #f39324);
    border: 2px solid #f39324;
    transition: all 0.3s ease;
}

.print-button:hover,
.pdf-button:hover {
    box-shadow: 
        0 0 20px rgba(243, 147, 36, 0.6),
        0 0 40px rgba(243, 147, 36, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* ========================================
   8. SUBTLE GLOW ON SUCCESS MESSAGE - CALM
   ======================================== */
.success-message {
    position: relative;
    animation: subtle-success-glow 4s ease-in-out infinite;
}

@keyframes subtle-success-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    }
}

/* ========================================
   9. SUBTLE FOCUS EFFECT FOR FORM INPUTS
   ======================================== */
.form-input {
    position: relative;
    transition: all 0.4s ease;
}

.form-input:focus {
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* ========================================
   10. CERTIFICATE WRAPPER ENTRANCE
   ======================================== */
.certificate-wrapper {
    animation: certificate-entrance 1s ease-out;
}

@keyframes certificate-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   11. GOLDEN SPARKLES - DISABLED (zu hektisch)
   ======================================== */
/* Sparkles deaktiviert */

/* ========================================
   12. METEORS EFFECT - DISABLED (zu hektisch)
   ======================================== */
/* Meteors deaktiviert */

/* ========================================
   13-15. DEAKTIVIERT - zu hektisch
   ======================================== */
/* Border Beam, Spotlight, Neon Glow deaktiviert für ruhigeres Design */

/* Subtile Button-Hover stattdessen */
.print-button:hover,
.pdf-button:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ========================================
   16. PRINT MODE: Disable all effects
   ======================================== */
@media print {
    .retro-grid,
    .retro-grid-overlay,
    .particles-container,
    .confetti-container,
    .sparkle {
        display: none !important;
    }
    
    .form-headline {
        -webkit-text-fill-color: #000;
        background: none;
        color: #000;
    }
    
    .form-section::before {
        display: none;
    }
}

