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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fef3c7, #fed7aa, #aee1f9);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Color Variables */
:root {
    --sunflower: #F6B73C;
    --honey: #FFB347;
    --sky: #AEE1F9;
    --cream: #FFF8F0;
    --white: #ffffff;
    --gray-800: #1f2937;
    --gray-600: #4b5563;
    --gray-300: #d1d5db;
    
    /* Series colors */
    --mint-green: #B4D7B4;
    --lavender: #D4B5E1;
    --coral: #FFB5A7;
    --peach: #FFDAC1;
    --ladybug-red: #E63946;
    --ladybug-dark: #C1121F;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-bee {
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 2rem;
    opacity: 0.4;
    animation: bounce 4s ease-in-out infinite;
}

.floating-ladybug {
    position: absolute;
    top: 5%;
    right: 15%;
    font-size: 2rem;
    opacity: 0.4;
    animation: bounce 5s ease-in-out infinite 1.5s;
}

.floating-flower-1 {
    position: absolute;
    top: 25%;
    right: 20%;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: bounce 5s ease-in-out infinite 2s;
}

.floating-flower-2 {
    position: absolute;
    bottom: 30%;
    left: 25%;
    font-size: 1.2rem;
    opacity: 0.3;
    animation: bounce 6s ease-in-out infinite 1s;
}

.floating-butterfly {
    position: absolute;
    top: 70%;
    right: 10%;
    font-size: 2rem;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite 3s;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Header */
.header {
    padding: 2rem 0 1rem;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-link:hover {
    color: var(--gray-800);
    transform: translateX(-4px);
}

.link-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.home-link:hover .link-icon {
    transform: translateX(-4px);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Books Section */
.books-section {
    margin-bottom: 4rem;
}

.books-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.appreciation-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    padding: 0 1rem;
    font-style: italic;
}

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

.book-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.book-card-coming-soon {
    opacity: 0.7;
}

.book-card-coming-soon:hover {
    transform: none;
}

.book-cover-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.book-cover {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 14rem;
    height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: white;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.book-cover-beatrice {
    background: linear-gradient(135deg, #fcd34d, var(--honey));
}

.book-cover-luna {
    background: linear-gradient(135deg, var(--ladybug-red), var(--ladybug-dark));
}

.book-cover-lilly {
    background: linear-gradient(135deg, #bc89d1, #9c6bb8);
}

.book-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.book-header p {
    font-size: 1rem;
    margin: 0;
}

.book-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.bee-circle,
.ladybug-circle,
.butterfly-circle {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bee-circle {
    background: #fef3c7;
}

.ladybug-circle {
    background: #fff0f0;
}

.butterfly-circle {
    background: #e8d5f2;
}

.bee-emoji,
.ladybug-emoji,
.butterfly-emoji {
    font-size: 3rem;
}

.book-footer p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.book-info {
    flex: 1;
    display: flex;
    text-align: center;
    flex-direction: column;
}

.book-info h4 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.book-subtitle {
    font-size: 1.1rem;
    color: #a855f7;
    font-weight: 600;
    margin-bottom: 1rem;
}

.book-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex: 1;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-review {
    background: linear-gradient(135deg, var(--sunflower), var(--honey));
    color: white;
    box-shadow: 0 4px 15px rgba(246, 183, 60, 0.3);
}

.btn-review:hover {
    background: linear-gradient(135deg, #e5a635, #ffa033);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 183, 60, 0.4);
}

.btn-disabled {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

.star-icon,
.calendar-icon {
    font-size: 1.2rem;
}

.btn-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    color: #a855f7;
    transform: translateX(4px);
}

/* Instructions Section */
.instructions-section {
    margin-bottom: 4rem;
}

.instructions-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.instructions-card h3 {
    font-size: 2rem;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 2rem;
}

.instructions-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 760px;
    margin: 0 auto;
}

.instructions-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.instruction-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--sunflower), var(--honey));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(246, 183, 60, 0.3);
}

.instruction-step p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 2rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.footer-content p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.footer-heart {
    color: #e63946;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

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

    .section-subtitle {
        font-size: 1.1rem;
    }

    .appreciation-note {
        font-size: 1rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-cover {
        width: 12rem;
        height: 16rem;
    }

    .instructions-steps {
        grid-template-columns: 1fr;
    }

    /* Hide some floating elements on mobile */
    .floating-flower-1,
    .floating-flower-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0 0.5rem;
    }

    .books-section h2 {
        font-size: 1.75rem;
    }

    .appreciation-note {
        font-size: 0.95rem;
    }

    .book-card {
        padding: 1.5rem;
    }

    .book-cover {
        width: 11rem;
        height: 15rem;
        padding: 1.25rem;
    }

    .bee-circle,
    .ladybug-circle,
    .butterfly-circle {
        width: 5rem;
        height: 5rem;
    }

    .bee-emoji,
    .ladybug-emoji,
    .butterfly-emoji {
        font-size: 2.5rem;
    }

    .instructions-card {
        padding: 2rem 1.5rem;
    }

    .instructions-card h3 {
        font-size: 1.5rem;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--sunflower);
    outline-offset: 2px;
}

