/* =============================================
   Books Page Styles - Watawdeh Math Center
   ============================================= */

.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23F59E0B" fill-opacity="0.15" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.4;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1rem;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* Books Grid */
.books-section {
    padding: 80px 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.empty-books-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-books-state i {
    font-size: 6rem;
    color: #CBD5E1;
    margin-bottom: 25px;
}

.empty-books-state h3 {
    font-size: 2rem;
    color: #475569;
    margin-bottom: 15px;
}

.empty-books-state p {
    font-size: 1.2rem;
    color: #94A3B8;
    margin-bottom: 30px;
}

.book-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.book-image {
    position: relative;
    padding-top: 130%; /* Book ratio */
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.book-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.book-badge.new {
    background: var(--success-green);
    color: var(--white);
}

.book-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-category {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.book-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.book-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.book-features {
    list-style: none;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.book-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.book-features i {
    color: var(--gold);
    font-size: 1rem;
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.book-price {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--primary-blue);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.add-to-cart-btn i {
    font-size: 1.2rem;
}

/* Info Section */
.info-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-footer {
        flex-direction: column;
    }
}

