/* 
 * Math Pet Adventures - Landing Page Styles
 * Marketing-specific layout and components
 */

/* Ensure scrolling is ENABLED for landing page */
html,
body.landing-page {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

.landing-page {
    overflow-y: auto;
}

.landing-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    letter-spacing: 1px;
}

.landing-hero {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
    position: relative;
    /* Ensure it stays above background elements */
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.landing-hero h1 {
    font-size: 4.5rem;
    /* Increased from 3.5rem for bigger screens */
    background: linear-gradient(135deg, #fff 0%, #a5d8ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* Ensure title has breathing room on mobile */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.landing-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Ensure subtitle also has breathing room */
    padding: 0 1rem;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 2rem;
    margin-bottom: 4rem;
}

/* On smaller screens, stack them */
@media (max-width: 900px) {
    .landing-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.feature-card.plus-card {
    grid-column: 1 / -1;
    /* Span all columns */
    border: 2px solid transparent;
    background: linear-gradient(rgba(30, 30, 40, 0.9), rgba(30, 30, 40, 0.9)) padding-box,
        linear-gradient(45deg, #FFD700, #FFA500) border-box;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
    /* Make the card container bigger as requested */
    padding: 3rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card.plus-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

.feature-card.plus-card:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.landing-footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Global button modifiers for landing page */
.btn-primary.small,
.btn-secondary.small {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    width: auto;
    min-width: 120px;
}

/* Ensure landing page primary buttons match the premium feel everywhere */
.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #1a0505;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    max-width: none;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
    filter: brightness(1.1);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

.hero-primary-btns {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-secondary-btns {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Override primary button for landing page - "Play Now" needs to pop */
.landing-hero .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #1a0505;
    /* Dark text for contrast */
    font-size: 1.2rem;
    /* Larger text */
    padding: 1rem 3rem;
    /* Larger button */
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    /* Stronger glow */
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.landing-hero .btn-primary:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.landing-hero .btn-secondary {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Snowflake Animations */
.snow-flake {
    position: absolute;
    color: white;
    opacity: 0.8;
    z-index: 1;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px white;
}

.s-1 {
    left: 10%;
    font-size: 1.5rem;
    animation-duration: 10s;
    animation-delay: 0s;
    top: -10%;
}

.s-2 {
    left: 25%;
    font-size: 1rem;
    animation-duration: 15s;
    animation-delay: 2s;
    top: -10%;
}

.s-3 {
    left: 40%;
    font-size: 2rem;
    animation-duration: 12s;
    animation-delay: 4s;
    top: -10%;
}

.s-4 {
    left: 60%;
    font-size: 1.2rem;
    animation-duration: 18s;
    animation-delay: 1s;
    top: -10%;
}

.s-5 {
    left: 75%;
    font-size: 1.8rem;
    animation-duration: 14s;
    animation-delay: 3s;
    top: -10%;
}

.s-6 {
    left: 90%;
    font-size: 1.4rem;
    animation-duration: 16s;
    animation-delay: 5s;
    top: -10%;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(720deg) translateX(20px);
        opacity: 0;
    }
}

/* Position trees specifically for landing page visual balance */
.forest-tree-frontpage,
.forest-bush-frontpage {
    position: absolute;
    bottom: 0;
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Footer CTA Button - Green for "Go" */
.btn-highlight {
    background: linear-gradient(135deg, #00C853 0%, #009624 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 200, 83, 0.6);
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
}

.lang-toggle-landing {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    /* Add background container for better contrast */
    padding: 0.5rem;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
    /* Center and add opacity */
    justify-content: center;
    width: fit-content;
}

.lang-toggle-landing .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    /* Larger touch target */
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.lang-toggle-landing .lang-btn.active,
.lang-toggle-landing .lang-btn:hover {
    background: white;
    /* Solid white for active/hover */
    color: var(--primary-dark);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

/* Seasonal Theme Backgrounds - Dark Base with Subtle Glow */
body.theme-winter .app-container {
    /* Dark base (Game-like) with subtle Winter Blue glow */
    background: radial-gradient(circle at top right, rgba(28, 181, 224, 0.2) 0%, #1a1a2e 100%);
}

body.theme-summer .app-container {
    /* Dark base with subtle Summer Sun glow */
    background: radial-gradient(circle at top right, rgba(252, 227, 138, 0.2) 0%, #1a1a2e 100%);
}

body.theme-summer .landing-hero h1 {
    text-shadow: 0 0 20px rgba(255, 235, 59, 1);
}

body.theme-spring .app-container {
    /* Dark base with subtle Spring Green glow */
    background: radial-gradient(circle at top right, rgba(56, 239, 125, 0.2) 0%, #1a1a2e 100%);
}

body.theme-autumn .app-container {
    /* Dark base with subtle Autumn Orange glow */
    background: radial-gradient(circle at top right, rgba(252, 74, 26, 0.2) 0%, #1a1a2e 100%);
}

/* Realistic Border Overlays - REMOVED per user request */

/* Landing Page Mobile Fixes */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .landing-hero {
        margin-top: 1rem;
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .landing-hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        /* Ensure visibility on all mobile devices by removing complex gradient text */
        background: none;
        -webkit-text-fill-color: white;
        color: white;
        margin-bottom: 1rem;
    }

    .landing-hero p {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .landing-container {
        padding: 0.5rem;
        /* Reduced padding */
        width: 100%;
        box-sizing: border-box;
    }

    .landing-nav {
        flex-direction: row;
        /* Keep row but wrap if needed, saves vertical space */
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        padding: 0;
        /* Remove side padding */
        margin-top: 1rem;
    }

    .hero-secondary-btns {
        flex-direction: row;
        width: 100%;
        gap: 0.8rem;
        justify-content: center;
    }

    .hero-buttons .btn-primary {
        width: 100%;
        padding: 0.8rem;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn-secondary {
        /* Remove flex: 1 to allow natural width */
        width: auto;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0;
        white-space: nowrap;
        gap: 0.5rem;
    }

    .landing-features {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1rem;
        /* Reduced gap */
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
        /* Compact card */
    }
}

/* Contact Section Styles */
/* Contact Section Styles */
/* Contact Section Styles */
.contact-section {
    max-width: 1000px;
    /* Increased from 800px */
    width: 100%;
    margin: 0 auto 5rem;
    padding: 0 1rem;
}

.contact-panel {
    padding: 3.5rem;
    /* Increased padding */
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.contact-panel h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    /* Increased font size */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.glass-input {
    width: 100%;
    padding: 16px 20px;
    /* Increased padding */
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-family: inherit;
    font-size: 1.15rem;
    /* Increased font size */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.15rem;
}

textarea.glass-input {
    resize: vertical;
    min-height: 160px;
    /* Increased height */
}

/* Captcha Styles */
.captcha-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#captcha-question {
    color: #ffd700;
    font-weight: 800;
    font-size: 1.6rem;
    /* Increased font size */
    min-width: 100px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

#captcha-input {
    width: 140px;
    /* Increased width */
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

#refresh-captcha {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.4rem;
    transition: color 0.2s, transform 0.2s;
    padding: 0.5rem;
}

#refresh-captcha:hover {
    color: white;
    transform: rotate(180deg);
}

.full-width {
    width: 100%;
    padding: 1.2rem;
    /* Increased padding */
    font-size: 1.3rem;
    /* Increased font size */
    margin-top: 1rem;
    font-weight: 700;
}

.message-display {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5rem;
    font-weight: 600;
}

.message-display.success {
    color: var(--success-color);
}

.message-display.error {
    color: var(--error-color);
}

@media (max-width: 600px) {
    .contact-panel {
        padding: 1.5rem;
    }

    .captcha-container {
        padding: 1rem;
        gap: 0.8rem;
        flex-direction: column;
        /* Stack vertically on mobile */
    }

    #captcha-question {
        font-size: 1.5rem;
        /* Make it clearly visible */
    }

    #captcha-input {
        width: 100%;
        /* Full width input */
        font-size: 1.2rem;
        padding: 0.6rem;
    }

    #refresh-captcha {
        align-self: flex-end;
        /* Move refresh button to corner or center */
        margin-top: -0.5rem;
    }
}

/* PLUS Subscription Feature Card Styles */
.plus-intro {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.plus-intro p {
    margin: 0 0 0.3rem 0;
}

.plus-intro p.note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0;
}

.plus-price-container {
    text-align: left;
    margin: 1rem 0;
    padding-left: 0;
}

.plus-price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFD700;
    display: block;
    margin-bottom: 0.3rem;
}

.plus-terms {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

.plus-disclaimer {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    margin-top: 0.8rem;
}

.plus-disclaimer p {
    margin-bottom: 1em;
}

.plus-disclaimer p:first-child {
    margin-top: 0;
}

.plus-disclaimer p:last-child {
    margin-bottom: 0;
}

.plus-legal {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
}

/* Share Buttons */
.share-container {
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.share-btn:hover {
    transform: scale(1.15) translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.share-btn.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.share-btn.facebook:hover {
    color: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
}

.share-btn.twitter:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.5);
}

@media (max-width: 768px) {
    .share-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .share-buttons {
        gap: 1rem;
    }
}