/* ===================================
   WCSH SBFR Report Access System
   Animations & Effects Stylesheet
   =================================== */

/* Logo Hover Animation */
.logo-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.logo-circle:hover .logo-image {
    transform: scale(1.05);
}

.logo-image {
    transition: transform 0.3s ease;
}

/* Pulse Animation for Logo */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(59, 130, 246, 0.5);
    }
}

.logo-circle {
    animation: pulse 3s ease-in-out infinite;
}

/* Button Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.enter-button::after,
.report-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enter-button:active::after {
    width: 300px;
    height: 300px;
}

/* Fade In Animation for Portal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    animation: fadeInUp 0.6s ease-out;
}

.report-button {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Staggered Animation for Grid Items */
.reports-grid .report-button:nth-child(1) { animation-delay: 0.1s; }
.reports-grid .report-button:nth-child(2) { animation-delay: 0.15s; }
.reports-grid .report-button:nth-child(3) { animation-delay: 0.2s; }
.reports-grid .report-button:nth-child(4) { animation-delay: 0.25s; }
.reports-grid .report-button:nth-child(5) { animation-delay: 0.3s; }
.reports-grid .report-button:nth-child(6) { animation-delay: 0.35s; }
.reports-grid .report-button:nth-child(7) { animation-delay: 0.4s; }
.reports-grid .report-button:nth-child(8) { animation-delay: 0.45s; }
.reports-grid .report-button:nth-child(9) { animation-delay: 0.5s; }
.reports-grid .report-button:nth-child(10) { animation-delay: 0.55s; }
.reports-grid .report-button:nth-child(11) { animation-delay: 0.6s; }

/* Icon Bounce on Hover */
.report-button:hover .button-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(-5px); }
    75% { transform: translateY(-8px); }
}

/* Text Glow Animation */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 2px 2px 15px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(59, 130, 246, 0.6);
    }
}

.main-title,
.welcome-title {
    animation: textGlow 4s ease-in-out infinite;
}

/* Shimmer Effect for Buttons */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.report-button:hover .button-text {
    background: linear-gradient(90deg, 
        #1E40AF 0%, 
        #3B82F6 25%, 
        #60A5FA 50%, 
        #3B82F6 75%, 
        #1E40AF 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s linear infinite;
}

/* Loading Animation (can be used for transitions) */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Page Transitions */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Password Input Focus Glow */
.password-input:focus {
    animation: inputGlow 1.5s ease-in-out infinite;
}

@keyframes inputGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(30, 64, 175, 0.6),
                    0 0 40px rgba(59, 130, 246, 0.3);
    }
}

/* Error Message Shake */
.error-message.show {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Footer Fade In */
.footer {
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}