/* liquid-glass.css — KaoBoon Theme v2.0 — Apple Liquid Glass */
/* Palette: Teal #1BBFCC + Lime #C9E02A + Abyss #042E34 */

/* ===== PAGE BACKGROUND — teal+lime radial glow ===== */
body {
  background:
    radial-gradient(ellipse at 12% 0%,   rgba(27, 191, 204, 0.30) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 6%,   rgba(201, 224, 42,  0.18) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 55%,  rgba(27, 191, 204, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse at 6%  92%,  rgba(201, 224, 42,  0.12) 0%, transparent 44%),
    radial-gradient(ellipse at 94% 85%,  rgba(10, 122, 133,  0.16) 0%, transparent 44%),
    linear-gradient(160deg, #f0fffe 0%, #f4fefc 45%, #f8fff5 100%) !important;
  min-height: 100vh;
}

/* ===== NAVIGATION — sticky deep teal glass ===== */
.wp-block-template-part[class*="header"] {
  position: sticky;
  top: 0;
  z-index: 100;
}

[style*="background-color:var(--wp--preset--color--dark-base)"],
[style*="background-color: var(--wp--preset--color--dark-base)"] {
  background: rgba(4, 46, 52, 0.84) !important;
  backdrop-filter: blur(44px) saturate(200%) brightness(88%) !important;
  -webkit-backdrop-filter: blur(44px) saturate(200%) brightness(88%) !important;
  border-bottom: 1px solid rgba(27, 191, 204, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(27, 191, 204, 0.12),
    0 4px 28px rgba(4, 46, 52, 0.20) !important;
}

/* ===== POST CARDS in query loop — glass + teal border ===== */
/* Only target li inside query — NOT the single post content */
.wp-block-post-template > li {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(27, 191, 204, 0.22);
  border-radius: 16px;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    0 2px 0 rgba(27, 191, 204, 0.08),
    0 8px 28px rgba(4, 46, 52, 0.07),
    0 2px 6px rgba(4, 46, 52, 0.04);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.25,.8,.25,1), box-shadow 0.22s;
}

.wp-block-post-template > li:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    0 0 0 1.5px rgba(27, 191, 204, 0.30),
    0 16px 40px rgba(27, 191, 204, 0.12),
    0 4px 10px rgba(4, 46, 52, 0.07);
}

/* ===== SINGLE POST — glass frame AROUND content, not ON it ===== */
/* Wrap the post entry in a contained glass card without breaking WP layout */
.single .wp-block-post {
  background: transparent;
}

/* The inner content panel — constrained by WP layout, glass framed */
.single .wp-block-post > .wp-block-post-content,
.single .entry-content {
  /* Let WP manage width — just add subtle glass surface */
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-radius: 20px;
  /* Padding handled by WP theme.json — do NOT override */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.72),
    0 4px 24px rgba(4, 46, 52, 0.06);
  /* Keep border subtle so no hard line */
  outline: 1px solid rgba(27, 191, 204, 0.16);
  outline-offset: 0px;
}

/* ===== SINGLE POST TITLE area — frosted glass ===== */
.single .wp-block-post-title,
.wp-singular .entry-title-wrap {
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1rem 0;
}

/* ===== SEARCH BAR ===== */
.wp-block-search__input {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(27, 191, 204, 0.38) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wp-block-search__input:focus {
  border-color: rgba(27, 191, 204, 0.70) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 0 0 3px rgba(27, 191, 204, 0.16) !important;
  outline: none;
}

/* ===== COMMENTS ===== */
.comment-body {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  border: 1px solid rgba(27, 191, 204, 0.18);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 2px 12px rgba(4,46,52,0.05);
  margin-bottom: 1rem;
}

/* ===== PAGINATION — teal glass pills ===== */
.wp-block-query-pagination .page-numbers {
  background: rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(27, 191, 204, 0.28) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60) !important;
  transition: background 0.15s, transform 0.15s;
}
.wp-block-query-pagination .page-numbers:hover {
  background: rgba(27, 191, 204, 0.14) !important;
  transform: scale(1.08);
}
.wp-block-query-pagination .current {
  background: linear-gradient(135deg, #1BBFCC, #0A7A85) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 4px 14px rgba(27, 191, 204, 0.35) !important;
}

/* ===== BUTTONS — teal gradient glass ===== */
.wp-block-button__link,
.wp-element-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1BBFCC, #0A7A85) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.32),
    0 4px 16px rgba(27, 191, 204, 0.28) !important;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s !important;
}
.wp-block-button__link::before,
.wp-element-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(255,255,255,0.24) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.32),
    0 8px 24px rgba(27, 191, 204, 0.38) !important;
}

/* ===== FOOTER ===== */
[style*="background-color:var(--wp--preset--color--dark-base)"].wp-block-template-part,
footer [style*="dark-base"] {
  background: rgba(4, 46, 52, 0.92) !important;
  backdrop-filter: blur(32px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(160%) !important;
  border-top: 1px solid rgba(27, 191, 204, 0.18) !important;
  box-shadow: 0 -4px 28px rgba(4, 46, 52, 0.18) !important;
}

/* ===== UTILITY CLASS ===== */
.has-glass-shine {
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(27,191,204,0.24);
  border-radius: 16px;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.75), 0 8px 28px rgba(4,46,52,0.07);
}
