/* Hero Section Full-Page Slider Styles */
.hero-section {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

.hero-slide {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(0px);
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.carousel-item.active .hero-background {
    transform: scale(1);
}

.z-index-2 {
    z-index: 2;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-author {
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-category-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-price-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-item .price-label {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-actions .btn {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-book-image {
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-book-image:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) scale(1.05);
}

.hero-book-placeholder {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Carousel Controls */
.hero-carousel-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.hero-carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: white;
    transform: scale(1.3);
}

/* Search Filter Section */
.search-filter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 3;
}

.search-filter-section .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.search-filter-section .btn {
    border-radius: 0 25px 25px 0;
    padding: 1rem 2rem;
}

.filter-buttons .btn {
    margin: 0.25rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Book Cards */
.book-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.book-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007bff;
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 500;
}

.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
}

/* Featured and Latest Sections */
.featured-slider,
.py-5 {
    position: relative;
    z-index: 3;
}

/* Animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-price-section {
        padding: 1rem;
    }
    
    .hero-carousel-control {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .min-vh-100 {
        min-height: 80vh;
    }
    
    .search-filter-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-4 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .search-filter-section .d-flex {
        flex-direction: column;
    }
    
    .search-filter-section .form-control {
        border-radius: 25px;
        margin-bottom: 1rem;
    }
    
    .search-filter-section .btn {
        border-radius: 25px;
        width: 100%;
    }
}

/* Additional styling for better visual appeal */
.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Smooth transitions for carousel */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* Enhanced backdrop filter support */
@supports (backdrop-filter: blur(10px)) {
    .hero-price-section {
        backdrop-filter: blur(10px);
    }
    
    .hero-carousel-control {
        backdrop-filter: blur(10px);
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section:not(.hero-section) {
    position: relative;
    z-index: 3;
}