@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lora:wght@400;700&display=swap');

:root {
    --primary-color: #2c5282;
    /* Azul Corporativo */
    --secondary-color: #e53e3e;
    /* Vermelho para CTAs */
    --background-color: #f7fafc;
    /* Cinza bem claro */
    --text-color: #2d3748;
    /* Cinza escuro */
    --heading-color: #1a202c;
    /* Quase preto */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-body: 'Lora', serif;
    --font-heading: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

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

/* --- Header --- */
.site-header {
    background-color: #f6f4ee;
    /* padding: 20px 0; */
    border-bottom: 1px solid var(--border-color);
}

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

.site-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    font-family: var(--font-heading);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    background-color: rgba(44, 82, 130, 0.08);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.main-nav a:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 82, 130, 0.25);
}

/* Destaque para o primeiro item do menu (CTA) - Hover Laranja */
.main-nav a:first-child {
    background-color: rgba(237, 137, 54, 0.1); /* Leve tom laranja no fundo */
    color: #c05621; /* Texto laranja escuro para contraste */
}

.main-nav a:first-child:hover {
    background-color: #ed8936; /* Laranja vibrante no hover */
    color: white;
    box-shadow: 0 6px 15px rgba(237, 137, 54, 0.4);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
}

.menu-icon {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

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

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-header {
        position: relative;
    }
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3182ce 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 0 40px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.search-container {
    margin-bottom: 50px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-button {
    background: var(--primary-color);
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background: #2a4a6b;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    gap: 15px;
}

.search-result-item:hover {
    background-color: var(--background-color);
}

.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.search-result-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--heading-color);
    line-height: 1.3;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #718096;
}

.search-amazon-link {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 12px 12px;
    transition: background-color 0.2s ease;
}

.search-amazon-link:hover {
    background: #e9ecef;
}

/* Customização do Algolia SearchBox */
.ais-SearchBox {
    width: 100%;
}

.ais-SearchBox-form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ais-SearchBox-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
}

.ais-SearchBox-input::placeholder {
    color: #a0aec0;
}

.ais-SearchBox-submit,
.ais-SearchBox-reset {
    background: var(--primary-color);
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s ease;
}

.ais-SearchBox-submit:hover,
.ais-SearchBox-reset:hover {
    background: #2a4a6b;
}

.ais-SearchBox-submitIcon,
.ais-SearchBox-resetIcon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Post Grid (Home Page) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease-in-out;
    text-decoration: none;
    color: var(--text-color);
}

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

.post-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--border-color);
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--heading-color);
}

.post-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
}

/* --- Post Page --- */
.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--heading-color);
    margin: 0 0 10px 0;
}

.post-meta {
    font-size: 14px;
    color: #718096;
    /* Cinza médio */
}

