/* ==========================================================================
   Prizes & Glory: Immersive Refined Showcase Stylesheet
   ========================================================================== */

:root {
    --pg-gold: #FFD54A;
    --pg-cyan: #00E5FF;
    --pg-purple: #6c5ce7;
    --pg-bg: #05060e;
}

/* 1. Base Section Container */
.prizes-glory-section {
    background: #03040c; /* Base fallback background */
    position: relative;
    padding: 120px 0 100px 0;
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    color: #ffffff;
    z-index: 5;
}

/* 2. Pure CSS Parallax Background Layer */
.pg-parallax-bg {
    position: absolute;
    inset: -180px 0;
    width: 100%;
    height: calc(100% + 360px);
    pointer-events: none;
    z-index: 1;
    background-color: #03040c;
    background-image:
        radial-gradient(circle at 50% 20%, rgba(90, 60, 210, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 15% 35%, rgba(0, 229, 255, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 85% 65%, rgba(108, 92, 231, 0.08) 0%, transparent 70%),
        linear-gradient(rgba(108, 92, 231, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 80px 80px, 80px 80px;
    will-change: transform;
}

/* Ambient glow & reflections overlays */
.pg-aurora {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(108, 92, 231, 0.06) 50%, transparent 80%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.pg-stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1.2px 1.2px at 50px 80px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 200px 180px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.2px 1.2px at 350px 50px, rgba(0, 229, 255, 0.6), transparent),
        radial-gradient(2px 2px at 600px 300px, rgba(255, 213, 74, 0.6), transparent),
        radial-gradient(1.2px 1.2px at 800px 120px, #ffffff, transparent);
    background-size: 800px 800px;
    animation: starsPulse 20s ease-in-out infinite alternate;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes starsPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.03); }
}

/* Single Soft Animated Spotlight */
.pg-spotlights-wrap {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 700px;
    pointer-events: none;
    z-index: 2;
}

.pg-spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 700px;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, rgba(108, 92, 231, 0.02) 65%, transparent 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: blur(50px);
    transform-origin: top center;
    pointer-events: none;
    animation: centralSweep 15s ease-in-out infinite alternate;
}

@keyframes centralSweep {
    0% { transform: translateX(-50%) rotate(-5deg); opacity: 0.6; }
    100% { transform: translateX(-50%) rotate(5deg); opacity: 1.0; }
}

/* 3. Title & Header */
.pg-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.pg-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 40%, var(--pg-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
    margin-bottom: 15px;
}

.pg-subtitle {
    color: #a0a5c0;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.85;
}

/* 4. Cinematic 3D Podium Layout */
.pg-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    max-width: 1050px;
    margin: 60px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    perspective: 1500px;
}

/* Pedestals */
.pg-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
}

.pg-pedestal {
    width: 250px;
    background: linear-gradient(135deg, rgba(15, 17, 38, 0.8) 0%, rgba(6, 7, 18, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 16px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 20px 25px;
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.08), 
        inset -3px -3px 7px rgba(0, 0, 0, 0.6), 
        0 20px 45px rgba(0, 0, 0, 0.55);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

/* Height hierarchy */
.pg-step.step-1 .pg-pedestal {
    height: 250px;
    border-color: rgba(255, 213, 74, 0.3);
    box-shadow: 
        0 25px 55px rgba(255, 213, 74, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.6);
}

.pg-step.step-2 .pg-pedestal {
    height: 190px;
    border-color: rgba(0, 229, 255, 0.25);
}

.pg-step.step-3 .pg-pedestal {
    height: 150px;
    border-color: rgba(108, 92, 231, 0.25);
}

/* Interactive Pedestal Hover & shine */
.pg-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pg-step:hover {
    transform: translateY(-12px) scale(1.04) rotateY(2deg);
}

.pg-shine-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.pg-shine-bar {
    position: absolute;
    top: 0; left: -150%;
    width: 200%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.01) 30%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.01) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease-in-out;
}

.pg-step:hover .pg-shine-bar {
    left: 150%;
}

.pg-step:hover .pg-pedestal {
    border-color: var(--ring-color) !important;
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.8),
        0 0 30px var(--ring-color) !important;
}

