/**
 * Project: Bookroz [2026-27 ES6+ Standards]
 * File: style.css
 * Purpose: Global Styles, Light Theme UI, and Animations.
 * Standard: Pure CSS3 (Zero-Dependency)
 */

/* 1. Global Reset & Variables */
:root {
    --br-bg-light: #f4f7f6;
    --br-surface: #ffffff;
    --br-primary: #0984e3;
    --br-primary-hover: #0773c5;
    --br-text-dark: #2d3436;
    --br-text-grey: #636e72;
    --br-border: #dfe6e9;
    --br-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --br-shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --br-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobile optimization */
}

body {
    background-color: var(--br-bg-light);
    color: var(--br-text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. Typography & Links */
a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 3. Reusable UI Components */
#br-app-download-btn {
    background: var(--br-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

#br-app-download-btn:hover {
    background: var(--br-primary-hover);
    transform: translateY(-2px);
}

/* 4. Search Box Styling (Shared) */
#br-header-search-input, #br-global-search {
    background: #f1f2f6;
    border: 1px solid var(--br-border);
    border-radius: var(--br-radius);
    padding: 12px 20px;
    font-size: 15px;
    color: var(--br-text-dark);
    transition: all 0.3s ease;
}

#br-header-search-input:focus, #br-global-search:focus {
    background: #fff;
    border-color: var(--br-primary);
    box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.1);
    outline: none;
}

/* 5. Book Cards & Grid (Native App Feel) */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.book-card {
    background: var(--br-surface);
    border-radius: var(--br-radius);
    padding: 12px;
    border: 1px solid transparent;
    box-shadow: var(--br-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--br-shadow-md);
    border-color: var(--br-border);
}

.book-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--br-text-grey);
}

/* 6. Navigation Enhancements */
#br-main-header {
    border-bottom: 1px solid var(--br-border);
}

.br-nav-link {
    position: relative;
    padding: 5px 0;
}

.br-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--br-primary);
    transition: width 0.3s;
}

.br-nav-link:hover::after {
    width: 100%;
}

/* 7. Side Drawer Animations */
#br-side-menu-panel {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#br-mobile-nav-list a {
    padding: 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

#br-mobile-nav-list a:active {
    background: var(--br-bg-light);
}

/* 8. Mobile Bottom Navigation (Native App Style) */
.bottom-nav {
    border-top: 1px solid var(--br-border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

.nav-item {
    flex: 1;
    padding: 10px 0;
    color: var(--br-text-grey);
}

.nav-item.active {
    color: var(--br-primary);
    font-weight: 700;
}

/* 9. Utility Classes */
.hidden { display: none; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }