/* Reading Page Styles */

/* Hero Images Section */
.reading-hero-images {
    margin-top: 40px;
    padding: 20px;
    width: 100%;
}

/* Swiper Styles */
.hero-swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
    transition: transform 0.8s ease;
}

.hero-slide:hover .slide-image {
    transform: scale(1.02);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

.swiper-slide-active .slide-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s;
}

.slide-content h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
    background: #ffd700;
}

/* Books Grid */
.books-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

/* Book Cards */
.book-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Polaroid Style */
.book-card.polaroid {
    padding: 15px 15px 40px 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

/* Bookmark Style */
.book-card.bookmark {
    transform: rotate(2deg);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sticky Note Style */
.book-card.sticky-note {
    background: #ffeaa7;
    transform: rotate(-1deg);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.15);
}

.book-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.book-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Video card images - ensure full display */
.tool-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Overlay Effects */
.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-quote {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-style: italic;
}

.view-detail {
    padding: 10px 20px;
    background: #ffd700;
    border: none;
    border-radius: 25px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-detail:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Video Badge */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.video-badge img {
    width: 20px;
    height: 20px;
}

/* Hover Effects */
.book-card:hover {
    transform: translateY(-10px) rotate(0);
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.comments-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-comment {
    padding: 12px 24px;
    background: #ffd700;
    border: none;
    border-radius: 25px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    font-weight: 600;
}

.submit-comment:hover {
    background: #ffed4a;
    transform: scale(1.05);
}

/* Comment Display Styles */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffd700;
    animation: slideIn 0.5s ease;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.comment-header strong {
    color: #333;
    font-size: 1.1em;
}

.comment-header span {
    color: #666;
    font-size: 0.9em;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    font-size: 1em;
}

/* Reading Videos Section */
.reading-videos-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tool-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.view-video-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    transition: all 0.3s ease;
}

.view-video-btn:hover {
    background: linear-gradient(135deg, #ffed4a 0%, #ffd700 100%);
    transform: scale(1.05);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .hero-swiper {
        aspect-ratio: 4 / 3;
    }

    .slide-content h2 {
        font-size: 2em;
    }

    .slide-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .hero-swiper {
        aspect-ratio: 3 / 4;
        border-radius: 15px;
    }

    .slide-content {
        padding: 30px 20px;
    }

    .slide-content h2 {
        font-size: 1.8em;
    }

    .slide-content p {
        font-size: 1em;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .book-card {
        transform: none !important;
    }

    /* Reading Videos Mobile */
    .reading-videos-section .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reading-videos-section h2 {
        font-size: 2.5em;
    }

    .reading-videos-section p {
        font-size: 1.1em;
    }



    /* Mobile Navigation */
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5em;
        color: #333;
        cursor: pointer;
    }

    .navbar {
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero-swiper {
        aspect-ratio: 1 / 1;
    }

    .slide-content {
        padding: 20px 15px;
    }

    .slide-content h2 {
        font-size: 1.5em;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .comments-section {
        padding: 15px;
    }

    .comment {
        padding: 15px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
} 