/**
 * Zertifikat-Screen: Hintergrund- und Rahmenanimationen (reines CSS)
 */

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

.screen-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
   ======================================== */
#button-submit-generate-zertifikat,
.generate-zertifikat-print-button,
.generate-zertifikat-pdf-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);
}

#button-submit-generate-zertifikat::before,
.generate-zertifikat-print-button::before,
.generate-zertifikat-pdf-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%;
    }
}

#button-submit-generate-zertifikat:hover,
.generate-zertifikat-print-button:hover,
.generate-zertifikat-pdf-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);
}

#button-submit-generate-zertifikat:active,
.generate-zertifikat-print-button:active,
.generate-zertifikat-pdf-button:active {
    transform: translateY(0);
}

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

/* Subtiler statischer Glow statt Animation */
.generate-zertifikat-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
   ======================================== */
.generate-zertifikat-form-section .base-headline-h1 {
    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 */
.generate-zertifikat-form-section:hover .base-headline-h1 {
    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-color-0 { background: #FFD700; }
.confetti-color-1 { background: #D4AF37; }

.confetti-pos-0 { left: 32%; }
.confetti-pos-1 { left: 35%; }
.confetti-pos-2 { left: 38%; }
.confetti-pos-3 { left: 41%; }
.confetti-pos-4 { left: 44%; }
.confetti-pos-5 { left: 47%; }
.confetti-pos-6 { left: 50%; }
.confetti-pos-7 { left: 53%; }
.confetti-pos-8 { left: 56%; }
.confetti-pos-9 { left: 59%; }
.confetti-pos-10 { left: 62%; }
.confetti-pos-11 { left: 65%; }
.confetti-pos-12 { left: 68%; }
.confetti-pos-13 { left: 71%; }
.confetti-pos-14 { left: 74%; }

.confetti-dur-0 { animation-duration: 3s; }
.confetti-dur-1 { animation-duration: 3.5s; }
.confetti-dur-2 { animation-duration: 4s; }
.confetti-dur-3 { animation-duration: 4.5s; }
.confetti-dur-4 { animation-duration: 5s; }

.confetti-delay-0 { animation-delay: 0s; }
.confetti-delay-1 { animation-delay: 0.25s; }
.confetti-delay-2 { animation-delay: 0.5s; }
.confetti-delay-3 { animation-delay: 0.75s; }

#button-submit-generate-zertifikat,
.generate-zertifikat-print-button,
.generate-zertifikat-pdf-button {
    position: relative;
    overflow: hidden;
}
.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
   ======================================== */
.generate-zertifikat-print-button,
.generate-zertifikat-pdf-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9f3d, #f39324);
    border: 2px solid #f39324;
    transition: all 0.3s ease;
}

.generate-zertifikat-print-button:hover,
.generate-zertifikat-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
   ======================================== */
.generate-zertifikat-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
   ======================================== */
.generate-zertifikat-form-section .base-form-input {
    position: relative;
    transition: all 0.4s ease;
}

.generate-zertifikat-form-section .base-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 */
.generate-zertifikat-print-button:hover,
.generate-zertifikat-pdf-button:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

@media (max-width: 575px) {
    .retro-grid {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        margin-left: 0;
        left: 0;
        background-size: 48px 48px;
    }
}

/* ========================================
   16. PRINT MODE: Disable all effects
   ======================================== */
@media print {
    .retro-grid,
    .retro-grid-overlay,
    .particles-container,
    .confetti-container,
    .sparkle {
        display: none !important;
    }

    .generate-zertifikat-form-section .base-headline-h1 {
        -webkit-text-fill-color: #000;
        background: none;
        color: #000;
    }

    .generate-zertifikat-form-section::before {
        display: none;
    }
}
