/**
 * Modern Books Section Styles
 * NCERT Books showcase with tabs and cards
 * Created: December 2024
 */

/* ============================================
   Books Section Base
   ============================================ */
.books-modern-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

/* Section Title */
.books-modern-section .section-title {
    margin-bottom: 50px;
}

.books-modern-section .section-subtitle {
    display: inline-block;
    color: #f77112;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.books-modern-section .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.books-modern-section .section-description {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Category Tabs
   ============================================ */
.books-categories {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px 30px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.category-tab:hover {
    border-color: var(--category-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-tab.active {
    background: var(--category-color);
    border-color: var(--category-color);
    color: #ffffff;
}

.category-tab i {
    font-size: 2rem;
    color: var(--category-color);
    transition: all 0.3s ease;
}

.category-tab.active i {
    color: #ffffff;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.category-tab.active .category-name {
    color: #ffffff;
}

.category-desc {
    font-size: 0.85rem;
    color: #718096;
    text-align: center;
}

.category-tab.active .category-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Books Content
   ============================================ */
.books-content {
    margin-bottom: 40px;
}

.books-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.books-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Book Card
   ============================================ */
.book-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Book Cover */
.book-cover {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7711215 0%, #f7711210 100%);
}

.book-image.exemplar {
    background: linear-gradient(135deg, #0c8b5115 0%, #0c8b5110 100%);
}

.book-placeholder {
    text-align: center;
    color: #f77112;
}

.book-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.class-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

/* Book Badge */
.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exemplar-badge {
    background: linear-gradient(135deg, #0c8b51 0%, #0a7043 100%);
}

/* Book Info */
.book-info {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.book-meta {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-meta i {
    color: #f77112;
}

/* Book Actions */
.book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d65d0a 0%, #c04e08 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 113, 18, 0.3);
    color: #ffffff;
}

.btn-secondary {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #718096;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f77112;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   All Classes Section
   ============================================ */
.all-classes-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.all-classes-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
}

.class-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.class-link {
    padding: 12px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    color: #2d3748;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.class-link:hover {
    background: linear-gradient(135deg, #f7711215 0%, #f7711210 100%);
    border-color: #f77112;
    color: #f77112;
    transform: translateY(-3px);
}

/* ============================================
   Coming Soon Section
   ============================================ */
.coming-soon-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    border-radius: 20px;
}

.coming-soon-section i {
    font-size: 4rem;
    color: #07294d;
    margin-bottom: 20px;
}

.coming-soon-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.coming-soon-section p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 30px;
}

.coming-soon-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #07294d 0%, #051a30 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.coming-soon-section .cta-btn:hover {
    background: linear-gradient(135deg, #051a30 0%, #020d1a 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(7, 41, 77, 0.3);
    color: #ffffff;
}

/* ============================================
   Benefits Section
   ============================================ */
.books-benefits {
    background: linear-gradient(135deg, #07294d 0%, #0a3d6b 100%);
    border-radius: 25px;
    padding: 50px 40px;
    color: #ffffff;
}

.books-benefits h3 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.benefit-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ============================================
   Background Decoration
   ============================================ */
.books-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
}

.decoration-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    top: -200px;
    right: -200px;
}

.decoration-shape.shape-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #0c8b51 0%, #0a7043 100%);
    bottom: -175px;
    left: -175px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .books-modern-section {
        padding: 80px 0;
    }

    .books-modern-section .title {
        font-size: 2rem;
    }

    .category-tab {
        min-width: 180px;
        padding: 20px 25px;
    }

    .book-cover {
        height: 220px;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .books-modern-section {
        padding: 60px 0;
    }

    .books-modern-section .title {
        font-size: 1.75rem;
    }

    .books-modern-section .section-description {
        font-size: 1rem;
    }

    .books-categories {
        flex-direction: column;
        gap: 15px;
    }

    .category-tab {
        min-width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 20px;
    }

    .category-tab i {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 1rem;
    }

    .category-desc {
        display: none;
    }

    .book-cover {
        height: 200px;
    }

    .book-placeholder i {
        font-size: 3rem;
    }

    .class-number {
        font-size: 1.25rem;
    }

    .book-title {
        font-size: 1.15rem;
    }

    .all-classes-section {
        padding: 30px 20px;
    }

    .all-classes-section h3 {
        font-size: 1.25rem;
    }

    .class-links {
        gap: 8px;
    }

    .class-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .coming-soon-section {
        padding: 60px 30px;
    }

    .coming-soon-section i {
        font-size: 3rem;
    }

    .coming-soon-section h3 {
        font-size: 1.5rem;
    }

    .coming-soon-section p {
        font-size: 1rem;
    }

    .books-benefits {
        padding: 40px 25px;
    }

    .books-benefits h3 {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .benefit-content h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .books-modern-section {
        padding: 50px 0;
    }

    .books-modern-section .title {
        font-size: 1.5rem;
    }

    .category-tab {
        padding: 15px;
    }

    .book-cover {
        height: 180px;
    }

    .book-info {
        padding: 20px 15px;
    }

    .book-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
        height: 45px;
    }

    .coming-soon-section {
        padding: 40px 20px;
    }

    .coming-soon-section h3 {
        font-size: 1.25rem;
    }

    .books-benefits {
        padding: 30px 20px;
    }

    .books-benefits h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .books-decoration,
    .category-tab,
    .book-badge,
    .btn-secondary,
    .coming-soon-section,
    .books-benefits {
        display: none;
    }

    .book-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        page-break-inside: avoid;
    }

    .books-tab-content {
        display: block !important;
    }
}
