﻿* {
    margin: 0;
    padding: 0;
/*    box-sizing: border-box;*/
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #DCD9D4;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.50) 0%, rgba(0,0,0,0.50) 100%), radial-gradient(at 50% 0%, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.50) 50%);
    background-blend-mode: soft-light,screen;
}

/*.container {
    max-width: 1200px;
    margin: 0 auto;
}*/


.container-fluid{
        padding-left : 1% !important;
    padding-right : 1% !important;
}



.header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

    .header h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .header p {
        font-size: 1.2em;
        opacity: 0.9;
    }

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

.book-container {
    perspective: 1500px;
    height: 400px;
    cursor: pointer;
    align-content: center !important;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    text-align: center !important;
}

.book-container:hover .book {
    transform: rotateY(10deg) translateY(-10px);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;

    background: linear-gradient(135deg, #faf7f5, #f5f2ef);

   /* background: linear-gradient(135deg, #f5f7fa, #eef2f6);*/
    /*    background: linear-gradient(135deg, #f0f5ff, #e6eeff);*/
    /* background: linear-gradient(45deg, #2c3e50, #34495e);*/
    /*  background: linear-gradient(135deg, #fdfbf7, #f9f7f3);*/

    border-radius: 8px 15px 15px 8px;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.3), -5px 0 15px rgba(255,255,255,0.1) inset;
    transform: translateZ(20px);
    overflow: hidden;
    backface-visibility: hidden;
}

.book-image {
    /*width: 250px;
    height: 500px;*/
/*    max-width: 100%;
    max-height: 100%;*/
   /*object-fit: scale-down;*/
    border-radius: 8px 15px 15px 8px;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* Chrome */
    image-rendering: crisp-edges; /* Firefox */
    image-rendering: high-quality; /* General */
}

.book-container:hover .book-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.book-spine {
    position: absolute;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #1a1a1a, #2d2d2d);
    transform: rotateY(-90deg) translateX(-20px);
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 0 10px rgba(0,0,0,0.3);
}

.book-pages {
    position: absolute;
    width: 98%;
    height: 98%;
    top: 1%;
    left: 1%;
    background: linear-gradient(90deg, #f8f8f8 0%, #ffffff 5%, #f8f8f8 10%);
    border-radius: 5px 12px 12px 5px;
    transform: translateZ(-1px);
}

.book-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
}

.book-container:hover .book-details {
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding-bottom: 25px;
}

.book-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.3;
}

.book-author {
    font-size: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.book-rating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Modal Styles */

    .modal.active {
        display: flex;
        opacity: 1;
    }

.modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
}

    .modal-close:hover {
        background: #c0392b;
        transform: rotate(90deg);
    }

.modal-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.modal-image {
    height: 100%;
    min-height: 400px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    .modal-image img {
        width: 100%;
        max-width: 250px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    }

.modal-info {
    padding: 40px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
}

.modal-author {
    font-size: 1.2em;
    color: #ecf0f1;
    margin-bottom: 25px;
    opacity: 0.9;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.modal-description {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #ecf0f1;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #bdc3c7;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 300px;
        padding: 20px;
    }

        .modal-image img {
            max-width: 200px;
        }

    .modal-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-info {
        padding: 25px;
    }

    .modal-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .modal-stats {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}

.footer {
    text-align: center;
    margin-top: 60px;
    color: white;
    opacity: 0.8;
}



.book-card {
    transition: transform 0.3s ease;
    height: 100%;
}

    .book-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.category-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.book-cover {
    height: 415px;
    /*object-fit: scale-down;*/
    justify-content: center !important;
}

.btn-affiliate {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    transition: all 0.3s ease;
}

    .btn-affiliate:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
    }