/*
 * HAUSA24 BOOKS - MAIN STYLESHEET (VERSION 10.0 - BACK TO BASICS & STABLE)
 */

/* ==========================================================================
   SASHE NA 1: VARIABLES & BASIC SETUP
   ========================================================================== */
:root {
    --primary-color: #4A90E2; --primary-hover: #357ABD;
    --text-primary-color: #212529; --text-secondary-color: #6c757d;
    --bg-color: #f8f9fa; --bg-secondary-color: #ffffff;
    --border-color: #dee2e6; --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --font-family-base: 'Inter', sans-serif;
}
.dark-mode {
    --primary-color: #50E3C2; --primary-hover: #38d6b1;
    --text-primary-color: #e9ecef; --text-secondary-color: #adb5bd;
    --bg-color: #121212; --bg-secondary-color: #1e1e1e;
    --border-color: #495057;
}

/* Tsarin jikin shafi na asali */
body { 
    font-family: var(--font-family-base); 
    background-color: var(--bg-color); 
    color: var(--text-primary-color); 
    line-height: 1.6;
    margin: 0;
    padding-bottom: 70px; /* Tazara ga sticky footer */
}
.site-wrapper { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}
.container { max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; }
.main-content { flex-grow: 1; padding-top: 2rem; }

/* ==========================================================================
   SASHE NA 2: HEADER & MAIN NAVIGATION
   ========================================================================== */
.site-header { 
    padding: .5rem 0; 
    box-shadow: var(--shadow-sm); 
    position: sticky; /* Wannan zai manne a sama idan ana scrolling */
    top: 0; 
    z-index: 999; 
    background-color: var(--bg-secondary-color);
}
/* ... Sauran CSS na header anan... */
.header-main-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-logo a { text-decoration: none; }
.header-logo h1 { font-family: 'Arial Black', sans-serif; font-size: 1.8rem; color: var(--text-primary-color); margin: 0; }
.dark-mode .header-logo h1 { color: var(--primary-color); }
.header-logo .dot { color: var(--primary-color); }
.header-search { flex-grow: 1; max-width: 500px; }
.search-form { position: relative; }
.search-input { width: 100%; height: 40px; padding: 0 45px 0 20px; border-radius: 20px; border: 1px solid var(--border-color); background-color: var(--bg-color); color: var(--text-primary-color); font-size: 0.95rem; }
.search-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 32px; width: 32px; background-color: var(--primary-color); color: var(--bg-secondary-color); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.account-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 50%; font-weight: 500; font-size: 0.9rem; background-color: var(--primary-color); color: var(--bg-secondary-color); transition: background-color 0.2s; }
.account-btn .account-btn-text { display: none; }
.dark-mode-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 50%; background-color: transparent; color: var(--text-secondary-color); cursor: pointer; }
.scrollmenu { background-color: var(--bg-secondary-color); overflow-x: auto; white-space: nowrap; border-top: 1px solid var(--border-color); }
.scrollmenu ul { list-style: none; padding: 0; margin: 0; display: inline-block; }
.scrollmenu li { display: inline-block; }
.scrollmenu a { display: block; color: var(--text-secondary-color); text-align: center; padding: 12px 16px; text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.scrollmenu a:hover { color: var(--primary-color); }
.scrollmenu a.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

/* ... Sauran CSS din duka suna nan daidai kamar yadda suke a baya ... */
/* BOOK CARD, FOOTER, STICKY NAV, PLACEHOLDER, UTILITIES */
.book-card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .book-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .book-card-grid { grid-template-columns: repeat(4, 1fr); } }
.book-card { display: block; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; background-color: var(--bg-color); padding-top: 140%; }
.book-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.book-card > img, .book-card > .book-cover-placeholder-new { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.book-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); color: white; display: flex; flex-direction: column; justify-content: flex-end; }
.book-card-title-overlay { font-size: 1.0rem; font-weight: 600; margin: 0 0 0.5rem 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); line-height: 1.3; }
.book-card-meta-overlay { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.9; }
.book-card-views-overlay { display: flex; align-items: center; gap: 0.3rem; }
.star-rating { font-size: 13px; color: #ffc107; }
.widget-footer { background-color: var(--bg-color); padding: 3rem 0; border-top: 1px solid var(--border-color); flex-shrink: 0; }
.dark-mode .widget-footer { background-color: #000; }
.footer-widget-section { margin-bottom: 3rem; }
.footer-widget-section:last-child { margin-bottom: 0; }
.footer-section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; text-align: center; color: var(--text-primary-color); }
.policy-footer { background-color: var(--bg-color); padding: 1rem 0; color: var(--text-secondary-color); font-size: 0.9rem; flex-shrink: 0; border-top: 1px solid var(--border-color); }
.dark-mode .policy-footer { background-color: #1e1e1e; }
.policy-footer-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.policy-links, .footer-social-icons, .copyright { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.policy-links a, .copyright a { color: var(--text-secondary-color); text-decoration: none; transition: color 0.2s; }
.policy-links a:hover, .copyright a:hover { color: var(--primary-color); }
.footer-social-icons a { color: var(--text-secondary-color); font-size: 1.2rem; transition: color 0.2s; }
.footer-social-icons a:hover { color: var(--primary-color); }
@media (min-width: 768px) { .policy-footer-container { flex-direction: row; justify-content: space-between; } }
.sticky-footer-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background-color: var(--bg-secondary-color); box-shadow: 0 -2px 8px rgba(0,0,0,0.1); z-index: 1002; flex-shrink: 0; }
.sticky-nav-container { display: flex; justify-content: space-around; align-items: stretch; width: 100%; max-width: 1200px; margin: 0 auto; }
.sticky-footer-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; color: var(--text-secondary-color); text-decoration: none; font-size: 0.75rem; gap: 4px; transition: color 0.2s, background-color 0.2s; padding: 0 5px; }
.sticky-footer-nav a i { font-size: 1.5rem; }
.sticky-footer-nav a.active, .sticky-footer-nav a:hover { color: var(--primary-color); }
.dark-mode .sticky-footer-nav { border-top: 1px solid var(--border-color); }
.dark-mode .sticky-footer-nav a.active { background-color: rgba(80, 227, 194, 0.1); }
.book-cover-placeholder-new { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; box-sizing: border-box; overflow: hidden; position: relative; }
.book-cover-placeholder-new span { font-family: 'Arial Black', sans-serif; font-size: 5rem; font-weight: 900; line-height: 1; }
.book-cover-placeholder-new h3 { font-size: 1.2rem; font-weight: 700; margin-top: 0.5rem; line-height: 1.3; }
.dark-mode .book-cover-placeholder-new { border-color: var(--border-color); }
.dark-mode-toggle .fa-sun { display: none; }
.dark-mode .dark-mode-toggle .fa-moon { display: none; }
.dark-mode .dark-mode-toggle .fa-sun { display: block; }