/* Books Page Styles */

/* Body background */
body {
    background: #ffffff;
}

/* ========================================
   LEFT SIDEBAR NAVIGATION - MINTLIFY STYLE
   ======================================== */

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    display: none;
}

.mobile-header-content {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-logo {
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-logo a {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.mobile-logo a:hover {
    opacity: 0.8;
}

.mobile-logo img {
    height: 24px;
    width: auto;
    filter: brightness(0);
}

.mobile-nav-section {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: none;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8e8c8c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #3D8073;
}

.breadcrumb-separator {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #d1d5db;
    margin: 0 4px;
}

.breadcrumb-current {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8e8c8c;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle-btn:hover {
    background: #f1f5f9;
}

.mobile-menu-toggle-btn svg {
    color: #1A1A1A;
}

/* Left Sidebar Navigation */
.left-sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: none;
    transition: background-color 0.2s ease;
}

.sidebar-close-btn:hover {
    background: #f1f5f9;
}

.sidebar-close-btn svg {
    color: #1A1A1A;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Mobile Close Button (top right) */
.mobile-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1002;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    opacity: 0.7;
}

.mobile-close-btn svg {
    color: #1A1A1A;
    width: 24px;
    height: 24px;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 24px;
    width: auto;
    filter: brightness(0);
}

.sidebar-content {
    flex: 1;
    padding: 20px 0;
}

.sidebar-footer {
    padding: 20px 0 0 0;
    border-top: 1px solid #e5e7eb;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #8e8c8c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 20px 0 23px;
}

.nav-section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section-list li {
    margin-bottom: 2px;
}

.nav-item {
    display: block;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1A1A1A;
    text-decoration: none;
    line-height: 1.5;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: #3D8073;
    background: #f1f5f9;
}

.nav-item.active {
    color: #3D8073;
    font-weight: 500;
    background: rgba(61, 128, 115, 0.08);
    border-left-color: #3D8073;
}

/* Scrollbar styling - Hidden but functional */
.left-sidebar-nav::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.left-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.left-sidebar-nav::-webkit-scrollbar-thumb {
    background: transparent;
}

.left-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Firefox scrollbar hiding */
.left-sidebar-nav {
    scrollbar-width: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .breadcrumbs {
        display: block;
    }
    
    .left-sidebar-nav {
        transform: translateX(-100%);
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    
    .left-sidebar-nav.mobile-open {
        transform: translateX(0);
    }
    
    .mobile-overlay {
        display: block;
    }
    
    .mobile-close-btn {
        display: flex;
    }
}

/* Main content offset for sidebar */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 104px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Mobile responsiveness for main content */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-top: 80px;
        max-width: none;
    }
}

/* Gallery Container */
.gallery-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 400px;
}

/* Gallery Grid */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
    align-items: center;
}

/* Gallery Item */
.gallery-item {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 560 / 380;
    border-radius: 56px;
    overflow: hidden;
    background: #E5E5E5 !important;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 56px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile Version */
@media (max-width: 767px) {
    .gallery-grid {
        gap: 16px;
        justify-content: center;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* Scroll Animation Styles */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-item.animate {
    opacity: 1;
    transform: translateY(0);
}
