/* ===== Bright & Playful Children's Author Site ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #4ECDC4;
    --teal-dark: #3DB8B0;
    --yellow: #FFD93D;
    --yellow-light: #FFF3B8;
    --coral: #FF6B6B;
    --green: #7CB342;
    --sky: #87CEEB;
    --orange: #FF8C42;
    --white: #FFFFFF;
    --cream: #FFFEF9;
    --text: #2D3436;
    --text-light: #636E72;
    --shadow: 0 4px 20px rgba(78, 205, 196, 0.2);
    --shadow-lg: 0 8px 30px rgba(78, 205, 196, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    line-height: 1.2;
    color: var(--text);
}

a {
    color: var(--teal-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--coral);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header & Navigation ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal);
}

.logo:hover {
    color: var(--teal-dark);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul a {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    border-radius: 3px;
    transition: width 0.3s ease;
}

nav ul a:hover,
nav ul a.active {
    color: var(--teal);
}

nav ul a:hover::after,
nav ul a.active::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--cream);
    border-radius: 50% 50% 0 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    font-size: 1.1rem;
    color: var(--yellow-light);
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--yellow);
    color: var(--text);
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.btn:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn-coral {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-coral:hover {
    background: #ff5252;
    color: var(--white);
}

.btn-small {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* ===== Main Content ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== Books Section ===== */
.books-section {
    padding: 4rem 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.book-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--yellow), var(--coral));
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.book-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.book-card .book-type {
    display: inline-block;
    background: var(--yellow-light);
    color: var(--orange);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== Quote Section ===== */
.quote-section {
    background: var(--yellow-light);
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 30px;
    text-align: center;
}

.quote-section blockquote {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.quote-section cite {
    color: var(--text-light);
    font-style: normal;
    font-weight: 600;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
    padding: 4rem 2rem 5rem;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--cream);
    border-radius: 50% 50% 0 0;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--white);
    opacity: 0.9;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding: 2rem 0 4rem;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 320px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ===== Contact Section ===== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.contact-card > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-method {
    text-align: center;
}

.contact-method .icon {
    width: 60px;
    height: 60px;
    background: var(--yellow-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-method h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.contact-method p, .contact-method a {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== News Section ===== */
.news-section {
    padding: 2rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--yellow), var(--coral));
}

.news-date {
    display: inline-block;
    background: var(--yellow-light);
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item h3 {
    font-size: 1.4rem;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.news-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Footer ===== */
footer {
    background: var(--teal);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    opacity: 0.9;
}

footer a {
    color: var(--yellow);
}

footer a:hover {
    color: var(--white);
}

/* ===== Responsive Design ===== */
@media (max-width: 800px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image img {
        width: 260px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .contact-methods {
        flex-direction: column;
        gap: 2rem;
    }
}
