/* BookLanding Theme - Blue/Green Color Palette */

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

:root {
    /* Blue/Green Color Scheme */
    --primary-color: #0ea5e9; /* Sky Blue */
    --primary-dark: #0284c7; /* Dark Blue */
    --primary-light: #38bdf8; /* Light Blue */
    --secondary-color: #10b981; /* Green */
    --accent-color: #6ee7b7; /* Light Green */
    
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f0f9ff;
    --background-dark: #e0f2fe;
    --border-color: #bae6fd;
    
    --shadow-sm: 0 1px 2px 0 rgba(14, 165, 233, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(14, 165, 233, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(14, 165, 233, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--background);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand a:hover {
    color: var(--primary-dark);
}

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

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.isbn {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn i {
    margin-right: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 3rem;
}

/* Features Section */
.about-section {
    background-color: var(--background);
}

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

.feature-card {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* What's Inside Section */
.sneak-peek-section {
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
}

.content-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.content-box h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-medium);
    line-height: 1.7;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.highlight-box {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-alt) 100%);
    border-left-color: var(--secondary-color);
}

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

.audience-card {
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.audience-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.audience-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background);
}

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

.testimonial-card {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.stars {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Author Section */
.author-section {
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
}

.author-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.author-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.author-bio h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.author-bio p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

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

.author-links a {
    padding: 8px 16px;
    background-color: var(--background-dark);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.author-links a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Other Books Carousel */
.other-books-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.other-books-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.other-books-title i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.books-carousel-container {
    position: relative;
    padding: 0 50px;
}

.books-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--background-alt);
}

.books-carousel::-webkit-scrollbar {
    height: 8px;
}

.books-carousel::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 4px;
}

.books-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.books-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.book-card {
    min-width: 280px;
    max-width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.book-cover-wrapper {
	width: 100%;
    aspect-ratio: 2 / 3;  /* Modern CSS - maintains ratio */
    overflow: hidden;
    background-color: var(--background-alt);
    position: relative;
}

.book-cover {
	width: 100%;
    height: 100%;
    object-fit: cover;  /* Fills space, crops if needed */
    object-position: center;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.book-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-nav:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

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

.buy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.buy-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.buy-section .section-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.buy-section .section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* Buy Cards Grid */
.buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Buy Card */
.buy-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.buy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: var(--primary-color, #0ea5e9);
}

/* Highlighted Card */
.buy-card-highlighted {
    border: 2px solid var(--primary-color, #0ea5e9);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.buy-card-highlighted:hover {
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.3);
    transform: translateY(-10px) scale(1.02);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary-color, #10b981) 0%, #059669 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.popular-badge i {
    margin-right: 5px;
}

/* Card Icon */
.buy-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color, #0ea5e9) 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.buy-card:hover .buy-card-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.buy-card-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Card Title */
.buy-card-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Card Description */
.buy-card-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1px;
    min-height: 48px;
}

/* Price Display */
.buy-card-price {
    margin-bottom: 25px;
}

.original-price {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 10px;
}

.current-price {
    font-size: 2.2rem;
    color: var(--primary-color, #0ea5e9);
    font-weight: 700;
}

/* Buy Button */
.buy-button {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color, #0ea5e9) 0%, #0284c7 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.buy-button:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.buy-button i {
    margin-right: 8px;
}

.buy-card-highlighted .buy-button {
    background: linear-gradient(135deg, var(--secondary-color, #10b981) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.buy-card-highlighted .buy-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Features List */
.buy-features {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.buy-features li {
    padding: 8px 0;
    color: #475569;
    font-size: 0.95rem;
}

.buy-features li i {
    color: var(--secondary-color, #10b981);
    margin-right: 10px;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .buy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .buy-section {
        padding: 60px 0;
    }
    
    .buy-section .section-header h2 {
        font-size: 2rem;
    }
    
    .buy-card {
        padding: 30px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .buy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Format Comparison */
.format-comparison {
    background-color: var(--background-alt);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 2px solid var(--border-color);
}

.format-comparison h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.comparison-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.comparison-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.comparison-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card ul li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--background);
    padding: 40px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-alt) 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
}

.newsletter-box h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.newsletter-box p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .books-carousel-container {
        padding: 0 10px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background-color: var(--primary-light);
    color: white;
}