/* Rank configuration variables */
.pg-step.step-1 { 
    order: 2; 
    --ring-color: rgba(255, 213, 74, 0.65);
    --trophy-glow: rgba(255, 213, 74, 0.75);
}
.pg-step.step-2 { 
    order: 1; 
    --ring-color: rgba(189, 195, 199, 0.55);
    --trophy-glow: rgba(189, 195, 199, 0.65);
}
.pg-step.step-3 { 
    order: 3; 
    --ring-color: rgba(205, 127, 50, 0.5);
    --trophy-glow: rgba(205, 127, 50, 0.6);
}

/* 5. Trophies Floating */
.pg-trophy-display {
    position: relative;
    margin-bottom: 8px;
    z-index: 5;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Trophy vectors */
.pg-trophy-vector {
    width: 105px;
    height: 105px;
    filter: drop-shadow(0 0 18px var(--trophy-glow));
    animation: floatTrophy 4s ease-in-out infinite alternate;
    transform: translateZ(40px);
    transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.pg-step.step-1 .pg-trophy-vector {
    width: 135px;
    height: 135px;
    --trophy-glow: rgba(255, 213, 74, 0.45);
    animation-duration: 3.2s;
}

.pg-step.step-2 .pg-trophy-vector {
    --trophy-glow: rgba(0, 229, 255, 0.35);
    animation-delay: -0.8s;
}

.pg-step.step-3 .pg-trophy-vector {
    --trophy-glow: rgba(108, 92, 231, 0.3);
    animation-delay: -1.6s;
}

@keyframes floatTrophy {
    0% { transform: translateZ(40px) translateY(0) rotate(-1deg); }
    100% { transform: translateZ(40px) translateY(-10px) rotate(2deg); }
}

/* Light cone under trophies */
.pg-cone {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 160px;
    background: radial-gradient(ellipse at bottom center, var(--cone-color) 0%, transparent 72%);
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

.pg-step.step-1 .pg-cone { --cone-color: var(--pg-gold); }
.pg-step.step-2 .pg-cone { --cone-color: var(--pg-cyan); }
.pg-step.step-3 .pg-cone { --cone-color: var(--pg-purple); }

/* Neon Rings on top of pedestals */
.pg-pedestal-ring {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    width: 130px;
    height: 130px;
    border: 1.5px solid var(--ring-color);
    border-radius: 50%;
    animation: ringPulse 4s linear infinite;
    pointer-events: none;
}

@keyframes ringPulse {
    0% { transform: translateX(-50%) rotateX(75deg) scale(0.85); opacity: 0.7; }
    50% { transform: translateX(-50%) rotateX(75deg) scale(1.1); opacity: 0.35; }
    100% { transform: translateX(-50%) rotateX(75deg) scale(1.35); opacity: 0; }
}

.pg-step.step-1 .pg-pedestal-ring { --ring-color: rgba(255, 213, 74, 0.35); }
.pg-step.step-2 .pg-pedestal-ring { --ring-color: rgba(0, 229, 255, 0.3); }
.pg-step.step-3 .pg-pedestal-ring { --ring-color: rgba(108, 92, 231, 0.3); }

/* Crown floating above Champion */
.pg-crown {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 12px rgba(255, 213, 74, 0.6));
    animation: crownFloat 2.5s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes crownFloat {
    0% { transform: translateX(-50%) translateY(0) rotate(-3deg) scale(1); }
    100% { transform: translateX(-50%) translateY(-8px) rotate(3deg) scale(1.08); }
}

/* 6. Rank & Labels */
.pg-rank-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--badge-color);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    transform: translateZ(25px);
}

.pg-step.step-1 .pg-rank-badge {
    --badge-color: var(--pg-gold);
    --badge-bg: rgba(255, 213, 74, 0.06);
    --badge-border: rgba(255, 213, 74, 0.25);
}

.pg-step.step-2 .pg-rank-badge {
    --badge-color: var(--pg-cyan);
    --badge-bg: rgba(0, 229, 255, 0.06);
    --badge-border: rgba(0, 229, 255, 0.25);
}

.pg-step.step-3 .pg-rank-badge {
    --badge-color: var(--pg-purple);
    --badge-bg: rgba(108, 92, 231, 0.06);
    --badge-border: rgba(108, 92, 231, 0.25);
}

.pg-prize-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    margin: 5px 0;
    transform: translateZ(35px);
}

.pg-step.step-1 .pg-prize-val {
    font-size: 2.3rem;
    text-shadow: 0 0 12px rgba(255, 213, 74, 0.25);
}

.pg-prize-extra {
    font-size: 0.88rem;
    color: #b0b5cf;
    font-weight: 600;
    transform: translateZ(25px);
}

/* Floor Reflection element */
.pg-reflection-floor {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 35px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.12) 0%, transparent 72%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 1;
}

/* 7. Refined Showcase Container */
.pg-showcase-container {
    max-width: 950px;
    margin: 60px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.pg-showcase-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pg-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.pg-chip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(13, 14, 33, 0.6) 0%, rgba(5, 6, 12, 0.92) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--chip-color, var(--pg-cyan));
    border-radius: 16px;
    padding: 14px 20px;
    transition: all 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.pg-chip:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--chip-color);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 20px var(--chip-color);
}

.pg-chip-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chip-color, var(--pg-cyan));
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pg-chip-info {
    display: flex;
    flex-direction: column;
}

.pg-chip-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.pg-chip-desc {
    font-size: 0.78rem;
    color: #a0a5c0;
    margin-top: 3px;
    line-height: 1.3;
}

/* CSS Animated Vector Icons for Showcase */
.pg-mini-svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Float for trophy */
.pg-chip:hover .svg-trophy {
    animation: miniTrophyFloat 1.2s ease-in-out infinite alternate;
}
@keyframes miniTrophyFloat {
    0% { transform: translateY(0) rotate(-4deg); }
    100% { transform: translateY(-4px) rotate(4deg); }
}

/* Bounce for gift box */
.pg-chip:hover .svg-gift {
    animation: miniGiftBounce 0.8s ease-in-out infinite alternate;
}
@keyframes miniGiftBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-5px) scale(1.05); }
}

/* Hologram pulse for globe */
.pg-chip:hover .svg-globe {
    animation: miniGlobeSpin 5s linear infinite;
}
@keyframes miniGlobeSpin {
    to { transform: rotate(360deg); }
}

/* Shine pulse for certificate */
.pg-chip:hover .svg-cert {
    animation: miniCertShine 1.2s ease-in-out infinite alternate;
}
@keyframes miniCertShine {
    0% { opacity: 0.8; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 5px var(--chip-color)); }
}

/* Swing for briefcase/internship */
.pg-chip:hover .svg-case {
    animation: miniCaseSwing 0.8s ease-in-out infinite alternate;
}
@keyframes miniCaseSwing {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-2px); }
}

/* 8. Terms Info Panel */
.pg-info-panel {
    max-width: 700px;
    margin: 60px auto 0;
    background: linear-gradient(135deg, rgba(13, 14, 33, 0.5) 0%, rgba(5, 6, 12, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 20px;
    padding: 24px 30px;
    z-index: 10;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.pg-info-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: #b0b5cf;
    line-height: 1.6;
}

.pg-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pg-info-list i {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--pg-cyan);
}

/* ==========================================================================
   Responsive Adaptation
   ========================================================================== */

@media (max-width: 1024px) {
    .pg-stage {
        gap: 20px;
    }
    .pg-pedestal {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .prizes-glory-section {
        padding: 90px 0 70px 0;
    }
    .pg-stage {
        flex-direction: column;
        align-items: center;
        gap: 50px;
        margin-top: 40px;
    }
    
    /* Stack layout overrides - Champion first, then silver, then bronze */
    .pg-step.step-1 { order: 1; }
    .pg-step.step-2 { order: 2; }
    .pg-step.step-3 { order: 3; }

    .pg-pedestal {
        width: 280px;
        height: auto !important;
        padding-bottom: 30px;
    }
    .pg-crown {
        top: -32px;
    }
    .pg-reflection-floor {
        display: none;
    }
    .pg-info-panel {
        margin: 50px 20px 0 20px;
        padding: 20px 24px;
    }
}
