/* Main Game Section */
.word-meaning-game-hero-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Container Layout */
.word-meaning-game-flex-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.word-meaning-game-flex-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
    animation: word-meaning-game-rotate 20s linear infinite;
}

/* Content Area - Left Side */
.word-meaning-game-content-wrapper {
    z-index: 1;
}

.word-meaning-game-main-title {
    font-size: 3.2em;
    font-weight: 900;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: word-meaning-game-fadeInLeft 0.8s ease-out;
}

.word-meaning-game-subtitle {
    font-size: 1.1em;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 30px;
    animation: word-meaning-game-fadeInLeft 0.8s ease-out 0.2s backwards;
}

/* Play Button */
.word-meaning-game-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
    animation: word-meaning-game-fadeInLeft 0.8s ease-out 0.4s backwards;
}

.word-meaning-game-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.word-meaning-game-cta-button:hover::before {
    left: 100%;
}

.word-meaning-game-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.45);
}

.word-meaning-game-cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.word-meaning-game-button-label {
    position: relative;
    z-index: 1;
}

.word-meaning-game-button-icon {
    font-size: 1.1em;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.word-meaning-game-cta-button:hover .word-meaning-game-button-icon {
    transform: translateX(5px);
}

/* Visual Area - Right Side - IMPROVED */
.word-meaning-game-visual-wrapper {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.word-meaning-game-image-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    animation: word-meaning-game-fadeInRight 0.8s ease-out 0.3s backwards, 
               word-meaning-game-float 3s ease-in-out infinite 1s;
    width: 100%;
    max-width: 500px; /* Added max-width constraint */
    margin: 0 auto;
}

.word-meaning-game-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

.word-meaning-game-image-container:hover::before {
    opacity: 1;
}

.word-meaning-game-image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.25);
    animation: none;
}

.word-meaning-game-featured-image {
    width: 100%;
    height: auto; /* Changed from fixed height to auto */
    aspect-ratio: 4/3; /* Added aspect ratio for consistent proportions */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.word-meaning-game-image-container:hover .word-meaning-game-featured-image {
    transform: scale(1.08);
}

/* Animations */
@keyframes word-meaning-game-fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes word-meaning-game-fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes word-meaning-game-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes word-meaning-game-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Tablet Responsive - IMPROVED */
@media (max-width: 1024px) {
    .word-meaning-game-flex-container {
        gap: 40px;
        padding: 40px 35px;
    }
    
    .word-meaning-game-main-title {
        font-size: 2.8em;
    }
    
    .word-meaning-game-subtitle {
        font-size: 1.05em;
    }

    .word-meaning-game-image-container {
        max-width: 400px; /* Adjusted for tablet */
    }

    .word-meaning-game-featured-image {
        aspect-ratio: 1/1; /* Square aspect ratio for tablets */
    }
}

/* Mobile Responsive - Better Layout - IMPROVED */
@media (max-width: 768px) {
    .word-meaning-game-hero-section {
        margin: 30px auto;
        padding: 0 15px;
    }

    .word-meaning-game-flex-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 25px;
        border-radius: 20px;
        text-align: center;
    }
    
    .word-meaning-game-content-wrapper {
        order: 2;
    }

    .word-meaning-game-visual-wrapper {
        order: 1;
    }
    
    .word-meaning-game-main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    
    .word-meaning-game-subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .word-meaning-game-image-container {
        max-width: 100%; /* Full width on mobile */
        margin: 0 auto;
    }

    .word-meaning-game-featured-image {
        aspect-ratio: 16/9; /* Wider aspect ratio for mobile */
        max-height: 300px; /* Added max-height constraint */
    }

    .word-meaning-game-cta-button {
        width: auto;
        padding: 14px 32px;
        font-size: 1.1em;
    }

    .word-meaning-game-image-container {
        animation: word-meaning-game-fadeInRight 0.8s ease-out 0.3s backwards;
    }
}

/* Small Mobile - Optimized - IMPROVED */
@media (max-width: 480px) {
    .word-meaning-game-hero-section {
        margin: 20px auto;
        padding: 0 10px;
    }

    .word-meaning-game-flex-container {
        padding: 25px 20px;
        gap: 25px;
        border-radius: 16px;
    }
    
    .word-meaning-game-main-title {
        font-size: 1.8em;
        margin-bottom: 12px;
    }
    
    .word-meaning-game-subtitle {
        font-size: 0.95em;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .word-meaning-game-cta-button {
        padding: 13px 28px;
        font-size: 1em;
        gap: 10px;
    }
    
    .word-meaning-game-image-container {
        border-radius: 16px;
        max-width: 100%;
    }

    .word-meaning-game-featured-image {
        aspect-ratio: 16/9;
        max-height: 250px; /* Reduced max-height for small mobile */
        border-radius: 16px;
    }

    .word-meaning-game-button-icon {
        font-size: 1em;
    }
}

/* Extra Small Mobile - IMPROVED */
@media (max-width: 360px) {
    .word-meaning-game-flex-container {
        padding: 20px 15px;
    }

    .word-meaning-game-main-title {
        font-size: 1.6em;
    }

    .word-meaning-game-subtitle {
        font-size: 0.9em;
    }

    .word-meaning-game-featured-image {
        max-height: 200px; /* Further reduced for very small screens */
        aspect-ratio: 16/9;
    }

    .word-meaning-game-cta-button {
        padding: 12px 24px;
        font-size: 0.95em;
    }
}

/* Large Desktop - Added for better scaling on big screens */
@media (min-width: 1400px) {
    .word-meaning-game-hero-section {
        max-width: 1300px;
    }
    
    .word-meaning-game-image-container {
        max-width: 550px; /* Constrain image size on large screens */
    }
}
