/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Navigation */
.nav {
    background-color: #000000;
    padding: 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-item {
    padding: 10px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo-title {
    display: flex;
    align-items: center;
}

#logo {
    height: clamp(16px, 4.5vw, 25px);
    white-space: nowrap;
    line-height: 30px;
    margin-right: 15px;
}

h1 {
    margin: 0;
    font-size: clamp(16px, 4.5vw, 20px);
    white-space: nowrap;
    line-height: 30px;
    color: white;
    /* O tamanho da fonte será de no mínimo 16px, idealmente 5% da largura da tela, e no máximo 20px */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000, #45452b, #fffb00);
    padding: 23px 0;
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.hero-book {
    flex: 1;
    text-align: center;
}

.book-image {
    width: 110px;
    height: 210px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.QRCODE {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}



.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-highlight {
    color: #fff;
}

/* Dots indicator */
.hero-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.dot.active {
    background-color: white;
}

/* Bestsellers */
.bestsellers {
    max-width: 1500px;
    margin: 10px auto;
    padding: 5px;
    height: 5px;
}

.bestsellers h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 40px;
    font-size: 28px;
    height: 5px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 100%;
    height: 200px;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    height: 5px;
}

.book-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* Main container - escondido até login */
.main-container {
    display: none;
    /* Ocultado por padrão, será exibido após login */
}

/*::::::::::::Estilos para a tela de login:::::::::::::::: */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid #dfeb00;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(223, 235, 0, 0.3);
    padding: 40px;
    min-width: 400px;
    text-align: center;
}

.modal-content {
    color: white;
}

.modal-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(223, 235, 0, 0.5);
}

.modal-subtitle {
    color: #dfeb00;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #dfeb00;
    box-shadow: 0 0 15px rgba(223, 235, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #dfeb00, #b8c100);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(223, 235, 0, 0.4);
    background: linear-gradient(135deg, #f0fc00, #dfeb00);
}

.login-btn:active {
    transform: translateY(0);
}

.login-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.highlight {
    color: #dfeb00;
    font-weight: bold;
}

/* Animações */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                    0 0 30px rgba(223, 235, 0, 0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                    0 0 40px rgba(223, 235, 0, 0.5);
    }
}

.login-modal {
    animation: modalSlideIn 0.6s ease-out, pulseGlow 3s ease-in-out infinite 1s;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-modal {
        margin: 20px;
        min-width: auto;
        width: calc(100% - 40px);
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
}


/* Spinner - EXATAMENTE como na segunda página */
#spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 150px;
    height: 150px;
    display: none;
    justify-content: center;
    align-items: center;
}

#spinner::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    width: 150px;
    height: 150px;
    border: 16px solid #000000;
    border-top: 16px solid #dfeb00;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

#spinner-text {
    position: absolute;
    font-size: 40px;
    color: #000000;
    font-family: Arial, sans-serif;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-left,
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}