/*
Theme Name: GeneratePress Doodle Baseball
Theme URI: https://doodlebaseball.me/
Description: Child theme for GeneratePress tailored for a Doodle Baseball game website.
Author: Hassan Zobeen
Author URI: https://doodlebaseball.me/
Template: generatepress
Version: 1.0.0
*/

:root {
    /* Primary Doodle Colors */
    --doodle-blue: #1a73e8;
    /* Google Blue - Main text and links */
    --doodle-yellow: #fbbc05;
    /* Google Yellow - Accents, buttons, highlights */
    --doodle-white: #ffffff;
    /* Clean backgrounds */
    --doodle-bg-light: #f8f9fa;
    /* Off-white page background */
    --doodle-text-dark: #3c4043;
    /* Dark text for contrast on yellow */
    /* Typography */
    --doodle-font-heading: 'Rubik', sans-serif;
    --doodle-font-base: 'Arial', sans-serif;
    /* Shadows */
    --shadow-button: 0 5px 0 0 #d19a00;
    /* Darker yellow/brown for button depth */
    --shadow-text: 3px 3px 0 #ffffff, 6px 6px 0 var(--doodle-yellow);
    /* Fun 3D text shadow */
}


/* STEP 3: Apply Variables to Theme Elements 
*/


/* Global Body/Background */

body {
    background-color: var(--doodle-bg-light);
}


/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--doodle-blue);
    font-family: var(--doodle-font-heading);
}


/* Main Navigation Bar Styling */

.main-navigation {
    border-bottom: 4px solid var(--doodle-yellow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--doodle-white);
}


/* Navigation Links (Menu Items) */

.main-navigation .main-nav ul li a {
    color: var(--doodle-blue);
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 20px;
    font-family: var(--doodle-font-heading);
    /* Apply Rubik to menu for consistency */
}


/* Navigation Link Hover/Current Item */

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item>a {
    background-color: var(--doodle-blue);
    color: var(--doodle-white);
}


/* Buttons (Main CTA - Play Button) */

a.button,
button:not(.menu-toggle),
input[type="submit"] {
    background-color: var(--doodle-yellow);
    color: var(--doodle-text-dark) !important;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 25px;
    transition: background-color 0.3s ease;
    border: none;
    font-family: var(--doodle-font-heading);
}

a.button:hover,
button:hover:not(.menu-toggle),
input[type="submit"]:hover {
    background-color: #fcd45c;
    /* Lighter yellow on hover */
}


/* Footer Styling */

.site-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    color: var(--doodle-blue);
}


/* === 2. HERO BANNER ANIMATIONS === */


/* Animation for the Button/Arrow to draw attention (Looping) */

@keyframes pulse-arrow {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(12px);
    }
    100% {
        transform: translateX(0px);
    }
}


/* Interactive lift effect on image hover */

@keyframes hover-lift {
    from {
        transform: translateY(0);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    to {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}


/* Slow, continuous float animation */

@keyframes float-image {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    /* Move up 5px */
    100% {
        transform: translateY(0px);
    }
}


/* === 3. HERO BANNER LAYOUT (Full Width & Increased Height) === */


/* Full-width wrapper for background color/height control */

.doodle-full-width-wrapper {
    width: 100%;
    padding: 80px 0;
    /* Increased vertical padding for more height */
    overflow: hidden;
}


/* Content wrapper (constrains content to match GP container width) */

.doodle-hero-content {
    max-width: 1200px;
    /* Match your GP Customizer Container Width */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.doodle-hero-text {
    flex: 1;
    max-width: 45%;
    padding-right: 30px;
}


/* --- ATTRACTIVE HEADING STYLES --- */

.doodle-hero-text h2 {
    font-size: 4em;
    /* Larger font size */
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--doodle-blue);
    font-family: var(--doodle-font-heading);
    font-weight: 900;
    /* Extra bold */
    /* Fun 3D text shadow */
    text-shadow: var(--shadow-text);
    text-transform: uppercase;
}


/* === 4. HERO BANNER BUTTON (Interactive & Shadows) === */

.doodle-play-button {
    background-color: var(--doodle-yellow);
    color: var(--doodle-text-dark) !important;
    font-weight: bold;
    font-size: 1.6em;
    padding: 18px 35px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease-out;
    /* 3D button shadow */
    box-shadow: var(--shadow-button);
    font-family: var(--doodle-font-heading);
}


/* Interactive: On hover, simulate a click action */

.doodle-play-button:hover {
    background-color: #fcd45c;
    transform: translateY(3px);
    /* Button moves down */
    box-shadow: 0 2px 0 0 #d19a00;
    /* Shadow shrinks */
}

.doodle-arrow {
    font-size: 1.8em;
    margin-left: 15px;
    display: block;
    animation: pulse-arrow 1.2s infinite ease-in-out;
}


/* === 5. HERO BANNER IMAGE (Deep Gradient Fade & Interactive Shadow) === */

.doodle-hero-image-wrapper {
    flex: 1;
    position: relative;
    /* Initial shadow */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease-out;
    /* MASK REMOVED */
}


/* Apply the slow continuous float animation ONLY on large screens (Desktop) */

@media (min-width: 769px) {
    .doodle-hero-image-wrapper {
        animation: float-image 3s infinite ease-in-out;
        /* Float up and down over 6 seconds */
    }
}


/* Interactive: On hover, apply the lift effect */


/* We simplify the hover-lift keyframe usage here for clarity */

.doodle-hero-image-wrapper:hover {
    /* Stop the continuous float and apply the quick lift animation */
    animation: none;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.doodle-game-preview-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/* === 6. RESPONSIVENESS (Mobile) === */

@media (max-width: 768px) {
    .doodle-full-width-wrapper {
        padding: 40px 0;
    }
    .doodle-hero-content {
        flex-direction: column-reverse;
        /* Image on top */
        text-align: center;
        padding: 20px 10px;
    }
    .doodle-hero-text {
        max-width: 100%;
        padding-right: 0;
    }
    /* Smaller, responsive heading */
    .doodle-hero-text h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
        text-shadow: 2px 2px 0 #ffffff, 4px 4px 0 var(--doodle-yellow);
        /* Smaller shadow on mobile */
    }
    .doodle-play-button {
        font-size: 1.3em;
        padding: 15px 30px;
        box-shadow: 0 4px 0 0 #d19a00;
    }
    .doodle-hero-image-wrapper {
        max-width: 90%;
        margin: 0 auto;
    }
}

.doodle-game-responsive {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    /* Perfect for games */
    overflow: hidden;
}

.doodle-game-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}