/**
 * CSS Detail Buku Multi OPAC
 * Path: assets/css/bookdetails.css
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #212529;
    --primary-light: color-mix(in srgb, var(--primary-color) 92%, white);
    --primary-dark: color-mix(in srgb, var(--primary-color) 70%, black);
}

body {
    background-color: #f4f6f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   HEADER DETAIL
   ============================================================ */
.detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0 30px 0;
    margin-bottom: 30px;
}
.detail-header .back-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.detail-header .back-link:hover {
    color: #fff;
    transform: translateX(-3px);
}
.detail-header .badge-library {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Wrapper */
.search-wrapper {
    display: flex;
    gap: 8px;
    max-width: 100%;
}
.search-wrapper input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    outline: none;
}
.search-wrapper .btn-theme {
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.search-wrapper .btn-theme:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ============================================================
   BOOK COVER
   ============================================================ */
.book-cover-large {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}
.book-cover-placeholder {
    width: 100%;
    max-width: 200px;
    height: 260px;
    background: #e9ecef;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* ============================================================
   HIRARKI TIPOGRAFI DETAIL CARD
   ============================================================ */
.detail-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}
.detail-card .label {
    font-weight: 700;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.detail-card .value {
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.4;
}
.detail-card .value-title {
    color: var(--primary-dark, #0d6efd);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}
.detail-card .value-highlight {
    color: #1a252f;
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================================
   AVAILABILITY BADGES & TABLES
   ============================================================ */
.availability-badge {
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.availability-available {
    background: #d4edda;
    color: #155724;
}
.availability-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.table-hover tbody tr:hover {
    background-color: var(--primary-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.detail-footer {
    background-color: var(--secondary-color);
    color: #cbd5e1;
    padding: 20px 0;
    margin-top: 50px;
}
.detail-footer .text-white {
    color: white !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .detail-card {
        padding: 16px;
    }
    .book-cover-large, .book-cover-placeholder {
        max-width: 150px;
    }
    .book-cover-placeholder {
        height: 200px;
        font-size: 3rem;
    }
    .detail-header h1 {
        font-size: 1.3rem;
    }
    .search-wrapper {
        flex-direction: column;
    }
}