/*
Theme Name: Donasi TemanBaik
Theme URI: https://temanbaik.id
Author: TemanBaik
Author URI: https://temanbaik.id
Description: Theme resmi TemanBaik - Platform Donasi Modern
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: temanbaik
*/

/* =====================================================
   ROOT BRAND COLORS
===================================================== */

:root {
  --tb-primary: #0B43FF;
  --tb-secondary: #3B82F6;
  --tb-light: #EFF6FF;
  --tb-dark: #0F172A;
  --tb-gray: #64748B;
  --tb-border: #E2E8F0;
  --tb-success: #22C55E;
  --tb-danger: #EF4444;
}

/* =====================================================
   RESET & BASE
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #F8FAFC;
  color: var(--tb-dark);
  padding-bottom: 70px; /* bottom nav safe */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   HEADER
===================================================== */

header {
  backdrop-filter: blur(10px);
}

.header-shadow {
  box-shadow: 0 4px 20px rgba(11, 67, 255, 0.15);
}

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--tb-secondary), var(--tb-primary));
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--tb-primary);
  color: var(--tb-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--tb-primary);
  color: #fff;
}

/* =====================================================
   CARD
===================================================== */

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tb-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(11, 67, 255, 0.15);
}

/* =====================================================
   PROGRESS BAR
===================================================== */

.progress {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tb-secondary), var(--tb-primary));
  transition: width 0.5s ease;
}

/* =====================================================
   BADGE
===================================================== */

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.badge-primary {
  background: var(--tb-light);
  color: var(--tb-primary);
}

.badge-danger {
  background: #FEE2E2;
  color: var(--tb-danger);
}

/* =====================================================
   HERO
===================================================== */

.hero {
  background: linear-gradient(135deg, var(--tb-secondary), var(--tb-primary));
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(11, 67, 255, 0.25);
}

.hero h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.hero p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 6px;
}

/* =====================================================
   BOTTOM NAV
===================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--tb-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.bottom-nav a {
  color: var(--tb-gray);
  font-size: 11px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}

.bottom-nav a.active {
  color: var(--tb-primary);
  font-weight: 600;
}

.bottom-nav .donasi-btn {
  background: var(--tb-primary);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(11, 67, 255, 0.4);
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  background: #fff;
  border-top: 1px solid var(--tb-border);
  padding: 24px 16px;
  font-size: 12px;
  color: var(--tb-gray);
  text-align: center;
}

/* =====================================================
   UTILITIES
===================================================== */

.text-primary {
  color: var(--tb-primary);
}

.bg-primary {
  background: var(--tb-primary);
}

.rounded-xl {
  border-radius: 16px;
}

.shadow-soft {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 768px) {

  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

}

#imageSlider img {
  backface-visibility: hidden;
  transform: translateZ(0);
}