/* Client View Custom Style Sheet - Bookchor Clone Orange Theme */

:root {
    --primary-orange: #FF5722;
    --primary-orange-hover: #E64A19;
    --orange-accent: #FF3D00;
    --dark-theme-bg: #121212;
    --dark-theme-card: #1e1e1e;
    --text-orange-light: #ff7043;
    --bg-light: #fafafa;
    --border-color: #eee;
    --nav-bg: #ffffff;
    --footer-bg: #1e293b;
    --text-color: #212529;
}

/* Global Theme Overrides */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    --bg-light: #121212;
    --text-color: #e0e0e0;
    --nav-bg: #1a1a1a;
    --border-color: #2c2c2c;
    --footer-bg: #0f172a;
}

body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .pricing-card,
body.dark-mode .filter-sidebar {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #2c2c2c !important;
}

body.dark-mode .main-navbar,
body.dark-mode .sub-navbar-links,
body.dark-mode .mobile-sticky-bottom-menu,
body.dark-mode .sidebar-header {
    background-color: #1a1a1a !important;
    border-color: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .table,
body.dark-mode td,
body.dark-mode th {
    color: #e0e0e0 !important;
    background-color: #1e1e1e !important;
}

body.dark-mode .bg-light,
body.dark-mode .bg-light-gray,
body.dark-mode .bg-white {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

body.dark-mode .text-dark,
body.dark-mode .text-muted,
body.dark-mode .highlight-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
}

body.dark-mode .text-muted,
body.dark-mode .highlight-label {
    color: #aaaaaa !important;
}

body.dark-mode a,
body.dark-mode .nav-link {
    color: #e0e0e0 !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #3a3a3a !important;
}

/* Nav & Branding */
.main-navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color) !important;
}

.logo-accent {
    color: var(--primary-orange);
}

.text-orange {
    color: var(--primary-orange) !important;
}

/* Navigation Elements */
.btn-orange-accent {
    background-color: var(--primary-orange);
    color: white !important;
    border: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-orange-accent:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-1px);
}

.btn-outline-orange {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-orange:hover {
    background-color: var(--primary-orange);
    color: white;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    font-weight: 600;
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
    color: white;
}

/* Search Forms */
.search-form-header {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 50px;
    border: 1px solid var(--border-color);
    height: 44px;
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: var(--primary-orange-hover);
    color: white;
}

/* Book Cards & Grid */
.book-card {
    transition: none;
    border-radius: 0;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0;
}

.book-card:hover {
    transform: none;
    box-shadow: none !important;
}

.book-card-img-wrapper {
    height: auto;
    aspect-ratio: 1 / 1.45;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fafafa !important;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 4px;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.book-card-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Card Text and Title Sizing Controls */
.book-card .card-title {
    font-size: 0.8rem !important;
    line-height: 1.25;
    color: #212529 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.book-card .text-muted {
    font-size: 0.7rem !important;
    color: #777777 !important;
}

.book-card .text-dark.fw-bold.fs-6 {
    font-size: 0.85rem !important;
    color: #212529 !important;
}

.book-card del.text-muted {
    font-size: 0.7rem !important;
    color: #999999 !important;
    text-decoration: line-through;
}

.book-card .text-green-discount {
    font-size: 0.7rem !important;
    color: #388e3c !important;
    font-weight: 700;
}

body.dark-mode .book-card {
    background-color: transparent !important;
}
body.dark-mode .book-card .card-body {
    background-color: transparent !important;
}
body.dark-mode .book-card .card-title {
    color: #ffffff !important;
}
body.dark-mode .book-card .text-muted {
    color: #aaaaaa !important;
}
body.dark-mode .book-card .text-dark.fw-bold.fs-6 {
    color: #ffffff !important;
}
body.dark-mode .book-card del.text-muted {
    color: #777777 !important;
}
body.dark-mode .book-card-img-wrapper {
    background-color: #1a1a1a !important;
    border-color: #2c2c2c !important;
}

.bg-orange {
    background-color: var(--primary-orange) !important;
    color: white;
}

/* Category card style */
.category-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-orange) !important;
    background-color: #fffaf7 !important;
    transform: translateY(-2px);
}

body.dark-mode .category-card:hover {
    background-color: #2a1b15 !important;
}

/* Hero Section specific decoration */
.hero-section-orange {
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
}

.hero-image-box-design {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-centerpiece-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.4);
    animation: pulse 3s infinite;
}

.floating-book-card {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 180px;
    z-index: 2;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer structure */
.footer-section {
    background-color: var(--footer-bg);
    color: #94a3b8;
}

.footer-title {
    font-weight: 800;
    color: #ffffff;
}

.footer-sub-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 2.2;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.2s;
}

