/* ==========================================================================
   Pijar Theme — Shared Design System
   ========================================================================== */

/* ---------- Color Variables ---------- */
:root {
    --pijar-dark:          #1a1a2e;
    --pijar-navy:          #0f3460;
    --pijar-orange:        #ff9606;
    --pijar-orange-hover:  #e08600;
    --pijar-orange-light:  #fff3e0;
    --pijar-gray-bg:       #f4f5f7;
    --pijar-card-shadow:   0 2px 16px rgba(0,0,0,0.07);
    --pijar-card-radius:   14px;
}

/* ---------- Page Wrapper ---------- */
.pijar-page {
    background: var(--pijar-gray-bg);
    min-height: 60vh;
}

/* ---------- Page Hero (dark header with breadcrumb) ---------- */
.pijar-hero {
    background: linear-gradient(135deg, var(--pijar-dark) 0%, #16213e 50%, var(--pijar-navy) 100%);
    padding: 180px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pijar-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,150,6,0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.pijar-hero .container { position: relative; z-index: 1; }

.pijar-hero-label {
    display: inline-block;
    background: rgba(255,150,6,0.15);
    border: 1px solid rgba(255,150,6,0.4);
    border-radius: 20px;
    padding: 5px 18px;
    color: var(--pijar-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.pijar-hero h1 {
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.pijar-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 17px;
    max-width: 500px;
    margin: 0 auto 22px;
    line-height: 1.7;
}
.pijar-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    list-style: none;
    padding: 0; margin: 0;
}
.pijar-breadcrumb a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}
.pijar-breadcrumb a:hover { color: var(--pijar-orange); }
.pijar-breadcrumb .sep { color: var(--pijar-orange); }
.pijar-breadcrumb .active { color: var(--pijar-orange); }

/* ---------- Section Label ---------- */
.pijar-label {
    display: inline-block;
    background: var(--pijar-orange-light);
    border-radius: 20px;
    padding: 4px 16px;
    color: var(--pijar-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ---------- Cards ---------- */
.pijar-card {
    background: #fff;
    border-radius: var(--pijar-card-radius);
    box-shadow: var(--pijar-card-shadow);
    border: 1px solid #eee;
    overflow: hidden;
}
.pijar-card-body { padding: 28px; }

/* ---------- Book Cards ---------- */
.pijar-book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--pijar-card-shadow);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pijar-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}
.pijar-book-card .cover-wrap {
    aspect-ratio: 2/3;
    overflow: hidden;
    flex-shrink: 0;
}
.pijar-book-card .cover-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.pijar-book-card:hover .cover-wrap img { transform: scale(1.04); }
.pijar-book-card .card-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pijar-book-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pijar-dark);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pijar-book-card .card-author {
    font-size: 13px;
    color: #999;
    margin: 0;
}
.pijar-book-card .card-footer-row {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---------- Author Cards ---------- */
.pijar-author-card {
    background: #fff;
    border-radius: var(--pijar-card-radius);
    padding: 24px;
    box-shadow: var(--pijar-card-shadow);
    border: 1px solid #eee;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pijar-author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.pijar-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pijar-orange-light);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 22px;
    color: var(--pijar-orange);
}
.pijar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pijar-avatar-lg {
    width: 90px; height: 90px;
    font-size: 30px;
}

/* ---------- Buttons ---------- */
.pijar-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.pijar-btn-primary {
    background: var(--pijar-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,150,6,0.35);
}
.pijar-btn-primary:hover {
    background: var(--pijar-orange-hover);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255,150,6,0.45);
}
.pijar-btn-dark {
    background: var(--pijar-dark);
    color: #fff;
}
.pijar-btn-dark:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}
.pijar-btn-outline {
    background: transparent;
    color: var(--pijar-dark);
    border: 2px solid #ddd;
}
.pijar-btn-outline:hover {
    border-color: var(--pijar-orange);
    color: var(--pijar-orange);
    text-decoration: none;
}
.pijar-btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}
.pijar-btn-outline-white:hover {
    border-color: var(--pijar-orange);
    color: var(--pijar-orange);
    text-decoration: none;
}

/* ---------- Badges / Status ---------- */
.pijar-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.pijar-badge-success { background: #d1fae5; color: #059669; }
.pijar-badge-danger  { background: #fee2e2; color: #dc2626; }
.pijar-badge-warning { background: #fef3c7; color: #d97706; }
.pijar-badge-info    { background: #dbeafe; color: #2563eb; }
.pijar-badge-neutral { background: #f3f4f6; color: #6b7280; }

/* ---------- Tables ---------- */
.pijar-table { width: 100%; border-collapse: collapse; }
.pijar-table thead tr {
    background: var(--pijar-gray-bg);
    border-bottom: 2px solid #e5e7eb;
}
.pijar-table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    text-align: left;
    white-space: nowrap;
}
.pijar-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.pijar-table tbody tr:hover { background: #fafafa; }
.pijar-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #444;
    vertical-align: middle;
}

/* ---------- Stat Strip ---------- */
.pijar-stat-strip {
    background: var(--pijar-orange);
}
.pijar-stat-item {
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.25);
}
.pijar-stat-item:last-child { border-right: none; }
.pijar-stat-number { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.pijar-stat-label  { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 5px; font-weight: 500; }

/* ---------- Page Section Toggles (tabs) ---------- */
.pijar-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #eee;
    margin-bottom: 24px;
}
.pijar-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.pijar-tab.active {
    color: var(--pijar-dark);
    border-bottom-color: var(--pijar-orange);
}
.pijar-tab:hover { color: var(--pijar-dark); }

/* ---------- Courier Selector ---------- */
.pijar-courier {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.pijar-courier:hover { border-color: var(--pijar-orange); }
.pijar-courier.selected {
    border-color: var(--pijar-orange);
    background: var(--pijar-orange-light);
    box-shadow: 0 0 0 3px rgba(255,150,6,0.15);
}
.pijar-courier img { max-height: 36px; width: auto; object-fit: contain; }

/* ---------- Qty Input ---------- */
.pijar-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.pijar-qty button {
    width: 36px; height: 36px;
    background: #f8f9fa;
    border: none;
    font-size: 18px; font-weight: 600;
    color: var(--pijar-dark);
    cursor: pointer;
    transition: background 0.15s;
}
.pijar-qty button:hover { background: var(--pijar-orange-light); color: var(--pijar-orange); }
.pijar-qty input {
    width: 56px; height: 36px;
    border: none;
    border-left: 2px solid #eee;
    border-right: 2px solid #eee;
    text-align: center;
    font-size: 14px; font-weight: 600;
    color: var(--pijar-dark);
    outline: none;
}

/* ---------- Detail Row (key-value pairs) ---------- */
.pijar-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.pijar-detail-row:last-child { border-bottom: none; }
.pijar-detail-label { color: #999; font-weight: 500; flex-shrink: 0; margin-right: 12px; }
.pijar-detail-value { color: var(--pijar-dark); font-weight: 600; text-align: right; }

/* ---------- Section headings ---------- */
.pijar-section-heading {
    margin-bottom: 28px;
}
.pijar-section-heading h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--pijar-dark);
    margin: 0 0 6px;
}
.pijar-section-heading p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* ---------- Empty state ---------- */
.pijar-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}
.pijar-empty i { font-size: 48px; margin-bottom: 16px; display: block; }
.pijar-empty p { font-size: 16px; margin: 0; }

/* ---------- Social links ---------- */
.pijar-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all 0.2s;
}
.pijar-social-link:hover {
    color: var(--pijar-orange);
    border-color: var(--pijar-orange);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .pijar-hero {
        padding: 155px 0 50px;
    }
}
