@import url("../fonts/fontawesome6/css/regular.css");

/* ==========================================================================
   YABUH WEBSITE KIT — THEMED STYLING FOR JAILBREAK CUSTOMZ
   Matches Luxury Dark Theme: Oxanium + Manrope + Race Red #E9021E
   ========================================================================== */

/* 1. Dynamic Blog & Case Study Lists */
[data-yabuh="blog-list"], 
[data-yabuh="case-study-list"] {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  width: 100%;
}

.yabuh-card {
  position: relative;
  background: #161619;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.yabuh-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 2, 30, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(233, 2, 30, 0.2);
}

.yabuh-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.yabuh-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  transition: transform 0.5s ease;
}

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

.yabuh-card h3 {
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 10px 0;
  transition: color 0.25s ease;
}

.yabuh-card:hover h3 {
  color: #ff334b;
}

.yabuh-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px 0;
  flex: 1;
}

.yabuh-card time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.yabuh-card time::before {
  content: none;
}

/* 2. Dynamic Single Post / Article View */
.yabuh-article {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.8);
}

.yabuh-article h1 {
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.yabuh-article time {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.yabuh-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  margin: 20px 0 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.yabuh-body {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.yabuh-body p {
  margin-bottom: 22px;
}

.yabuh-body h2 {
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yabuh-body h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #e9021e;
}

.yabuh-body h3 {
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 28px;
  margin-bottom: 12px;
}

.yabuh-body ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.yabuh-body li {
  margin-bottom: 8px;
}

.yabuh-body a {
  color: #e9021e;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.yabuh-body a:hover {
  color: #ffffff;
}

.yabuh-related {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(233, 2, 30, 0.06);
  border: 1px solid rgba(233, 2, 30, 0.25);
  border-left: 4px solid #e9021e;
}

.yabuh-related h2 {
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
}

.yabuh-related h2::after {
  display: none;
}

.yabuh-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yabuh-related li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.yabuh-related li a:hover {
  color: #e9021e;
  transform: translateX(4px);
}

.yabuh-back {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yabuh-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e9021e;
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.yabuh-back a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* 3. Dynamic Gallery */
[data-yabuh="gallery"] {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  width: 100%;
}

.yabuh-photo {
  margin: 0;
  background: #161619;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.yabuh-photo:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 2, 30, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.yabuh-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.yabuh-ba > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.yabuh-photo figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 4. Empty State */
.yabuh-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  grid-column: 1 / -1;
}

/* 5. Contact Lead Form (Yabuh Lead Capture) */
form[data-yabuh="lead"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

form[data-yabuh="lead"] label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

form[data-yabuh="lead"] input:not([type="checkbox"]),
form[data-yabuh="lead"] textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--body-font, 'Manrope', sans-serif);
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}

form[data-yabuh="lead"] input:focus,
form[data-yabuh="lead"] textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: #e9021e;
  box-shadow: 0 0 0 3px rgba(233, 2, 30, 0.25);
}

form[data-yabuh="lead"] label.consent {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  margin-top: 4px;
}

form[data-yabuh="lead"] label.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #e9021e;
  cursor: pointer;
}

form[data-yabuh="lead"] button[type="submit"] {
  background: #e9021e;
  color: #ffffff;
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
}

form[data-yabuh="lead"] button[type="submit"]:hover {
  background: #ff1a35;
  box-shadow: 0 8px 24px rgba(233, 2, 30, 0.45);
  transform: translateY(-2px);
}

form[data-yabuh="lead"] button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.yabuh-form-msg {
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 767.98px) {
  .yabuh-post-page .blog-subheader .row,
  .yabuh-post-page .theme-footer .row {
    --bs-gutter-x: 1.5rem;
  }
  .yabuh-article {
    padding: 28px 20px;
    overflow-wrap: anywhere;
  }
  .yabuh-article h1 {
    font-size: 28px;
  }
  [data-yabuh="blog-list"] {
    grid-template-columns: 1fr;
  }
}


/* Centered Mid Loader & Empty State */
.yabuh-loading-state,
.yabuh-empty,
.yabuh-empty-state {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 60px 20px !important;
  margin: 0 auto !important;
}

.yabuh-loading-state .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 0.22em;
  color: #e9021e !important;
}


/* Dynamic Card Cover Badge & Footer */
.yabuh-form-msg[role="alert"] {
  background: rgba(233, 2, 30, 0.12);
  border-color: rgba(233, 2, 30, 0.4);
  color: #ff9aa6;
}

.yabuh-blog-empty .yabuh-blog-empty-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border: 1px solid rgba(233, 2, 30, 0.25);
  border-radius: 22px;
  background: rgba(233, 2, 30, 0.08);
  color: #ff2944;
}
.yabuh-blog-empty h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.25;
  color: #fff;
}
.yabuh-blog-empty p {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #a7a7b1;
}

.yabuh-card-cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
}

.yabuh-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(233, 2, 30, 0.9);
  color: #ffffff;
  font-family: var(--heading-font, 'Oxanium', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.yabuh-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.yabuh-card-footer time {
  padding-top: 0;
  border-top: 0;
}

.yabuh-card-more {
  color: #e9021e;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.yabuh-card:hover .yabuh-card-more {
  transform: translateX(4px);
}
