/**
 * PlayFully Intro Tutorial Styles
 * Medium screens (915px - 1649px)
 */

@import "core/global.css";
@import "core/global_prelog.css";
@import "core/fonts.css";

/* ================================ */
/* Global Contrast Shield           */
/* ================================ */

.divContrastShield {
    background: radial-gradient(
        ellipse 70% 80% at 50% 50%,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* ================================ */
/* Content Panel                    */
/* ================================ */

.divTutIntroContentPanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
    padding: 48px 48px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow: 
        0 0 80px 40px rgba(255, 131, 0, 0.1);
}

/* ================================ */
/* Top Bar                          */
/* ================================ */

.headerTopBar {
    padding: 20px 32px;
}

.navTopBar {
    max-width: 1200px;
}

.spnTutIntroSlideIndicator {
    color: var(--c9);
}

.aTutIntroTopLink {
    border: none;
    background: transparent;
}

/* ================================ */
/* Main Content                     */
/* ================================ */

.mainHeroContent {
    padding: 80px 32px 20px 32px;
}

.divHeroContentInner {
    max-width: 700px;
    width: 100%;
}

/* Predefined margin utility classes */

p.marginBottom05,
span.marginBottom05 {
    margin-bottom: 0.4em;
}
p.marginBottom1, 
span.marginBottom1 {
    margin-bottom: 0.8em;
}
p.marginBottom2,
span.marginBottom2 {
    margin-bottom: 1.6em;
}

/* ================================ */
/* Brand Block (Slide 1)            */
/* ================================ */

.divTutIntroBrandBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.divHeroBrand {
    margin-bottom: 20px;
}

.imgHeroPlayFullyLogoIcon {
    filter: drop-shadow(0 0 18px rgba(255, 131, 0, 0.5));
}

.canHover .divHeroBrand:hover .imgHeroPlayFullyLogoIcon {
    filter: drop-shadow(0 0 30px rgba(255, 131, 0, 0.9));
}

.h1HeroHeadline {
    margin: 0;
}

.h1TutIntroHeadline {
    font-family: Rubik_SemiBold, sans-serif;
    font-size: 34px;
    line-height: 1.5;
    color: var(--c7);
    max-width: 700px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0 8px;
}

/* Different font sizes for emphasis */
.spnHeadWordMedium {
    font-size: 20px;
    line-height: 1.3;
}
.spnHeadWordLight {
    font-size: 17px;
    line-height: 1.3;
}

/* ================================ */
/* Slide Title (Slides 2-7)         */
/* ================================ */

.h2TutIntroTitle {
    font-family: Rubik_SemiBold, sans-serif;
    font-size: 30px;
    line-height: 1.3;
    color: var(--c7);
    margin: 0 0 48px 0;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}
/* Slide 3 - reduced title margin */
.h2TutIntroTitleSlide3 {
    margin-bottom: 16px;
}
.h2TutIntroSectionHeader {
    font-size: 34px;
    margin-bottom: 36px;
}

/* ================================ */
/* Body Content                     */
/* ================================ */

.divTutIntroBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

/* Slide 1 body container */
.divTutIntroBody.divTutIntroBodySlide1 {
    margin-bottom: 0;
}

/* Slide 1 body - fade in after headline completes */
.divTutIntroBodySlide1 {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

/* Staggered fade-in animations for slides 2+ */
.divTutIntroFadeIn1 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.divTutIntroFadeIn2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.divTutIntroFadeIn3 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

/* CTA button inside content panel */
.divTutIntroCTAInPanel {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* Early access note styling */
.pTutIntroEarlyAccessNote {
    color: var(--c9);
}

.pTutIntroText {
    font-family: Rubik_Regular, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--c8);
    margin: 0;
    max-width: 600px;
    text-align: center;
}

.pTutIntroEmphasis {
    font-family: Rubik_Medium, sans-serif;
    color: var(--c7);
}

.spnTutIntroHighlight {
    color: var(--pf_orange);
    font-family: Rubik_SemiBold, sans-serif;
}

.spnTutIntroHighlightNoOrange {
    font-family: Rubik_SemiBold, sans-serif;
}

/* MXP label - same size as paragraph text */
.spnTutIntroMXPLabel {
    font-size: 18px;
}

/* ================================ */
/* Icon Containers                  */
/* ================================ */

.divTutIntroIconContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 26px 0;
}

.imgTutIntroMXPIcon {
    width: 50px;
    margin-bottom: 12px;
}

.imgTutIntroPlayedFullyStampIcon {
    width: 70px;
    height: auto;
    margin-bottom: 6px;
}

.imgTutIntroCplMedal {
    width: 45px;
    height: auto;
}

.imgTutIntroCoinIcon {
    width: 35px;
    height: 35px;
}

/* ================================ */
/* Treasure Cycle Animation         */
/* ================================ */

.divTutIntroTreasureCycle {
    position: relative;
    width: 200px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divTutIntroIconStack {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
}

/* Medal stack - fades in first */
.divTutIntroMedalStack {
    animation: cycleFadeInOut 9s ease-in-out infinite;
    animation-delay: 0s;
}

/* Coin stack - fades in after medals */
.divTutIntroCoinStack {
    animation: cycleFadeInOut 9s ease-in-out infinite;
    animation-delay: 3s;
}

/* Ring - fades in after coins */
.divTutIntroRingStack {
    animation: cycleFadeInOut 9s ease-in-out infinite;
    animation-delay: 6s;
}

/* Overlapping stack positions for medals */
.divTutIntroMedalStack .TutIntroStackPos1 { z-index: 1; margin-right: -18px; }
.divTutIntroMedalStack .TutIntroStackPos2 { z-index: 2; margin-right: -18px; }
.divTutIntroMedalStack .TutIntroStackPos3 { z-index: 3; margin-right: -18px; }
.divTutIntroMedalStack .TutIntroStackPos4 { z-index: 4; margin-right: -18px; }
.divTutIntroMedalStack .TutIntroStackPos5 { z-index: 5; }

/* Overlapping stack positions for coins */
.divTutIntroCoinStack .TutIntroStackPos1 { z-index: 1; margin-right: -14px; }
.divTutIntroCoinStack .TutIntroStackPos2 { z-index: 2; margin-right: -14px; }
.divTutIntroCoinStack .TutIntroStackPos3 { z-index: 3; margin-right: -14px; }
.divTutIntroCoinStack .TutIntroStackPos4 { z-index: 4; }

/* Glowing Ring */
.divTutIntroRingStack .imgTutIntroGRingIcon {
    width: 35px;
    height: auto;
}

@keyframes cycleFadeInOut {
    0% { opacity: 0; }
    4% { opacity: 0; }
    10% { opacity: 1; }
    24% { opacity: 1; }
    34% { opacity: 0; }
    100% { opacity: 0; }
}

/* ================================ */
/* Navigation Container             */
/* ================================ */

.divTutIntroNavigationContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.divTutIntroNavButtonsRow {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.divTutIntroCTARow {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.divTutIntroCTARowPrimary {
    margin-bottom: 6px;
}

.divTutIntroCTARowSecondary {
    margin-top: 6px;
}

.divTutIntroCTAIntro {
    display: flex;
    align-items: center;
}

.spnTutIntroCTAIntro {
    font-family: Rubik_Regular, sans-serif;
    font-size: 14px;
    color: var(--c6);
    margin-right: 8px;
}

.divTutIntroFinalCTA {
    gap: 14px;
}

/* ================================ */
/* Navigation Buttons               */
/* ================================ */

.divTutIntroNavBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 38px;
    border-radius: 19px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.divTutIntroNavBtn.btnTutIntroActive {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--button_glassmorphic_brd);
    color: var(--c9);
}

.canHover .divTutIntroNavBtn.btnTutIntroActive:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--button_glassmorphic_brd_hover);
    color: var(--c7);
    transform: translateY(-2px);
}

.divTutIntroNavBtn.btnTutIntroActive:focus-within {
    outline: 1px solid var(--pf_orange);
}

.divTutIntroNavBtn.btnTutIntroInactive {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid transparent;
    cursor: default;
    opacity: 0.5;
}

.divTutIntroNavBtn.btnTutIntroSecondary {
    background: transparent;
    border: 1px solid var(--c5);
}

.canHover .divTutIntroNavBtn.btnTutIntroSecondary:hover {
    border-color: var(--c7);
    background: rgba(255, 255, 255, 0.05);
}

.aTutIntroNavBtn,
.spnTutIntroNavBtn {
    font-family: Rubik_Medium, sans-serif;
    font-size: 13px;
    color: var(--c9);
    text-decoration: none;
    line-height: 38px;
    padding: 0 18px;
    text-align: center;
}

.canHover .divTutIntroNavBtn.btnTutIntroActive:hover .aTutIntroNavBtn {
    color: var(--c7);
}

.btnTutIntroInactive .spnTutIntroNavBtn {
    color: var(--c9);
}

/* ================================ */
/* CTA Buttons                      */
/* ================================ */

.divTutIntroCTABtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.divTutIntroCTABtn.btnTutIntroPrimary {
    background: var(--pf_orange);
    border: 2px solid var(--pf_orange);
}

.canHover .divTutIntroCTABtn.btnTutIntroPrimary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 131, 0, 0.4);
}

