/*
Theme Name: Mandamy Audiobooks
Theme URI: https://mandamyaudiobooks.com
Author: Martina Amaka
Description: A premium, stylish theme for parents and children.
Version: 2.0
*/

:root {
    /* Brand Palette */
    --primary-color: #6A4C93;
    /* Royal Purple */
    --primary-light: #8D6CAB;
    --secondary-color: #FFCA3A;
    /* Warm Gold */
    --accent-color: #FF99C8;
    /* Soft pink */
    --text-color: #2D2D2D;
    --text-light: #666666;
    --bg-color: #FFFBF5;
    /* Warm Cream */
    --white: #ffffff;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px rgba(106, 76, 147, 0.1);
    --shadow-md: 0 10px 30px rgba(106, 76, 147, 0.15);
    --shadow-lg: 0 20px 40px rgba(106, 76, 147, 0.2);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    line-height: 1.2;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Nav */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.site-branding:hover .logo-img {
    transform: scale(1.05);
}

.site-branding span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.site-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.site-nav a:hover::after {
    width: 100%;
}

.site-nav .btn-primary {
    color: white !important;
}

.site-nav .btn-primary::after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem 10rem;
    overflow: hidden;
    /* Premium Mesh Gradient */
    background-color: #fdfbf7;
    background-image:
        radial-gradient(at 0% 0%, hsla(273, 53%, 85%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(24, 100%, 89%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 100%, 89%, 1) 0, transparent 50%);
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    animation: fadeIn 1s ease-out 0.2s backwards, float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(106, 76, 147, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(106, 76, 147, 0.25);
    background: var(--primary-light);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: none;
    background: white;
    color: var(--text-light);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Book Grid */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.book-cover {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.1);
}

.book-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.book-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #F0E6FA;
    /* Light purple tag */
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.audio-preview {
    background: #FAFAFA;
    border-radius: 50px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    border: 1px solid #eee;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.book-card .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
}

/* About/CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/pattern.svg');
    /* Optional pattern */
    opacity: 0.05;
}

.cta-section h2 {
    color: white;
    /* Override default heading color */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-section .btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    background: white;
    transform: translateY(-3px);
}

/* Footer */
.site-footer {
    background: #2D2D2D;
    color: #999;
    padding: 4rem 2rem;
    text-align: center;
}

.site-footer a {
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--white) !important;
}

.footer-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}