/*
Theme Name: Bunny Dev
Theme URI: https://bunnydv.com/
Author: Quang Nhat
Description: A clean bio landing page theme with a glass card and gradient background.
Version: 1.0.0
Text Domain: Bunny Dev
*/

:root {
  --bg-start: #d6eeff;
  --bg-end: #eef7ff;
  --text-main: #0f2c46;
  --text-muted: #3b5c79;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.75);
  --btn-bg: rgba(255, 255, 255, 0.55);
  --btn-border: rgba(15, 44, 70, 0.25);
  --btn-text: #0f2c46;
  --accent: #2b7ec7;
  --shadow: 0 20px 60px rgba(15, 44, 70, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #0b1d2e;
    --bg-end: #112a3d;
    --text-main: #e6f3ff;
    --text-muted: #b7d3ea;
    --card-bg: rgba(16, 33, 49, 0.68);
    --card-border: rgba(128, 172, 206, 0.25);
    --btn-bg: rgba(16, 33, 49, 0.55);
    --btn-border: rgba(166, 205, 235, 0.2);
    --btn-text: #e6f3ff;
    --accent: #67b7ff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text-main);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(120, 190, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -120px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(91, 170, 255, 0.35));
  opacity: 0.75;
  filter: blur(0.5px);
  animation: bubble-rise 18s linear infinite;
}

.bubble:nth-child(1) { left: 6%; width: 54px; height: 54px; animation-duration: 14s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 14%; width: 90px; height: 90px; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 24%; width: 42px; height: 42px; animation-duration: 12s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 36%; width: 120px; height: 120px; animation-duration: 20s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 48%; width: 64px; height: 64px; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(6) { left: 58%; width: 36px; height: 36px; animation-duration: 11s; animation-delay: 6s; }
.bubble:nth-child(7) { left: 66%; width: 96px; height: 96px; animation-duration: 19s; animation-delay: 5s; }
.bubble:nth-child(8) { left: 74%; width: 52px; height: 52px; animation-duration: 13s; animation-delay: 7s; }
.bubble:nth-child(9) { left: 82%; width: 130px; height: 130px; animation-duration: 22s; animation-delay: 4s; }
.bubble:nth-child(10) { left: 90%; width: 46px; height: 46px; animation-duration: 12s; animation-delay: 8s; }
.bubble:nth-child(11) { left: 28%; width: 72px; height: 72px; animation-duration: 17s; animation-delay: 9s; }
.bubble:nth-child(12) { left: 62%; width: 58px; height: 58px; animation-duration: 15s; animation-delay: 10s; }

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(-120vh) scale(1.08);
    opacity: 0;
  }
}

.hero-wrap {
  position: relative;
  z-index: 2;
  padding: 64px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  width: min(560px, 94vw);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 28px 26px 30px;
  text-align: center;
  animation: rise 0.8s ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--text-main);
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.6);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.link-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
  font-size: 18px;
}

.contact-pill {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 24px;
}

.product-section {
  position: relative;
  z-index: 2;
  padding: 10px 16px 50px;
}

.product-shell {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  margin: 6px 0 6px;
}

.section-subtitle {
  text-align: center;
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.product-body {
  padding: 14px 16px 16px;
}

.product-title {
  font-size: 18px;
  margin: 0 0 6px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-price-label {
  font-size: 12px;
  color: var(--text-muted);
}

.product-price-select {
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  min-width: 170px;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
}

.product-link {
  text-decoration: none;
  color: var(--btn-text);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.product-link-secondary {
  opacity: 0.85;
}

.product-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.product-detail-wrap {
  position: relative;
  z-index: 2;
  padding: 30px 16px 60px;
}

.product-detail-shell {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.product-detail-sidebar-wrap {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sidebar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.sidebar-back-btn:hover {
  transform: translateX(-2px);
}

.product-detail-main,
.product-detail-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.product-detail-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
}

.product-detail-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-detail-subtitle {
  margin: 10px 0 12px;
  font-size: 18px;
}

.product-detail-prices {
  margin-top: 6px;
  margin-bottom: 16px;
}

.product-price-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 13px;
}

.product-detail-empty {
  color: var(--text-muted);
  font-size: 14px;
}

.sidebar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.sidebar-back-btn:hover {
  transform: translateX(-2px);
}

.sidebar-bio {
  text-align: center;
}

.sidebar-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sidebar-name {
  margin: 12px 0 6px;
  font-size: 20px;
}

.sidebar-tagline {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.sidebar-links {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-contact {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-sidebar-wrap {
    position: static;
  }
}
