/* =====================================================
   POONAM MALEY STORES — SPLASH SCREEN
   Beautiful Indian ethnic wear theme
   Desktop: Full immersive with large visuals
   Mobile: Light, fast, compact
   ===================================================== */

body.splash-active { overflow: hidden !important; height: 100vh !important; }

/* ── Base Overlay ── */
.indian-splash-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, #1a0533 0%, #0d0118 50%, #000000 100%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Georgia, serif;
}

/* ── Ambient glow ── */
.splash-bg-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse,
        rgba(212,175,55,0.12) 0%,
        rgba(160,60,180,0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: bgPulse 3s ease-in-out infinite;
}
@keyframes bgPulse {
    0%,100% { opacity:0.7; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity:1;   transform: translate(-50%,-50%) scale(1.1); }
}

/* ── Gold particles ── */
#splash-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.spl-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700 0%, #D4AF37 60%, transparent 100%);
    animation: particleFloat linear infinite;
    will-change: transform, opacity;
}
@keyframes particleFloat {
    0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-95vh) rotate(360deg); opacity: 0; }
}

/* ── Mandala rings ── */
.splash-mandala-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    pointer-events: none;
    z-index: 2;
}
.mandala-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-style: solid;
}
/* Desktop rings */
.ring-1 { width: 320px; height: 320px; border-width: 1.5px; border-color: rgba(212,175,55,0.5);  animation: ringRotate 12s linear infinite; }
.ring-2 { width: 260px; height: 260px; border-width: 1px;   border-color: rgba(212,175,55,0.3);  animation: ringRotate 18s linear infinite reverse; border-style: dashed; }
.ring-3 { width: 380px; height: 380px; border-width: 1px;   border-color: rgba(180,60,200,0.25); animation: ringRotate 24s linear infinite; border-style: dotted; }
.ring-4 { width: 430px; height: 430px; border-width: 1.5px; border-color: rgba(212,175,55,0.15); animation: ringRotate 30s linear infinite reverse; }
@keyframes ringRotate { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Center Stage ── */
.splash-center-stage {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Silhouette / Decorative art ── */
.splash-art {
    position: relative;
    width: 200px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.splash-art-inner {
    position: relative;
    width: 160px;
    height: 220px;
    border-radius: 80px 80px 60px 60px;
    background: linear-gradient(160deg, #C9A961 0%, #8B4A6B 40%, #4B0082 100%);
    box-shadow:
        0 0 40px rgba(212,175,55,0.4),
        0 0 80px rgba(140,60,180,0.2),
        inset 0 -20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: artGlow 3s ease-in-out infinite alternate;
}
@keyframes artGlow {
    from { box-shadow: 0 0 30px rgba(212,175,55,0.35), 0 0 60px rgba(140,60,180,0.15); }
    to   { box-shadow: 0 0 60px rgba(212,175,55,0.6),  0 0 100px rgba(140,60,180,0.3); }
}

/* Woman silhouette using CSS art */
.splash-woman {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
/* Chunni/dupatta flowing effect */
.splash-chunni {
    position: absolute;
    top: 15px;
    left: -20px;
    width: 60px;
    height: 140px;
    background: linear-gradient(160deg, rgba(255,182,193,0.8), rgba(212,175,55,0.6));
    border-radius: 20px 40px 60px 20px;
    transform: rotate(-20deg);
    animation: chunniFlow 2.5s ease-in-out infinite alternate;
    opacity: 0.85;
}
.splash-chunni-2 {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 50px;
    height: 120px;
    background: linear-gradient(200deg, rgba(212,175,55,0.7), rgba(180,60,160,0.5));
    border-radius: 30px 20px 50px 30px;
    transform: rotate(15deg);
    animation: chunniFlow2 3s ease-in-out infinite alternate;
    opacity: 0.75;
}
@keyframes chunniFlow  { from { transform: rotate(-20deg) translateY(0);   } to { transform: rotate(-15deg) translateY(-8px);  } }
@keyframes chunniFlow2 { from { transform: rotate(15deg)  translateY(0);   } to { transform: rotate(10deg)  translateY(-6px);  } }

/* Saree drape layers */
.splash-saree-layer {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 100px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(201,169,97,0.6) 30%,
        rgba(139,74,107,0.8) 70%,
        rgba(75,0,130,0.9) 100%
    );
    border-radius: 0 0 60px 60px;
}
/* Saree pleats */
.splash-saree-pleats {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 6px,
        rgba(212,175,55,0.3) 6px,
        rgba(212,175,55,0.3) 8px
    );
    border-radius: 0 0 40px 40px;
}
/* Embroidery dots */
.splash-embroidery {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.emb-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 4px rgba(255,215,0,0.8);
    animation: embTwinkle 1.5s ease-in-out infinite;
}
.emb-dot:nth-child(odd)  { animation-delay: 0.3s; }
.emb-dot:nth-child(even) { animation-delay: 0.7s; }
@keyframes embTwinkle { 0%,100% { opacity:0.5; transform:scale(0.8); } 50% { opacity:1; transform:scale(1.3); } }

/* Golden border frame */
.splash-art-border {
    position: absolute;
    inset: -4px;
    border-radius: 82px 82px 62px 62px;
    border: 2px solid rgba(212,175,55,0.6);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
    pointer-events: none;
}

/* Sparkles around image */
.splash-sparkles { position: absolute; inset: -30px; pointer-events: none; }
.sp {
    position: absolute;
    color: #FFD700;
    font-size: 14px;
    animation: spTwinkle 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255,215,0,0.8);
}
.sp-1 { top: 5%;  left: 10%; animation-delay: 0s;    font-size: 10px; }
.sp-2 { top: 15%; right: 8%; animation-delay: 0.4s;  font-size: 14px; }
.sp-3 { top: 50%; left: 2%;  animation-delay: 0.8s;  font-size: 8px; }
.sp-4 { top: 60%; right: 4%; animation-delay: 1.2s;  font-size: 12px; }
.sp-5 { top: 80%; left: 15%; animation-delay: 0.6s;  font-size: 10px; }
.sp-6 { top: 85%; right: 12%;animation-delay: 1.0s;  font-size: 14px; }
.sp-7 { top: 30%; left: 5%;  animation-delay: 1.4s;  font-size: 8px; }
.sp-8 { top: 40%; right: 2%; animation-delay: 0.2s;  font-size: 12px; }
@keyframes spTwinkle {
    0%,100% { opacity:0.2; transform:scale(0.7) rotate(0deg); }
    50%      { opacity:1;   transform:scale(1.3) rotate(15deg); }
}

/* ── Brand Name ── */
.splash-brand {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 20px;
}
.splash-brand-welcome {
    display: block;
    font-size: 13px;
    color: rgba(212,175,55,0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.splash-brand-name {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(212,175,55,0.6), 0 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease 0.5s both;
    line-height: 1.2;
}
.splash-brand-heritage {
    display: block;
    font-size: 12px;
    color: rgba(255,182,193,0.8);
    letter-spacing: 2px;
    margin-top: 4px;
    animation: fadeInUp 0.8s ease 0.7s both;
}
.splash-brand-tagline {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1.5px;
    margin-top: 6px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.9s both;
}
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Progress Bar ── */
.splash-progress-wrap {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    text-align: center;
    z-index: 10;
}
.splash-progress-bar {
    height: 2px;
    background: rgba(212,175,55,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}
.splash-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C9A961, #D4AF37, #FFD700);
    border-radius: 2px;
    animation: progressFill 2.8s ease forwards;
}
@keyframes progressFill { 0%{width:0%} 100%{width:100%} }
.splash-loading-text {
    font-size: 10px;
    color: rgba(212,175,55,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ── Fade out ── */
.indian-splash-overlay.fade-out {
    animation: splashFadeOut 0.6s ease forwards;
}
@keyframes splashFadeOut {
    from { opacity:1; transform:scale(1); }
    to   { opacity:0; transform:scale(1.03); }
}

/* =====================================================
   DESKTOP ENHANCEMENTS (larger rings, bigger art)
   ===================================================== */
@media (min-width: 769px) {
    .splash-art { width: 220px; height: 280px; }
    .splash-art-inner { width: 180px; height: 260px; }
    .splash-brand-name { font-size: 34px; }
    .splash-brand-welcome { font-size: 14px; }
    .ring-1 { width: 360px; height: 360px; }
    .ring-2 { width: 290px; height: 290px; }
    .ring-3 { width: 440px; height: 440px; }
    .ring-4 { width: 500px; height: 500px; }
    .splash-progress-wrap { width: 220px; }
}

/* =====================================================
   MOBILE — Lightweight, fast, compact
   ===================================================== */
@media (max-width: 768px) {
    /* Simpler background */
    .indian-splash-overlay {
        background: linear-gradient(160deg, #0d0118 0%, #1a0533 50%, #0d0118 100%);
    }

    /* Smaller glow */
    .splash-bg-glow { width: 300px; height: 300px; }

    /* Fewer, smaller rings */
    .ring-1 { width: 200px; height: 200px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { display: none; }
    .ring-4 { display: none; }

    /* Smaller particles count handled in JS */
    .spl-particle { max-width: 3px; max-height: 3px; }

    /* Compact art */
    .splash-art { width: 140px; height: 170px; }
    .splash-art-inner { width: 110px; height: 155px; border-radius: 55px 55px 40px 40px; }
    .splash-art-border { border-radius: 57px 57px 42px 42px; }
    .splash-chunni { width: 40px; height: 90px; }
    .splash-chunni-2 { width: 35px; height: 80px; }
    .splash-saree-layer { height: 70px; }

    /* Compact brand */
    .splash-brand-name { font-size: 22px; }
    .splash-brand-welcome { font-size: 11px; letter-spacing: 2px; }
    .splash-brand-heritage { font-size: 11px; }
    .splash-brand { margin-top: 14px; }

    /* Progress */
    .splash-progress-wrap { bottom: 20px; width: 140px; }
    .splash-loading-text { font-size: 9px; }

    /* Sparkles smaller */
    .sp { font-size: 10px !important; }
}
