/*
 * Shared Splash Screen Styles
 * Common animations, shapes, and utilities used across all splash screen versions
 * Issue #429: Create Splash Screen for Unauthenticated Users
 */

/* ====================
   UTILITY CLASSES
   ==================== */

/* Spacer Utilities */
.spacer-xs { height: 10px; }
.spacer-sm { height: 18px; }
.spacer-md { height: 100px; }
.spacer-lg { height: 38px; }

/* Padding Utilities */
.pt-20 { padding-top: 20px; }

/* Footer Spacing */
/* .footer-spacing {
    padding: 10px 0;
    margin-top: 30px;
} */

/* ====================
   SKIP LINK (ACCESSIBILITY)
   ==================== */

.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #a855f7;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* ====================
   FLOATING GEOMETRIC SHAPES
   ==================== */

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.25;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #a855f7, #ec4899);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ec4899, #f9a8d4);
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #6b21a8, #a855f7);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 50%;
    left: 50%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #8b5cf6, #6366f1);
    border-radius: 50% 20% 30% 40%;
    bottom: 10%;
    left: 20%;
    animation-duration: 22s;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -50px) rotate(90deg); }
    50% { transform: translate(-50px, 100px) rotate(180deg); }
    75% { transform: translate(-100px, -50px) rotate(270deg); }
}

/* ====================
   GRADIENT BACKGROUNDS
   ==================== */

.gradient-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(125deg, #1a0033 0%, #6b21a8 25%, #a855f7 50%, #ec4899 75%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ====================
   METRICS LAYOUT
   ==================== */

/* Prevent metric numbers and suffixes from breaking across lines */
.metric-number-wrapper {
    display: inline-block;
    white-space: nowrap;
}

/* ====================
   FOCUS INDICATORS (ACCESSIBILITY)
   ==================== */

/* Microsoft Sign-In Button Focus */
.btn-microsoft:focus,
.btn-microsoft:focus-visible {
    outline: 3px solid #a855f7;
    outline-offset: 3px;
    box-shadow: 0 12px 30px rgba(139, 51, 209, 0.6),
                0 6px 15px rgba(217, 31, 120, 0.5),
                0 0 0 4px rgba(168, 85, 247, 0.3);
}

/* Email Sign-In Button Focus */
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-light:focus,
.btn-outline-light:focus-visible {
    outline: 3px solid #a855f7;
    outline-offset: 3px;
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
}

/* Gradient Button Focus */
.btn-gradient:focus,
.btn-gradient:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6),
                0 0 50px rgba(168, 85, 247, 0.4),
                0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Glass Button Focus */
.btn-glass:focus,
.btn-glass:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.25);
}

/* Glow Button Focus */
.btn-glow:focus,
.btn-glow:focus-visible {
    outline: 3px solid #3874ff;
    outline-offset: 3px;
    box-shadow: 0 8px 30px rgba(56, 116, 255, 0.6),
                0 0 0 4px rgba(56, 116, 255, 0.2);
}

/* Dashboard Preview Card Focus */
.dashboard-preview:focus,
.dashboard-preview:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 4px;
}

/* Sign-In Card Focus */
.signin-card:focus,
.signin-card:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 4px;
}

/* Logo Focus (for keyboard navigation) */
.bayone-logo:focus,
.bayone-logo-footer:focus {
    outline: 2px solid #a855f7;
    outline-offset: 4px;
    border-radius: 8px;
}

/* ====================
   RESPONSIVE UTILITIES
   ==================== */

/* Ensure animations are smooth on all devices */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .gradient-bg,
    .btn-microsoft,
    .btn-gradient,
    .btn-outline-primary,
    .btn-outline-light {
        animation: none;
        transition: none;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 100px; height: 100px; }
    .shape-4 { width: 180px; height: 180px; }

    .spacer-md { height: 60px; }
    .spacer-lg { height: 40px; }
}

/* ====================
   CLIENT LOGOS MARQUEE
   ==================== */

.client-logos-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 0.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0.5rem 0;
}

.client-logos-marquee {
    display: flex;
    gap: 1.5rem;
    animation: logoMarquee 35s linear infinite;
    width: max-content;
}

.client-logos-marquee:hover {
    animation-play-state: paused;
}

/* Reverse direction for second row */
.client-logos-marquee-reverse {
    animation: logoMarqueeReverse 35s linear infinite;
}

@keyframes logoMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes logoMarqueeReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ====================
   SMALLER BAYONE FOOTER
   ==================== */

.bayone-logo-footer-small {
    transition: all 0.3s ease;
}

.bayone-logo-footer-small:hover {
    opacity: 0.9 !important;
    transform: scale(1.02);
}

.bayone-logo-footer-small:focus,
.bayone-logo-footer-small:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 4px;
    border-radius: 8px;
}
