/**
 * Kompas Ilmu - Bonus eBook Stylesheet (bonus-style.css)
 */

/* Bonus Catalog Page */
.bonus-page-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.bonus-search-box {
  max-width: 360px;
  width: 100%;
}

.bonus-search-input {
  border: 1px solid #CBD5E1;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.92rem;
  color: #1E293B;
  background-color: #FFFFFF;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.bonus-search-input::placeholder {
  color: #94A3B8;
}

.bonus-search-input:focus {
  border-color: #64748B;
  outline: none;
  box-shadow: none;
}

.bonus-filter-container {
  overflow-x: auto;
  scrollbar-width: thin;
}

.bonus-filter-btn {
  background-color: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 20px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bonus-filter-btn:hover {
  background-color: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.bonus-filter-btn.active {
  background: #008FD7;
  color: #FFFFFF;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 143, 215, 0.25);
}

/* Bonus Card Grid */
.bonus-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card, #EAEFF5);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.bonus-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
  color: inherit;
}

.bonus-img-box {
  border: none;
  border-radius: 10px;
  padding: 8px 4px 4px 4px;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  margin-bottom: 12px;
  overflow: hidden;
}

.bonus-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.bonus-card:hover .bonus-img {
  transform: scale(1.04);
}

.bonus-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.bonus-card:hover .bonus-title {
  color: #0077b3;
}

/* Detail Bonus Section */
.bonus-hero-section {
  background: linear-gradient(135deg, #006da8 0%, #008FD7 60%, #159be3 100%);
  padding: 3.25rem 0;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.bonus-hero-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 75, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 290px;
  margin: 0 auto;
}

.bonus-hero-img {
  max-height: 220px;
  width: 100%;
  object-fit: contain;
}

.bonus-hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.bonus-hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
}

.bonus-action-card {
  background: linear-gradient(135deg, #006da8 0%, #008FD7 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 143, 215, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bonus-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 143, 215, 0.28);
}

.bonus-action-icon {
  font-size: 2.25rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.bonus-action-card:hover .bonus-action-icon {
  transform: scale(1.06);
}

.bonus-action-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.btn-bonus-action {
  background-color: #FFFFFF;
  color: #0077b3 !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-bonus-action:hover {
  background-color: #F8FAFC;
  color: #005f8f !important;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

@media (max-width: 768px) {
  .bonus-hero-title {
    font-size: 1.45rem;
    margin-top: 1rem;
    text-align: center;
  }
  .bonus-hero-desc {
    text-align: center;
    margin: 0 auto;
    font-size: 0.9rem;
  }
}

