/* Site.css - Escola Galosa - Biblioteca Digital - Design Minimalista */
/* Mantendo apenas estilos estruturais, cores foram para inline */

/* ===== VARIÁVEIS ===== */
:root {
    --primary: #e4563e;
    --primary-light: #ff7a5e;
    --primary-dark: #c73e2a;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --text-muted: #64748b;
    --bg-light: #e7e7e7;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.02);
    --shadow: 0 4px 12px rgba(0,0,0,0.03);
    --transition: all 0.2s ease;
}

/* ===== RESET ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fafbfc;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== NAVBAR FIXA E FINA ===== */
.navbar {
    box-shadow: 0 2px 10px rgba(228, 86, 62, 0.2);
    z-index: 1030;
}

.navbar-brand {
    font-size: 0.95rem;
}

    .navbar-brand img {
        background-color: white;
        border-radius: 6px;
        padding: 2px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    border-radius: 20px;
    margin: 0 2px;
}

    .nav-link:hover,
    .nav-link.active {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .nav-link i {
        font-size: 1rem;
    }

/* ===== BUSCA ===== */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    font-size: 0.9rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: var(--transition);
}

    .search-input:focus {
        outline: none;
        border-color: #e4563e;
        box-shadow: 0 4px 15px rgba(228, 86, 62, 0.1);
    }

/* ===== CATEGORIAS ===== */
.categories-scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .categories-scroll::-webkit-scrollbar {
        display: none;
    }

.category-chip {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== CARDS DE LIVRO ===== */
.book-card {
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .book-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(228, 86, 62, 0.08);
    }

.book-cover {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.book-info {
    padding: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.book-meta {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.badge {
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    font-size: 0.6rem;
}

.btn-read {
    padding: 0.4rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

    .btn-read:hover {
        background: #e4563e !important;
        border-color: #e4563e !important;
        color: white !important;
    }

/* ===== TRENDING CARDS ===== */
.trending-card {
    padding: 0.7rem;
    border-radius: 10px;
    transition: var(--transition);
}

    .trending-card:hover {
        background: #f8fafc !important;
    }

.trending-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e4563e;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(228, 86, 62, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(228, 86, 62, 0.4);
    }

/* ===== FOOTER ===== */
footer {
    font-size: 0.8rem;
}

    footer a {
        transition: var(--transition);
    }

        footer a:hover {
            color: #e4563e !important;
        }

.social-link {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

    .social-link:hover {
        background: #e4563e;
        color: white !important;
        transform: translateY(-2px);
    }

/* ===== RESPONSIVIDADE ===== */
@media (min-width: 992px) {
    .nav-link {
        padding: 0.25rem 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .navbar-collapse {
        background-color: #e4563e;
        padding: 0.4rem;
        border-radius: 10px;
        margin-top: 0.4rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }

        .nav-link i {
            width: 22px;
            display: inline-block;
        }

    .book-cover {
        height: 120px;
    }

    .footer .row {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    .search-input {
        padding: 0.6rem 1rem 0.6rem 2.4rem;
        font-size: 0.85rem;
    }

    .book-title {
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}