.post-content {
    font-size: 18px;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-top: 40px;
    color: var(--heading-color);
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* --- Recommendation Box --- */
.recommendation-box {
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    margin: 50px 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.recommendation-img {
    width: 150px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.recommendation-content h3 {
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    color: var(--heading-color);
}

.recommendation-content p {
    margin: 0 0 20px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #c53030;
    /* Vermelho mais escuro */
}

/* --- Botão CTA Amazon --- */
.amazon-button {
    background: linear-gradient(180deg, #FFD814 0%, #F0B800 100%);
    color: #0F1111;
    border: 1px solid #F0B800;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.amazon-button:hover {
    background: linear-gradient(180deg, #F7CA00 0%, #E0AB00 100%);
    border-color: #E0AB00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.amazon-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.amazon-button svg {
    stroke: #0F1111;
}

.modal-cta {
    background: linear-gradient(180deg, #2DCC70 0%, #28A745 100%);
    color: #ffffff;
    border: 1px solid #28A745;
    border-radius: 8px;
    font-size: 18px;
    padding: 14px 35px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.modal-cta:hover {
    background: linear-gradient(180deg, #28A745 0%, #218838 100%);
    border-color: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.modal-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-cta svg {
    stroke: #ffffff;
    transition: transform 0.2s ease-in-out;
}

.modal-cta:hover svg {
    transform: translateX(5px);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* padding: 20px; */
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 660px;
    width: 100%;
    position: relative;
}

.modal-body {
    display: flex;
    padding: 40px;
    gap: 30px;
}

.modal-img-container {
    flex-shrink: 0;
}

.modal-book-img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.modal-text-container h2 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--heading-color);
}

.modal-text-container {
    flex: 1;
    min-width: 0;
}

.modal-text-container .book-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 10px 0;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

#open-modal-button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 15px 0;
    font-size: 14px;
    color: #718096;
}

.rating .star {
    font-size: 20px;
}

.rating .star.full {
    color: gold;
}

.rating .star.half {
    color: gold;
    position: relative;
}

/* Simula meia estrela */
.rating .star.half::before {
    content: '\2605';
    color: #e2e8f0;
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}


/* --- Recommended Books Section --- */
.recommended-books {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 50px;
}

.recommended-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px 0;
    color: var(--heading-color);
}

.recommended-subtitle {
    text-align: center;
    font-size: 18px;
    color: #718096;
    margin: 0 0 40px 0;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.recommended-book {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.recommended-book:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.recommended-book.current-book {
    border: 3px solid var(--primary-color);
    position: relative;
}

.recommended-book.current-book::before {
    content: "📖 Livro Atual";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.recommended-book-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--border-color);
}

.recommended-book-content {
    padding: 20px;
}

.recommended-book-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--heading-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-book-excerpt {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.recommended-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

.recommended-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #e53e3e;
    font-size: 16px;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: #718096;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
}

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

.copyright {
    margin: 0;
    color: #a0aec0;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #2a4a6b;
    transform: translateY(-2px);
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 28px;
    }

    .search-box {
        max-width: 100%;
        margin: 0 20px;
    }

    .search-wrapper {
        max-width: 100%;
        margin: 0 20px;
    }

    .search-results {
        max-height: 300px;
    }

    .search-result-item {
        padding: 12px 15px;
        gap: 12px;
    }

    .search-result-img {
        width: 50px;
        height: 65px;
    }

    .search-result-title {
        font-size: 14px;
    }

    .recommendation-box {
        flex-direction: column;
        text-align: center;
    }

    .post-title {
        font-size: 32px;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .modal-book-img {
        width: 150px;
    }

    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .modal-cta {
        font-size: 16px;
        padding: 12px 20px;
    }

    .recommended-books {
        padding: 40px 20px;
    }

    .recommended-title {
        font-size: 28px;
    }

    .recommended-subtitle {
        font-size: 16px;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Modal Featured Book Styles */
.modal-featured-book {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-book-cover {
    flex-shrink: 0;
}

.modal-book-cover img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-book-info {
    flex: 1;
}

.modal-book-info h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.modal-book-info h4 {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 15px 0 10px;
}

.modal-book-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-book-info .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e53e3e;
    margin: 10px 0;
}

.modal-buy-btn {
    display: inline-block;
    background: #fea436;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal-buy-btn:hover {
    background: #ff6818;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Star Ratings */
.rating {
    margin: 10px 0;
    font-size: 0.9rem;
}

.rating .fa-star {
    margin-right: 2px;
}

.rating span {
    margin-left: 5px;
    color: #666;
}

/* Fallback Search Styles */
.fallback-search {
    text-align: center;
    padding: 40px 20px;
}

.fallback-search p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.search-amazon-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Featured Book Link in Content */
#featured-book-line {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

#featured-book-line a {
    color: #667eea;
    font-weight: bold;
    text-decoration: none;
}

#featured-book-line a:hover {
    text-decoration: underline;
}

/* Book Cards in Recommended Section */
.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.book-card .book-cover {
    text-align: center;
    padding: 20px 20px 0;
}

.book-card .book-cover img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-card .book-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card .book-info h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.book-card .book-info .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e53e3e;
    margin: 10px 0;
}

.book-card .buy-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.book-card .buy-btn:hover {
    background: #5a67d8;
    color: white;
    text-decoration: none;
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .modal-featured-book {
        flex-direction: column;
        text-align: center;
    }

    .modal-book-cover {
        align-self: center;
    }

    .modal-book-info h3 {
        font-size: 1.3rem;
    }

    .modal-book-info h4 {
        font-size: 1.1rem;
    }
}

/* ========================================= */
/* FLOATING CTA LATERAL */
/* ========================================= */
.floating-cta {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    min-width: 90px;
    max-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 8px;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    pointer-events: all;
}

.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
}

.floating-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.floating-cta-book-cover {
    width: 100%;
    display: flex;
    justify-content: center;
}

.floating-book-img {
    width: 70%;
    max-width: 120px;
    min-width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.floating-cta:hover .floating-book-img {
    transform: scale(1.05);
}

.floating-cta-text {
    text-align: center;
    width: 100%;
}

.floating-cta-text h4 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.floating-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 3px 0;
    font-size: 8px;
    line-height: 1.2;
}

.floating-rating .star {
    font-size: 11px;
    color: #ff9900;
}

.floating-rating .star.empty {
    color: #e0e0e0;
}

.floating-rating span {
    font-size: 8px;
    color: #666;
}

.floating-book-price {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin: 4px 0;
}

.floating-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    background: linear-gradient(180deg, #FFD814 0%, #F0B800 100%);
    color: #0F1111;
    border: 1px solid #F0B800;
    border-radius: 4px;
    padding: 7px 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.floating-cta-button:hover {
    background: linear-gradient(180deg, #F7CA00 0%, #E0AB00 100%);
    border-color: #E0AB00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #0F1111;
    text-decoration: none;
}

.floating-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.floating-cta-button svg {
    stroke: #0F1111;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Animação de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.floating-cta.show {
    animation: slideInRight 0.3s ease-out;
}

/* Responsividade para o CTA Flutuante */
@media (max-width: 1200px) {
    .floating-cta {
        right: 8px;
        width: 90px;
        padding: 8px 6px;
    }
    
    .floating-book-img {
        width: 60px;
    }
    
    .floating-cta-text h4 {
        font-size: 10px;
    }
    
    .floating-book-price {
        font-size: 12px;
    }
    
    .floating-cta-button {
        font-size: 9px;
        padding: 6px 6px;
    }
}

@media (max-width: 968px) {
    /* Ocultar CTA flutuante em tablets e mobile - apenas desktop */
    .floating-cta {
        display: none !important;
    }
}

/* Navbar fixa para mobile - configurações iniciais */
.mobile-fixed-navbar {
    display: none; /* Oculto por padrão em todas as telas */
}

/* Navbar fixa para mobile - apenas em telas pequenas */
@media (max-width: 768px) {
    .mobile-fixed-navbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #FFFFFF; /* Cor branca */
        z-index: 990; /* Menor que o modal (1000) */
        align-items: center;
        justify-content: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-cta-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #FF9900; /* Laranja Amazon */
        color: white;
        font-family: var(--font-heading);
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        transition: background-color 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-cta-button:hover, 
    .mobile-cta-button:active {
        background-color: #e68a00; /* Laranja mais escuro */
    }
    
    /* Adiciona espaço no final da página para o conteúdo não ficar sob a navbar */
    .post + #app {
        padding-bottom: 80px; /* Um pouco mais que a altura da navbar para garantir espaço */
    }
}