/*
Theme Name: GeneratePress Child
Theme URI: [www.yo-mart.com]
Description: A child theme for My Parent Theme.
Author: Yo-Mart
Author URI: www.yo-mart.com
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* -------------------------------------------------------------------
   Attract Abundance Page Styles
   Append this section to your existing style.css
------------------------------------------------------------------- */

/* --- Color Palette --- */
/* Background: Misty Blue (#E8F3F7) */
/* Text Color: Deep Navy Blue (#102A43) */
/* Accent: Soft Gold (#D4AF37) */

:root {
    /* LIGHT MODE COLORS (Default) */
    --bg-color: #E8F3F7;
    --text-color: #102A43;
    --accent-gold: #D4AF37;
    --accent-green: #00A86B;
    --light-text: rgba(16, 42, 67, 0.7);
    --subtle-text: rgba(16, 42, 67, 0.5);
    --toggle-color: var(--text-color);
}

/* DARK MODE COLORS */
.dark-mode {
    --bg-color: #1a1a2e;
    --text-color: #f7f7f7;
    --accent-gold: #FFD700;
    --accent-green: #38c172;
    --light-text: rgba(247, 247, 247, 0.7);
    --subtle-text: rgba(247, 247, 247, 0.5);
    --toggle-color: #ffd700;
}
/* END OF NEW COLOR VARIABLE SECTION */


.abundance-focus-area {
    /* Full viewport height for a clean, immersive experience */
    min-height: 100vh; 
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    background-color: var(--bg-color); /* Misty Blue Background */
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif; /* Clean, calm font */
}

.abundance-container {
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;

    margin-top: -5vh;
}

.abundance-title {
    color: var(--text-color); /* Deep Navy Blue */
    font-size: 2.5em;
    margin-bottom: 5px;
}

.abundance-intro {
    color: var(--text-color);
    font-size: 1.2em;
    opacity: 0.7;
    margin-bottom: 40px;
}

.affirmation-text {
    /* The core element: Large, impactful, calm */
    font-size: 3.5em; 
    font-weight: 600;
    color: var(--accent-gold); 
    
    /* --- FIX JUMPING LAYOUT --- */
    height: 150px; /* Set a fixed height that fits the longest affirmation */
    line-height: 1.2; /* Ensure lines are tightly spaced */
    /* -------------------------- */
    
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    transition: opacity 1s ease-in-out; 
}

.abundance-instruction {
    color: var(--text-color);
    font-style: italic;
    opacity: 0.5;
    margin-top: 50px;
    font-size: 0.9em;
}

/* --- New Styles for Breathing Cue --- */
.breathing-cue-text {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 20px;
    height: 30px; /* Prevent layout jump */
    transition: color 0.5s ease-in-out; /* Smooth color change */
}

/* -------------------------------------------------------------------
   Mobile Optimization (Media Query)
   Applies styles ONLY when the screen is 768px wide or smaller (typical tablet/mobile size)
------------------------------------------------------------------- */
@media (max-width: 768px) {
    
    .abundance-container {
        padding: 20px 10px;
    }
    
    /* Shrink the main affirmation text on small screens */
    .affirmation-text {
        font-size: 2em; 
        min-height: 180px; /* Adjust height for smaller text */
    }
    
    /* Shrink the breathing cue text */
    .breathing-cue-text {
        font-size: 1.1em;
    }

    .abundance-title {
        font-size: 1.8em;
    }
    
    .abundance-intro {
        font-size: 1em;
    }
}

/* --- NEW TOGGLE SWITCH STYLES --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto; 
    z-index: 1000;
}

.toggle-description {
    margin-left: 10px;
    font-size: 0.9em;
    color: var(--text-color);
    transition: color 0.5s ease;
}

/* The actual switch container */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider (the track) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--subtle-text); /* Light gray track */
    transition: 0.4s;
}

/* The round toggle circle */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff; /* White circle */
    transition: 0.4s;
}

/* Rounded corners for the track */
.slider.round {
    border-radius: 34px;
}

/* Rounded corners for the circle */
.slider.round:before {
    border-radius: 50%;
}

/* When checked (Dark Mode) */
input:checked + .slider {
    background-color: var(--accent-gold); /* Gold track in dark mode */
}

/* Move the circle when checked (Dark Mode) */
input:checked + .slider:before {
    transform: translateX(26px);
}