/*
Theme Name: ForbesMoody
Theme URI: https://forbesmoody.com
Author: The Forbes Moody Clan
Author URI: https://forbesmoody.com
Description: A playful and colorful WordPress theme for ForbesMoody children's books with full WooCommerce support. Features vibrant gradients, rounded designs, and a fun aesthetic perfect for engaging young readers and their parents.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forbesmoody
Tags: e-commerce, blog, custom-colors, custom-logo, custom-menu, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, woocommerce

ForbesMoody WordPress Theme, Copyright 2024 The Forbes Moody Clan
ForbesMoody is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom right, #fffbeb, #dbeafe);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: #f97316;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ea580c;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-books {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-book {
    width: 48px;
    height: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-book-1 {
    background: #3b82f6;
    transform: rotate(-2deg);
}

.logo-book-2 {
    background: #22c55e;
    transform: rotate(1deg);
}

.logo-book-3 {
    background: #eab308;
    transform: rotate(-1deg);
}

.logo-book-4 {
    background: #a855f7;
    transform: rotate(2deg);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #1f2937;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: #f97316;
    font-weight: 600;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    color: #374151;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    display: block;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: #f97316;
    border-bottom-color: #f97316;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f97316;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Ensure nav doesn't wrap */
.header-inner > * {
    flex-shrink: 0;
}

.main-navigation {
    flex-grow: 1;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #f97316;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 1rem 0;
    }
    
    .main-navigation.active {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding: 4rem 2rem;
}

.hero-content {
    background: linear-gradient(to right, #fb923c, #ec4899);
    border-radius: 2rem;
    padding: 4rem;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-button {
    background: white;
    color: #f97316;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-block;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.hero-button:hover {
    background: #fffbeb;
    color: #f97316;
    transform: translateY(-2px);
}

/* ==========================================================================
   Books Section
   ========================================================================== */

.books-section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Book Card */
.book-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.book-image {
    background: linear-gradient(to bottom right, #d1fae5, #dbeafe);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.book-info {
    padding: 2rem;
}

.book-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.book-info p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.book-price {
    font-size: 2rem;
    font-weight: 700;
    color: #f97316;
}

.add-to-cart {
    background: #f97316;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(to right, #a855f7, #3b82f6);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-books {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo-book {
    width: 32px;
    height: 6px;
    background: white;
    border-radius: 3px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-copyright {
    opacity: 0.8;
}

/* ==========================================================================
   WooCommerce Compatibility
   ========================================================================== */

.woocommerce-page .content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product img {
    border-radius: 1rem 1rem 0 0;
    width: 100%;
    height: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #f97316;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    padding: 0 1.5rem;
}

.woocommerce ul.products li.product .price {
    color: #f97316;
    font-weight: 700;
    font-size: 2rem;
    padding: 0 1.5rem;
    display: block;
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product .button {
    margin: 0 1.5rem 1.5rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.added_to_cart {
    background: #f97316 !important;
    color: white !important;
    padding: 0.875rem 2rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    border: none !important;
    display: inline-block !important;
    text-align: center;
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.added_to_cart:hover {
    background: #ea580c !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }