/*
Theme Name: Godstruck Kids Theme - Symphony City
Theme URI: https://godstruckkids.com
Author: Godstruck Ministries, LLC
Author URI: https://godstruckkids.com
Description: A playful, modern WordPress theme for Godstruck Ministries 4 Kids - Symphony City edition with animated blobs, waves, and sticky audio player.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: godstruck-kids
Tags: christian, kids, music, ministry, education, scripture, e-commerce, playful
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/*--------------------------------------------------------------
>>> SYMPHONY CITY DESIGN SYSTEM
----------------------------------------------------------------
1.0 CSS Variables
2.0 Reset and Base Styles
3.0 Typography
4.0 Utilities & Layout
5.0 Header
6.0 Hero Section with Waves
7.0 Buttons & Components
8.0 Product Cards
9.0 Icon Features
10.0 Blob Animations
11.0 Sticky Audio Player
12.0 Footer
13.0 Responsive Design
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Variables - Symphony City Colors
--------------------------------------------------------------*/
:root {
    /* Symphony City Brand Colors */
    --color-primary: #FF6B6B;        /* Symphony Red */
    --color-secondary: #4ECDC4;      /* Symphony Teal */
    --color-accent: #FFE66D;         /* Joy Yellow */
    --color-dark: #2D3436;           /* Midnight Blue */
    --color-light: #F9F9F9;          /* Cloud White */
    --color-cream: #FFF9F0;          /* Warm Cream */

    /* Typography */
    --font-heading: 'Fredoka', 'Comic Sans MS', sans-serif;
    --font-body: 'Nunito', 'Arial', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Layout */
    --spacing-container: 1200px;
    --container-padding: 20px;
    --border-radius-btn: 50px;
    --border-radius-card: 24px;

    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*--------------------------------------------------------------
2.0 Reset and Base Styles
--------------------------------------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: #fff;
    line-height: var(--line-height-base);
    padding-bottom: 80px; /* Space for sticky player */
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    transition: var(--transition-speed) var(--transition-bounce);
    color: inherit;
}

