/* Custom Properties - Design System 2026 */
:root {
    --bg-dark: #0a0a0c;
    --bg-surface: rgba(22, 22, 28, 0.75);
    --bg-card: rgba(30, 30, 38, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --primary: #9d4edf;
    --primary-glow: rgba(157, 78, 223, 0.35);
    --accent: #00f5d4;
    --text-main: #f8f9fa;
    --text-muted: #8e9aaf;
    --radius-lg: 20px;
    --radius-md: 14px;
    --blur-effect: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding-bottom: 90px;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(157, 78, 223, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 245, 212, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Header Glassmorphism */
header {
    background: var(--bg-surface);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.btn-vip {
    background: linear-gradient(135deg, #7b2cbf, #ff007f);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-vip:active {
    transform: scale(0.95);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Card "Continuar Lendo" Estilo Widget */
.widget-continuar {
    background: var(--bg-card);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--border-glass);
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.widget-btn {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Grid de Livros */
.grid-livros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
}

.card-livro {
    background: var(--bg-card);
    backdrop-filter: var(--blur-effect);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card-livro:hover {
    transform: translateY(-6px);
    border-color: rgba(157, 78, 223, 0.4);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.card-livro img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-info {
    padding: 0.9rem;
}

.card-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Modal Moderno (Anúncios / Pre-loader) */
.modal-anuncio {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 380px;
    width: 88%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.btn-action {
    background: linear-gradient(135deg, var(--primary), #7209b7);
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1.2rem;
    transition: opacity 0.2s;
}

.btn-action:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Navigation Bar 2026 (Flutuante no Rodapé) */
.nav-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
    background: rgba(22, 22, 28, 0.85);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.nav-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.nav-bottom a.active {
    color: var(--accent);
}