/* ========================================
   BASE STYLES & VARIABLES
   ======================================== */

:root {
    /* Colors - Inspired by Hank's book cover */
    --primary-red: #8B1F2F;
    --primary-orange: #E67E22;
    --accent-gold: #F39C12;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --bg-cream: #FDF6E3;
    --bg-light: #FFFFFF;
    --border-color: #D5DBDB;
    
    /* Typography */
    --font-main: 'Open Sans', sans-serif;
    --font-display: 'Fredoka', cursive;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-cream);
}

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

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

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-nav {
    background-color: var(--primary-orange);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.btn-nav:hover {
    background-color: var(--primary-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    transition: 0.3s;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

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

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--bg-cream) 0%, #FFF5E6 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-orange);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.book-cover-placeholder {
    /* background: linear-gradient(135deg, var(--primary-red), var(--primary-orange)); REMOVE OR COMMENT OUT THIS LINE */
    aspect-ratio: 2/3;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

/* ADD THIS NEW RULE */
.book-cover-placeholder img {
    width: 100%;
    height: 100%;
   object-fit: contain;
}

.small-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* ========================================
   VIDEO SECTION
   ======================================== */

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

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: var(--section-padding);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.book-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    font-family: var(--font-display);
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

/* ========================================
   CHARACTERS SECTION
   ======================================== */

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

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

.character-card {
    background-color: var(--bg-cream);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.character-card:hover {
    transform: scale(1.05);
}

.character-image {
    margin-bottom: 1rem;
}

.character-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto;
    overflow: hidden;
	padding: 10px; /* ADD THIS */
}

/* ADD THIS NEW RULE */
.character-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.character-role {
    font-style: italic;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

/* ========================================
   QUIZ SECTION
   ======================================== */

.quiz-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #FFF5E6 0%, var(--bg-cream) 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-question {
    display: none;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quiz-question.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    padding: 1.5rem;
    background-color: var(--bg-cream);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--primary-orange);
    background-color: #FFF5E6;
    transform: translateX(10px);
}

.quiz-results {
    display: none;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.quiz-results.show {
    display: block;
    animation: fadeIn 0.5s;
}

.result-image {
    font-size: 5rem;
    margin: 2rem 0;
}

#resultTitle {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

#resultText {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.share-buttons {
    margin-top: 2rem;
}

.share-buttons p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.btn-share {
    padding: 10px 25px;
    margin: 0 0.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: transform 0.3s;
}

.btn-share:hover {
    transform: scale(1.1);
}

.btn-share.twitter {
    background-color: #1DA1F2;
}

.btn-share.facebook {
    background-color: #4267B2;
}

/* ========================================
   PREVIEW SECTION
   ======================================== */

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

.preview-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.book-spread {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 2rem;
    flex: 1;
    max-width: 900px;
}

.page {
    aspect-ratio: 8.5/11;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-divider {
    width: 3px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0,0,0,0.1) 10%, 
        rgba(0,0,0,0.1) 90%, 
        transparent 100%);
    margin: 0 1rem;
}

.page-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    padding: 2rem;
}

.page-placeholder p {
    margin: 0.5rem 0;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-nav {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.preview-nav:hover {
    background-color: var(--primary-red);
    transform: scale(1.1);
}

.preview-nav:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: scale(1);
}

.preview-nav span {
    line-height: 1;
}

.page-counter {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.preview-note {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   ACTIVITIES SECTION
   ======================================== */

.activities-section {
    padding: var(--section-padding);
}

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

.activity-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.activity-card h3 {
    font-family: var(--font-display);
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.activity-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* ========================================
   BUY SECTION
   ======================================== */

.buy-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: white;
}

.buy-section .section-title,
.buy-section .section-subtitle {
    color: white;
}

.buy-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.buy-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s;
    position: relative;
}
.buy-link {
    display: inline-block;
    transition: transform 0.3s;
}

.buy-link:hover {
    transform: scale(1.1);
}

.buy-link img {
    max-width: 200px;
    height: auto;
}

.buy-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex; /* ADD THIS */
    justify-content: center; /* ADD THIS */
    align-items: center; /* ADD THIS */
    min-height: 80px; /* ADD THIS - adjust as needed */
}

.buy-logo img {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
	justify-content: center; /* ADD THIS */
}

.buy-card h3 {
    font-family: var(--font-display);
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.buy-card.featured {
    border: 3px solid var(--accent-gold);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

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

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.privacy-note {
    font-size: 0.9rem;
    color: #999;
}

/* SendFox Form Custom Styling */
.newsletter-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content label {
    display: none; /* Hide the labels since you have placeholders */
}

.newsletter-content input[type="text"],
.newsletter-content input[type="email"] {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-content input[type="text"]:focus,
.newsletter-content input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.newsletter-content button[type="submit"] {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-content button[type="submit"]:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* Hide the honeypot field */
div[style*="position: absolute"] {
    display: none !important;
}

/* ========================================
   AUTHOR SECTION
   ======================================== */

.author-section {
    padding: var(--section-padding);
}

.author-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.author-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    margin: 0 auto;
    overflow: hidden;
}

.author-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* ADD THIS LINE */
    padding: 5px;
}

.author-bio h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.author-bio p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.social-link img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.social-link:hover {
    color: var(--primary-red);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    font-family: var(--font-display);
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-icon {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.footer-bottom a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-placeholder {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .book-spread {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .page-divider {
        display: none;
    }
    
    .left-page {
        display: none;
    }
    
    .preview-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .preview-container {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badges {
        font-size: 0.8rem;
    }
    
    .buy-options {
        grid-template-columns: 1fr;
    }
}
