/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff5f5 0%, #fff9c4 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Squares Background */
.squares {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.square {
    position: absolute;
    background: rgba(255, 182, 193, 0.2);
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff69b4, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff69b4, #ffd700);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-switcher button:hover {
    background: linear-gradient(135deg, #ff1493, #ffc107);
    transform: translateY(-2px);
}

.language-switcher button.active {
    background: linear-gradient(135deg, #ff1493, #ffc107);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.8rem;
    color: #ff69b4;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Game Container */
.game-container {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Game Rating Section */
.rating-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.rating {
    text-align: center;
}

.stars {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.player-reviews {
    display: grid;
    gap: 1rem;
}

.review {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 5px;
    font-style: italic;
}

/* Game Intro Section */
.game-intro p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* How to Play Section */
.how-to-play ol {
    list-style-position: inside;
    padding-left: 1rem;
}

.how-to-play li {
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

/* Game Controls Section */
.controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.controls ul, .tips ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.controls li, .tips li {
    margin-bottom: 0.5rem;
}

/* Game Guide Section */
.guide-container {
    display: grid;
    gap: 2rem;
}

.guide-section {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.guide-section h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

/* Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rating-container {
        grid-template-columns: 1fr;
    }

    .features-grid, .controls-container {
        grid-template-columns: 1fr;
    }

    main {
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 180, 0.7);
}

/* Smooth transitions for all interactive elements */
a, button, select {
    transition: all 0.3s ease;
}

/* Hover effects for cards */
.bg-white\/80 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white\/80:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loading animation for iframe */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
} 