/**
 * Singapore Jewellery — motion & entrance animations
 */

@keyframes sg-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sg-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sg-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes sg-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes sg-pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.88; transform: scale(1.02); }
}

@keyframes sg-gradient-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sg-glow-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(212, 160, 23, 0); }
}

.anim-fade-up {
    animation: sg-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-in {
    animation: sg-fade-in 0.5s ease both;
}

.anim-float {
    animation: sg-float 4s ease-in-out infinite;
}

.anim-pulse-soft {
    animation: sg-pulse-soft 2.5s ease-in-out infinite;
}

.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }
.anim-delay-4 { animation-delay: 0.32s; }
.anim-delay-5 { animation-delay: 0.4s; }
.anim-delay-6 { animation-delay: 0.48s; }

/* Interior — panels & cards */
.sg-jewellery-theme .panel,
.sg-jewellery-theme .form-section,
.sg-jewellery-theme .corp-hero {
    animation: sg-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sg-jewellery-theme .stat-card {
    animation: sg-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sg-jewellery-theme .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.sg-jewellery-theme .stat-icon-wrap {
    animation: sg-glow-ring 3s ease infinite;
}

.sg-jewellery-theme .app-session-bar {
    background: linear-gradient(270deg, #fff, #f0f4ff, #fff8eb, #fff) !important;
    background-size: 300% 300% !important;
    animation: sg-gradient-flow 12s ease infinite, sg-fade-in 0.4s ease both !important;
}

.sg-jewellery-theme .sidebar-brand-icon {
    animation: sg-float 5s ease-in-out infinite;
}

.sg-jewellery-theme .corp-hero h1 span {
    background: linear-gradient(90deg, #b45309, #d97706, #f59e0b, #d97706, #b45309);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sg-shimmer 4s linear infinite;
}

.sg-jewellery-theme .panel:hover,
.sg-jewellery-theme .form-section:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sg-jewellery-theme .btn-gold {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-jewellery-theme .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.sg-jewellery-theme .corp-hero-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
}

.sg-jewellery-theme .corp-hero-inner:not(:has(.store-brand-pill))::after {
    content: var(--sg-store-name, 'Singapore Jewellery');
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #92400e;
    background: linear-gradient(135deg, #fff8eb, #fef3c7);
    border: 1px solid rgba(217, 119, 6, 0.25);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
    animation: sg-pulse-soft 3s ease-in-out infinite;
    margin-left: auto;
}

.sg-jewellery-theme.corp-login-page .corp-brand-lockup h1 {
    background: linear-gradient(90deg, #ffd700, #fff8dc, #ffd700, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sg-shimmer 3s linear infinite;
}

.sg-jewellery-theme.corp-login-page .corp-brand-logo {
    animation: sg-glow-ring 3s ease infinite, sg-float 4s ease-in-out infinite;
}

.sg-jewellery-theme.corp-login-page .corp-login-aside {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 45%, #0f172a 100%);
    background-size: 200% 200%;
    animation: sg-gradient-flow 10s ease infinite;
}

/* Landing page */
.jewellery-store .jewellery-hero h1,
.jewellery-store .hero-showcase,
.jewellery-store .landing-logo {
    animation: sg-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jewellery-store .hero-showcase {
    animation-delay: 0.2s;
}

.jewellery-store .ornament-visual {
    animation: sg-float 5s ease-in-out infinite;
}

.jewellery-store .ornament-visual:nth-child(2) { animation-delay: 0.5s; }
.jewellery-store .ornament-visual:nth-child(3) { animation-delay: 1s; }
.jewellery-store .ornament-visual:nth-child(4) { animation-delay: 1.5s; }

.jewellery-store .collection-card,
.jewellery-store .ornament-card,
.jewellery-store .service-card,
.jewellery-store .jewellery-service-card {
    animation: sg-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jewellery-store .collection-card:hover,
.jewellery-store .ornament-card:hover,
.jewellery-store .service-card:hover,
.jewellery-store .jewellery-service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.jewellery-store .logo-icon {
    animation: sg-glow-ring 3s ease infinite, sg-float 4s ease-in-out infinite;
}

.jewellery-store .jewellery-hero h1 span {
    background: linear-gradient(90deg, #ffd700, #fff8dc, #ffd700, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sg-shimmer 3s linear infinite;
}

.jewellery-store .stock-strip-inner {
    animation: sg-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jewellery-store .landing-cta {
    position: relative;
    overflow: hidden;
}

.jewellery-store .landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 215, 0, 0.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: sg-shimmer 4s linear infinite;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .anim-fade-up, .anim-fade-in, .anim-float, .anim-pulse-soft,
    .sg-jewellery-theme .panel, .sg-jewellery-theme .form-section,
    .sg-jewellery-theme .stat-card, .sg-jewellery-theme .app-session-bar,
    .jewellery-store .ornament-visual, .jewellery-store .logo-icon {
        animation: none !important;
    }
}
