﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    min-height: 100vh;
    color: #1a1f2e;
    line-height: 1.5;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.app {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

/* ----- Modern Glass Header ----- */
.modern-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(102, 126, 234, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1f2e, #2d3748);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.brand-text span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.company-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: center;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 40px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    font-size: 0.9rem;
    color: #2d3748;
    transition: all 0.2s;
}

    .contact-chip i {
        color: #667eea;
        font-size: 1rem;
    }

    .contact-chip a {
        text-decoration: none;
        color: inherit;
        font-weight: 500;
    }

    .contact-chip:hover {
        background: rgba(102, 126, 234, 0.15);
        transform: translateY(-2px);
    }

/* ----- Hero Section ----- */
.hero-section {
    margin-bottom: 3rem;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-text h2 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1a1f2e 0%, #4a5568 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero-text .highlight {
    color: #667eea;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero-text p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2.5rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.08);
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----- Modern Category Nav ----- */
.category-nav-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.modern-cat-btn {
    flex: 0 1 auto;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #4a5568;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

    .modern-cat-btn i {
        font-size: 1.1rem;
        color: #667eea;
        transition: transform 0.2s;
    }

    .modern-cat-btn:hover {
        background: rgba(102, 126, 234, 0.08);
        color: #1a1f2e;
    }

        .modern-cat-btn:hover i {
            transform: scale(1.1);
        }

    .modern-cat-btn.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }

        .modern-cat-btn.active i {
            color: white;
        }

    .modern-cat-btn.all-active {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        box-shadow: 0 10px 25px rgba(245, 87, 108, 0.3);
    }

/* ----- Category Sections ----- */
.category-section-modern {
    display: none;
    animation: fadeSlide 0.4s ease-out;
}

    .category-section-modern.active {
        display: block;
    }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

    .section-header h3 {
        font-size: 2rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: #1a1f2e;
    }

.book-count-badge {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ----- Modern Book Grid ----- */
.books-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.8rem;
}

.book-card-modern {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 1.5rem 1.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .book-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .book-card-modern:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 50px rgba(102, 126, 234, 0.12);
        border-color: rgba(102, 126, 234, 0.3);
    }

        .book-card-modern:hover::before {
            opacity: 1;
        }

.book-cover-modern {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.2rem;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background: linear-gradient(145deg, #e0e7ff, #f3e8ff);
}

.book-card-modern:hover .book-cover-modern {
    transform: scale(1.02);
}

.book-category-pill {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.8rem;
    border-radius: 40px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.7rem;
}

.book-title-modern {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1a1f2e;
    line-height: 1.4;
}

.book-author-modern {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.book-price-modern {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #1a1f2e, #4a5568);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.add-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

    .add-cart-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    }

/* ----- Modern Footer ----- */
.modern-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #64748b;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

    .social-link:hover {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        transform: translateY(-3px);
    }

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .app {
        padding: 1rem 1.2rem 2rem;
    }

    .modern-header {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
        padding: 1.2rem 1.5rem;
    }

    .company-badge {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .category-nav-modern {
        border-radius: 30px;
        padding: 0.4rem;
    }

    .modern-cat-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .books-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .section-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .books-grid-modern {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        width: 100%;
    }

    .modern-cat-btn span {
        display: none;
    }

    .modern-cat-btn i {
        font-size: 1.3rem;
    }

    .modern-cat-btn {
        padding: 0.8rem;
        justify-content: center;
    }
}
