/* Wordally Website Styles - Matching the game's purple & gold theme! */

:root {
    /* Brand Colors from the game */
    --purple-primary: #4f2a98;
    --purple-dark: #3a1f73;
    --purple-light: #667eea;
    --purple-bg: #7B2CBF;
    --gold-primary: #FFD700;
    --gold-light: #FFE55C;
    --orange: #FFA500;
    --white: #FFFFFF;
    --black: #000000;

    /* Vibrant accent colors */
    --cyan: #29B6F6;
    --green: #4CAF50;
    --pink: #FF6B9D;
    --blue: #3B82F6;
    --teal: #14B8A6;
    --red: #F44336;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    overflow-x: hidden;
}

.purple-background {
    background: linear-gradient(135deg, #3a1f73 0%, #4f2a98 25%, #667eea 50%, #764ba2 75%, #4f2a98 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.game-background {
    background: url('gamebackgrounds/bg_intro1.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
header {
    padding: var(--spacing-md) 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Animated Letter Tiles */
.letter-tiles {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tile {
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    animation: bounce 2s ease-in-out infinite;
    transform-origin: center bottom;
    transition: transform 0.3s ease;
}

/* All tiles gold/orange like the app icon! */
.tile {
    background: linear-gradient(145deg, var(--gold-primary), var(--orange));
}

.tile:hover {
    transform: scale(1.1) rotate(-3deg);
}

/* Staggered bounce animation for each tile */
.tile-bounce-1 {
    animation-delay: 0s;
}

.tile-bounce-2 {
    animation-delay: 0.1s;
}

.tile-bounce-3 {
    animation-delay: 0.2s;
}

.tile-bounce-4 {
    animation-delay: 0.3s;
}

.tile-bounce-5 {
    animation-delay: 0.4s;
}

.tile-bounce-6 {
    animation-delay: 0.5s;
}

.tile-bounce-7 {
    animation-delay: 0.6s;
}

.tile-bounce-8 {
    animation-delay: 0.7s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-logo {
    max-width: 100%;
    width: 500px;
    height: auto;
    margin-bottom: var(--spacing-xs);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-subtitle-cell {
    display: inline-block;
    background: linear-gradient(145deg, var(--gold-primary), var(--orange));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.coming-soon {
    font-size: 0.9rem;
    color: var(--gold-light);
    font-weight: 500;
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-gold {
    background: linear-gradient(145deg, var(--gold-primary), var(--orange));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: var(--gold-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}


/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.05);
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: linear-gradient(145deg, var(--gold-primary), var(--orange));
    border: 3px solid;
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Purple and gold theme for all cards */
.feature-card {
    border-color: var(--purple-primary);
    box-shadow: 0 4px 15px rgba(79, 42, 152, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    opacity: 0.6;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.feature-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card p {
    color: var(--white);
    font-weight: 700;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* How to Play Section */
.how-to-play {
    padding: var(--spacing-xl) 0;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.step-number {
    background: linear-gradient(145deg, var(--gold-primary), var(--orange));
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-content {
    background: linear-gradient(145deg, var(--gold-primary), var(--orange));
    padding: var(--spacing-xs) var(--spacing-md);
    border: 3px solid var(--purple-primary);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    margin-top: var(--spacing-sm);
    width: 100%;
}

.step-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--white);
    text-shadow: none;
}

.step-content p {
    color: var(--white);
    opacity: 1;
    font-weight: 600;
}


/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: var(--white);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-separator {
    color: var(--gold-primary);
    opacity: 0.5;
}

.support-link {
    color: var(--white);
}

.support-link:hover {
    color: var(--gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: var(--white);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .tile {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .tile {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        gap: 0.3rem;
    }
}