/* ========================================
   TRANSLATIONS SECTION - BOOKS (v3)
   ======================================== */

.translations-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    min-height: 100vh;
}

.translations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */

.translations-header {
    text-align: center;
    margin-bottom: 40px;
}

.translations-header__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(201, 162, 39, 0.1) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 12px;
}

.translations-header__icon svg {
    width: 32px;
    height: 32px;
    color: #c9a227;
}

.translations-header__title {
    font-family: 'Noto Kufi Arabic', 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.translations-header__subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   SEARCH BOX
   ======================================== */

.translations-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.translations-search__form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.translations-search__form:focus-within {
    border-color: #c9a227;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.translations-search__input {
    flex: 1;
    padding: 14px 25px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #ffffff;
}

.translations-search__input::placeholder {
    color: #6b7280;
}

.translations-search__btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a227 0%, #a88a1e 100%);
    border: none;
    border-radius: 50%;
    margin: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.translations-search__btn svg {
    width: 22px;
    height: 22px;
    color: #1a1a2e;
}

.translations-search__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.translations-search__count {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
}

.translations-search__count span {
    color: #c9a227;
    font-weight: 700;
}

/* ========================================
   BOOKS GRID
   ======================================== */

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* ========================================
   BOOK CARD - Image Top, Details Bottom
   ======================================== */

.book-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.95), rgba(17, 22, 32, 0.98));
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.book-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 175, 55, 0.15),
        0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    border-color: rgba(212, 175, 55, 0.35);
}

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

/* Book Cover */
.book-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(180deg, #1a2332, #0f141c);
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

.book-card:hover .book-card__cover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Gradient Overlay on Cover */
.book-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(17, 22, 32, 1) 0%,
            rgba(17, 22, 32, 0.8) 20%,
            rgba(17, 22, 32, 0.2) 50%,
            transparent 100%);
    z-index: 2;
    transition: all 0.3s ease;
}

.book-card:hover .book-card__overlay {
    background: linear-gradient(to top,
            rgba(17, 22, 32, 1) 0%,
            rgba(17, 22, 32, 0.6) 25%,
            rgba(17, 22, 32, 0.1) 60%,
            transparent 100%);
}

/* Book Info Section */
.book-card__info {
    padding: 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.02));
    position: relative;
}

.book-card__info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* Date Badge */
.book-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    color: #c9a227;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Book Title */
.book-card__title {
    font-family: 'Noto Kufi Arabic', 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e8e8e8;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.book-card:hover .book-card__title {
    color: #c9a227;
}

/* ========================================
   NO BOOKS STATE
   ======================================== */

.no-books {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-books svg {
    color: #4b5563;
    margin-bottom: 20px;
}

.no-books p {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.reset-search {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #c9a227 0%, #a88a1e 100%);
    color: #1a1a2e;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.reset-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4);
}

/* ========================================
   PAGINATION
   ======================================== */

.translations-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination__btn {
    width: 45px;
    height: 45px;
    background: rgba(201, 162, 39, 0.1);
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination__btn svg {
    width: 20px;
    height: 20px;
    color: #c9a227;
}

.pagination__btn:hover:not(.pagination__btn--disabled) {
    background: #c9a227;
    border-color: #c9a227;
}

.pagination__btn:hover:not(.pagination__btn--disabled) svg {
    color: #1a1a2e;
}

.pagination__btn--disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination__numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination__number:hover {
    color: #c9a227;
    background: rgba(201, 162, 39, 0.1);
}

.pagination__number--active {
    color: #1a1a2e;
    background: linear-gradient(135deg, #c9a227 0%, #e8d5a3 100%);
}

.pagination__number--active:hover {
    color: #1a1a2e;
    background: linear-gradient(135deg, #c9a227 0%, #e8d5a3 100%);
}

.pagination__dots {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    padding: 0 5px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

    .translations-header__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .translations-search__form {
        max-width: 100%;
    }

    .pagination__number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .pagination__btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .translations-section {
        padding: 40px 0 60px;
    }

    .translations-header__title {
        font-size: 1.75rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .book-card__title {
        font-size: 0.9rem;
    }

    .book-card__info {
        padding: 1rem;
    }

    .pagination__numbers {
        gap: 5px;
    }
}