ul {
    list-style: none;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/*--------------------------------------------------------------
4.0 Utilities & Layout
--------------------------------------------------------------*/
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.section {
    padding: 6rem 0;
    position: relative;
}

.section-bg-cream {
    background-color: var(--color-cream);
}

.section-bg-light {
    background-color: var(--color-light);
}

/* Material Icons Round Support */
.material-icons-round {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/*--------------------------------------------------------------
5.0 Header
--------------------------------------------------------------*/
header,
.site-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container,
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo span {
    color: var(--color-secondary);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: -1px;
    margin: 0;
}

.site-title a {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-title span {
    color: var(--color-secondary);
}

.site-description {
    display: none; /* Hidden in this design */
}

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

.nav-menu ul,
#primary-menu,
.primary-menu {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a,
#primary-menu a,
.primary-menu a {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.nav-menu a:hover,
#primary-menu a:hover,
.primary-menu a:hover {
    color: var(--color-primary);
}

/* Cart Button in Header */
.header-cart {
    margin-left: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cart-button {
    padding: 10px 24px;
    font-size: 1rem;
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent);
    color: var(--color-dark);
    font-weight: 800;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle .material-icons-round {
    font-size: 1.5rem;
}

.menu-toggle-text {
    display: none;
}

/*--------------------------------------------------------------
6.0 Hero Section with Waves
--------------------------------------------------------------*/
.hero-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #3dbdb4 100%);
    color: white;
    padding: 5rem 0 8rem 0;
    position: relative;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    color: white;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Wave Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--color-cream);
}

/*--------------------------------------------------------------
7.0 Buttons & Components
--------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: var(--border-radius-btn);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    font-size: 1.1rem;
    transition: all var(--transition-speed) var(--transition-bounce);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 3px solid white;
    color: white;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-secondary);
    border-color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Hero-specific button styles */
.hero-section .btn-primary {
    background-color: white;
    color: var(--color-primary);
}

.hero-section .btn-primary:hover {
    background-color: var(--color-cream);
}

/*--------------------------------------------------------------
8.0 Product Cards
--------------------------------------------------------------*/
.product-card {
    background: white;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.card-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.product-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    flex-grow: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/*--------------------------------------------------------------
9.0 Icon Features
--------------------------------------------------------------*/
.icon-feature {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-card);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
    border-bottom: 5px solid var(--color-accent);
}

.icon-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.icon-feature-icon {
    font-size: 4rem !important;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-primary);
}

.icon-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Resource Cards */
.resource-card {
    background: #fff;
    border-radius: var(--border-radius-card);
    padding: 2.5rem;
    text-align: center;
    color: var(--color-dark);
    border: 3px dashed var(--color-secondary);
    transition: all var(--transition-speed) ease;
}

.resource-card:hover {
    background: var(--color-cream);
    border-style: solid;
    transform: scale(1.05);
}

.resource-icon {
    font-size: 4rem !important;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: block;
}

/*--------------------------------------------------------------
10.0 Blob Animations
--------------------------------------------------------------*/
.blob-image {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border: 8px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/*--------------------------------------------------------------
11.0 Sticky Audio Player
--------------------------------------------------------------*/
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #eee;
    object-fit: cover;
}

.player-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-icon {
    font-size: 2.5rem !important;
    color: var(--color-dark);
    cursor: pointer;
    transition: 0.2s;
}

.control-icon:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.play-icon {
    font-size: 3.5rem !important;
    color: var(--color-primary);
}

/*--------------------------------------------------------------
12.0 Section Headers
--------------------------------------------------------------*/
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.8rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 600;
}

/*--------------------------------------------------------------
13.0 Footer
--------------------------------------------------------------*/
.site-footer,
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 6rem 0 2rem 0;
    margin-top: 4rem;
}

.site-footer h4,
.widget-title {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.site-footer a {
    color: var(--color-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

.footer-branding {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.footer-branding span {
    color: var(--color-secondary);
}

/* Footer column styling */
.footer-col {
    color: var(--color-light);
}

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--color-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-col span {
    color: var(--color-secondary);
}

/*--------------------------------------------------------------
13.5 Blog Pagination
--------------------------------------------------------------*/
.navigation.pagination {
    margin-top: 3rem;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.navigation.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: white;
    color: var(--color-dark);
    border-radius: var(--border-radius-btn);
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navigation.pagination .page-numbers:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

.navigation.pagination .page-numbers.current {
    background: var(--color-primary);
    color: white;
}

.navigation.pagination .page-numbers .material-icons-round {
    font-size: 1.2rem;
}

/*--------------------------------------------------------------
14.0 Responsive Design
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Tablet Navigation - 992px */
@media (max-width: 992px) {
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
        order: 3;
    }

    /* Hide desktop navigation */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }

    .nav-menu.toggled {
        display: block;
    }

    .nav-menu ul,
    #primary-menu {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }

    .nav-menu li,
    #primary-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child,
    #primary-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a,
    #primary-menu a {
        display: block;
        padding: 1rem;
    }

    /* Reorder header items */
    header .container,
    .site-header .container {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Smaller cart button on tablet */
    .header-cart-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2, .section-title {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation - icon only cart */
    .cart-text {
        display: none;
    }

    .header-cart-button {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .header-cart-button .material-icons-round {
        margin: 0;
    }

    .cart-count-badge {
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    /* Sticky Player Mobile */
    .sticky-player {
        padding: 10px;
        flex-direction: column;
        gap: 0.5rem;
    }

    .player-info {
        width: 100%;
        justify-content: center;
    }

    .btn {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .btn-large {
        font-size: 1.1rem;
        padding: 14px 30px;
    }

    /* Adjust header spacing */
    .header-actions {
        margin-right: 0.75rem;
    }

    .menu-toggle {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/*--------------------------------------------------------------
15.0 Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    color: var(--color-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/*--------------------------------------------------------------
16.0 Print Styles
--------------------------------------------------------------*/
@media print {
    .site-header,
    .site-footer,
    .sticky-player,
    .menu-toggle,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        padding-bottom: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .hero-section {
        background: white;
        color: black;
    }
}