/* ============================================================
   OCS Books Showcase Module — Premium Design System
   ============================================================ */

.ocs-books-grid-wrapper {
    width: 100%;
    margin: 32px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ocs-books-grid {
    display: grid;
    gap: 32px;
    box-sizing: border-box;
}

.ocs-books-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ocs-books-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .ocs-books-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ocs-books-cols-2,
    .ocs-books-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Book Card */
.ocs-book-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ocs-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* Book Cover Image 3D Effect */
.ocs-book-cover-wrap {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 270px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.ocs-book-card:hover .ocs-book-cover-wrap {
    transform: scale(1.03);
}

.ocs-book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ocs-book-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
}

/* Book Details */
.ocs-book-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ocs-book-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ocs-book-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ocs-book-title a:hover {
    color: #e02020;
}

.ocs-book-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

/* Favorite Heart Bookmark Button */
.ocs-book-card {
    position: relative;
}

.ocs-book-fav-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #cbd5e1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
}

.ocs-book-fav-btn:hover {
    transform: scale(1.1);
    color: #e02020;
}

.ocs-book-fav-btn.active {
    background: #fee2e2;
    color: #e02020;
}

.ocs-book-fav-btn.active .fav-icon {
    font-variation-settings: 'FILL' 1;
}

/* 3 Action Buttons Group */
.ocs-book-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.ocs-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ocs-book-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Button 1: Amazon.in */
.ocs-btn-amazon {
    background: #e02020;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(224, 32, 32, 0.25);
}
.ocs-btn-amazon:hover {
    background: #c81818;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(224, 32, 32, 0.35);
}

/* Button 2: International */
.ocs-btn-intl {
    background: #f8fafc;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}
.ocs-btn-intl:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
}

/* Button 3: About Book */
.ocs-btn-about {
    background: transparent;
    color: #475569;
    border: 1.5px solid transparent;
}
.ocs-btn-about:hover {
    color: #e02020;
    background: #fff0f0;
}