.social-links a:hover {
    background-color: var(--primary-orange);
    color: white;
}

/* Layout utilities */
.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.75rem !important; }

/* Book details page details */
.book-details-img {
    max-height: 380px;
    object-fit: contain;
}

.quantity-selector input {
    max-width: 45px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Bookchor Real Theme Styles */
.top-teal-bar {
    background-color: #009688; /* Real Bookchor Teal */
    font-weight: 500;
}

.search-form-header-premium {
    position: relative;
    max-width: 550px;
    width: 100%;
}

.search-input-premium {
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 60px;
    border: 1px solid #FF5722; /* Accent orange border */
    height: 48px;
    font-weight: 500;
}

.btn-search-premium {
    position: absolute;
    right: 4px;
    top: 4px;
    border-radius: 50px;
    background-color: #FF5722;
    color: white;
    border: none;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-search-premium:hover {
    background-color: #E64A19;
    color: white;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e8f5e9; /* Light green circle */
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.cart-badge-link-premium {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: background-color 0.2s;
}

.cart-badge-link-premium:hover {
    background-color: #eee;
}

/* Weekend Sale Banner custom layout */
.weekend-sale-banner-bg {
    background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%); /* Fresh gradient weekend sale style */
    color: #333 !important;
}

.weekend-sale-banner-bg h1 {
    color: #FF3D00 !important;
    text-shadow: 2px 2px 0px #fff;
}

.promo-pill {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.wishlist-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    color: #555;
    transition: all 0.2s;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.wishlist-heart-btn span {
    display: none !important;
}

.wishlist-heart-btn:hover {
    color: #ff3366;
    transform: scale(1.08);
}

.promo-box-premium {
    transition: transform 0.3s ease;
}

.promo-box-premium:hover {
    transform: translateY(-5px);
}

/* Premium Horizontal Book Slider Layout */
.slider-wrapper-premium {
    position: relative;
    width: 100%;
}

.slider-container-premium {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 5px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.slider-container-premium::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.slider-card-item {
    flex: 0 0 calc((100% - 130px) / 7.5) !important;
    max-width: calc((100% - 130px) / 7.5) !important;
}

/* Tablet (768px to 1199.98px) - Show 4.5 Cards */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .slider-container-premium {
        gap: 15px !important;
    }
    .slider-card-item {
        flex: 0 0 calc((100% - 53px) / 4.5) !important;
        max-width: calc((100% - 53px) / 4.5) !important;
    }
}



.btn-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s;
    border-radius: 4px;
}

.btn-slider-arrow:hover {
    background-color: #FF5722;
    color: #ffffff;
    border-color: #FF5722;
}

.btn-slider-arrow.left {
    left: -20px;
}

.btn-slider-arrow.right {
    right: -20px;
}

/* Mobile Responsive Book Slider (Show 2.5 Cards, Hide Navigation Arrows) */
@media (max-width: 767.98px) {
    .btn-slider-arrow {
        display: none !important;
    }
    
    .slider-card-item {
        flex: 0 0 calc((100% - 15px) / 2.5) !important;
        max-width: calc((100% - 15px) / 2.5) !important;
    }

    .book-card {
        padding: 0 !important;
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .book-card-img-wrapper {
        height: auto !important;
        aspect-ratio: 1 / 1.45 !important;
        margin-bottom: 6px !important;
        padding: 3px !important;
        background-color: #fafafa !important;
        border: 1px solid #eaeaea !important;
        border-radius: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .book-card-img {
        max-height: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 4px !important;
    }
}

/* --- Premium Book Details Custom Tabs & Badges --- */
.custom-details-tabs .nav-link {
    border-bottom: 3px solid transparent !important;
    background: none !important;
    color: #6c757d !important;
    padding-bottom: 10px !important;
}

.custom-details-tabs .nav-link.active {
    border-bottom: 3px solid #FF5722 !important;
    color: #FF5722 !important;
}

.publisher-letter-badge {
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.desc-fade-overlay {
    transition: opacity 0.3s;
}

/* Compact Highlights Grid Sizing */
.highlight-item i {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 4px;
}

.highlight-title {
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.2;
}

.highlight-label {
    font-size: 9px;
    color: #777777;
    margin-top: 1px;
}

body.dark-mode .cart-badge-link-premium {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
}

body.dark-mode .cart-badge-link-premium i {
    color: #ffffff !important;
}

.swal2-popup {
    font-family: 'Outfit', sans-serif !important;
}
