:root {
    --primary-blue: #0D47A1;
    --primary-blue-hover: #0a3a85;
    --primary-gold: #FFC107;
    --primary-gold-hover: #e0a800;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-muted: #666666;
    --serif-font: 'Playfair Display', Georgia, serif;
    --sans-font: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--sans-font);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--serif-font);
}

/* Topbar & Navbar customization */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 3px;
    background-color: var(--primary-gold);
    border-radius: 2px;
}

/* Floating WhatsApp Button for Action */
.btn-whatsapp-action {
    background-color: var(--primary-gold);
    color: var(--primary-blue) !important;
    font-weight: 700;
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 8px 20px;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.btn-whatsapp-action:hover {
    background-color: var(--primary-blue);
    color: var(--primary-gold) !important;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.3);
}

/* Main Hero Banner with custom geometric pattern overlay */
.hero-banner {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 40%, rgba(13, 71, 161, 0.8) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M40 0 L80 40 L40 80 L0 40 Z" fill="%23FFC107" fill-opacity="0.05"/></svg>');
    background-size: cover, 40px 40px;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-white), transparent);
}

/* Custom Cards style */
.book-card {
    border: none;
    background: white;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.book-cover-container {
    position: relative;
    background-color: var(--bg-light);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    overflow: hidden;
}

.book-cover-mock {
    width: 170px;
    height: 250px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.25), -1px 0 2px rgba(255,255,255,0.2) inset;
    border-radius: 2px 6px 6px 2px;
    background-size: cover;
    position: relative;
    transition: transform 0.3s ease;
}

.book-cover-mock img {
    width: 100%;
    height: 100%;
    border-radius: 2px 6px 6px 2px;
    background-size: cover;
    position: relative;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.book-card:hover .book-cover-mock {
    transform: scale(1.04) rotate(1deg);
}

/* African Motif Styling */
.african-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.african-divider span {
    display: block;
    height: 4px;
    background-color: var(--primary-gold);
    width: 50px;
    border-radius: 2px;
}

.african-divider i {
    color: var(--primary-blue);
    font-size: 1.4rem;
}

/* Custom categories pills */
.category-badge {
    background-color: rgba(13, 71, 161, 0.08);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gold-badge {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Buttons styles */
.btn-custom-blue {
    background-color: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-custom-blue:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-custom-gold {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    border: 2px solid var(--primary-gold);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-custom-gold:hover {
    background-color: var(--primary-gold-hover);
    border-color: var(--primary-gold-hover);
    transform: translateY(-2px);
}

/* Toast notifications styling */
.custom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1080;
    min-width: 300px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Category Card style */
.category-card {
    background: linear-gradient(135deg, white, var(--bg-light));
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.2);
}

.category-card:hover i {
    color: var(--primary-gold) !important;
}

/* Sidebar widgets */
.sidebar-card {
    background-color: var(--bg-light);
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

/* Podcast Player Interface */
.podcast-player-card {
    background: linear-gradient(135deg, #111, #222);
    color: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* SVG Art Background elements */
.creative-accent-bg {
    background-image: radial-gradient(var(--primary-gold) 1.5px, transparent 1.5px), radial-gradient(var(--primary-gold) 1.5px, var(--bg-light) 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.15;
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

/* Interactive loading element */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-gold);
    z-index: 9999;
    display: none;
    animation: loadingBar 0.8s ease-in-out infinite alternate;
}

@keyframes loadingBar {
    0% { width: 0%; left: 0%; }
    50% { width: 100%; left: 0%; }
    100% { width: 0%; left: 100%; }
}

/* Active Navigation View Transitions */
.app-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.app-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sticky Footer details */
footer {
    background-color: #0b1e36;
    color: #d1d9e6;
    padding-top: 60px;
    border-top: 5px solid var(--primary-gold);
    margin-top: auto;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

footer a {
    color: #b3c2d6;
    text-decoration: none;
    transition: color 0.2s;
}

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

footer .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
    margin-bottom: 15px;
}