.divTutIntroCTABtn.btnTutIntroSecondary {
    background: transparent;
    border: 2px solid var(--c4);
}

.canHover .divTutIntroCTABtn.btnTutIntroSecondary:hover {
    border-color: var(--pf_orange);
    background: rgba(255, 131, 0, 0.1);
    transform: translateY(-2px);
}

.aTutIntroCTABtn {
    font-family: Rubik_Medium, sans-serif;
    font-size: 14px;
    text-decoration: none;
    padding: 0 28px;
    line-height: 44px;
}

.btnTutIntroPrimary .aTutIntroCTABtn {
    color: var(--c0);
}

.btnTutIntroSecondary .aTutIntroCTABtn {
    color: var(--c7);
}

/* ================================ */
/* Footer                           */
/* ================================ */

.footerHero {
    position: relative;
    bottom: auto;
    left: auto;
}

.divTutIntroContactContainer {
    text-align: center;
    margin-bottom: 1.1em;
}

.aTutIntroContact {
    line-height: 1.5em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.canHover .aTutIntroContact:hover {
    color: var(--pf_orange);
    text-decoration: underline;
}

/* ================================ */
/* Reduced Motion Support           */
/* ================================ */

@media (prefers-reduced-motion: reduce) {
    .divHeroBrand,
    .h1HeroHeadline,
    .h2TutIntroTitle,
    .divTutIntroBody,
    .divTutIntroNavigationContainer,
    .divTutIntroCTAInPanel {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Disable button transitions */
    .divTutIntroNavBtn,
    .divTutIntroCTABtn,
    .aTutIntroTopLink,
    .imgHeroPlayFullyLogoIcon,
    .spnHeroLogoText {
        transition: none;
    }
    
    .canHover .divTutIntroNavBtn.btnTutIntroActive:hover,
    .canHover .divTutIntroCTABtn.btnTutIntroPrimary:hover,
    .canHover .divTutIntroCTABtn.btnTutIntroSecondary:hover {
        transform: none;
    }

    /* Treasure cycle - show medals only when reduced motion */
    .divTutIntroMedalStack,
    .divTutIntroCoinStack,
    .divTutIntroRingStack {
        animation: none;
    }
    .divTutIntroMedalStack {
        opacity: 1;
    }
}

body.reduced-motion .divHeroBrand,
body.reduced-motion .h1HeroHeadline,
body.reduced-motion .h2TutIntroTitle,
body.reduced-motion .divTutIntroBody,
body.reduced-motion .divTutIntroNavigationContainer {
    animation: none;
    opacity: 1;
    transform: none;
}

body.reduced-motion .divTutIntroMedalStack,
body.reduced-motion .divTutIntroCoinStack,
body.reduced-motion .divTutIntroRingStack {
    animation: none;
}

body.reduced-motion .divTutIntroMedalStack {
    opacity: 1;
}
