/* ═══════════════════════════════════════════════════════════════
   BaseFrame → DaisyUI Adapter
   Playful, colorful, component-rich. Purple primary, generous
   1.25rem card radius, filled badge nav, gradient hero with glass
   effect, bold borders for depth, oklch-inspired palette.
   All colors explicit hex/rgb — no CSS variables.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bf-accent: #661AE6;
  --bf-bg: #fff;
  --bf-text: #1f2937;
  --bf-text-soft: #9ca3af;
  --bf-border: #e5e7eb;
  --bf-hover-bg: #f3f4f6;
  --bf-topbar-hover: #661AE6;
  --bf-mark-bg: #ede0ff;
  --bf-mark-text: #661AE6;
  --bf-topbar-bg: #f5f0fe;
  --bf-topbar-border: #e8ddf5;
}

body.bf {
  font-family: "Inter", system-ui, sans-serif;
  background: #f9fafb;
  color: #1f2937;
}

/* ─── Header — DaisyUI navbar, clean with bottom border ────── */
.bf-header {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
}
.bf-logo-label {
  color: #fff;
  background: #661AE6;
  padding: .2rem .6rem;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 700;
}
.bf-logo-site { color: #1f2937; font-weight: 600; }

/* Nav — DaisyUI: filled rounded pills on active, bold */
.bf-nav .nav-item > a,
.bf-nav .mod-menu__toggle-sub {
  color: #1f2937;
  border-radius: .5rem;
  padding: .4rem .8rem;
  font-weight: 500;
  transition: all .2s;
}
.bf-nav .nav-item > a:hover,
.bf-nav .mod-menu__toggle-sub:hover {
  background: #f3f4f6;
}
.bf-nav .mod-menu__sub { border-color: #e5e7eb; border-radius: 1rem; }
.bf-nav .mod-menu__sub .nav-item > a { color: #1f2937; border-radius: .5rem; }
.bf-nav .mod-menu__sub .nav-item > a:hover { background: #f3f4f6; color: #661AE6; }
.bf-nav .nav-item.current > a,
.bf-nav .nav-item.active > a {
  background: #661AE6;
  color: #fff;
  font-weight: 600;
}
.bf-hamburger span { background: #1f2937; }
@media (max-width: 768px) {
  .bf-nav { background: #fff; }
}

/* ─── Hero — vibrant gradient with glass overlay feel ──────── */
.bf-hero {
  background: linear-gradient(135deg, #661AE6, #d926a9);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
}
.bf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}
.bf-hero .title { color: #fff; font-size: 3rem; font-weight: 800; position: relative; }
.bf-hero .subtitle { color: rgba(255,255,255,.8); font-size: 1.2rem; position: relative; }

/* ─── Blog grid ────────────────────────────────────────────── */
.bf-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ─── Cards — DaisyUI: generous radius, thick border for depth, playful ── */
.bf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
/* DaisyUI fan-favorite: distinctive border-color shift on hover */
.bf-card:hover {
  box-shadow: 0 12px 32px rgba(100,25,230,.1);
  transform: translateY(-4px);
  border-color: #d926a9;
}
.bf-card:hover .bf-card-readmore { background: #d926a9; }
.bf-card-image img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.bf-card-body {
  padding: 1.5rem;
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
}
.bf-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.bf-tag {
  display: inline-block;
  padding: .25rem .7rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #661AE6;
  color: #fff;
  border-radius: 9999px;
}
.bf-card-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.bf-card-title a { color: #1f2937; text-decoration: none; }
.bf-card-title a:hover { color: #661AE6; }
.bf-card-date { font-size: .75rem; color: #9ca3af; }
.bf-card-text { font-size: .9rem; flex: 1; color: #6b7280; }

/* Read more — filled button style (DaisyUI "btn btn-primary btn-sm") */
.bf-card-readmore {
  display: inline-block;
  margin-top: .75rem;
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  background: #661AE6;
  color: #fff;
  border-radius: .25rem;
  text-decoration: none;
  text-align: center;
  transition: opacity .2s;
}
.bf-card-readmore:hover { opacity: .88; }

/* Leading card */
.bf-blog-leading { margin-bottom: 2rem; }
.bf-blog-leading .bf-card { flex-direction: row; }
.bf-blog-leading .bf-card-image { flex: 0 0 45%; }
.bf-blog-leading .bf-card-image img { height: 100%; min-height: 280px; }
.bf-blog-leading .bf-card-title { font-size: 1.5rem; }
@media (max-width: 768px) {
  .bf-blog-leading .bf-card { flex-direction: column; }
  .bf-blog-leading .bf-card-image { flex: none; }
  .bf-blog-leading .bf-card-image img { height: 200px; min-height: auto; }
}

/* ─── Sidebar — DaisyUI bordered modules, generous radius ── */
.bf-module {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.bf-module-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .5rem; margin-bottom: .75rem;
}
.bf-sidebar .mod-articles-items { list-style: none; padding: 0; margin: 0; }
.bf-sidebar .mod-articles-item {
  margin: 0 !important; padding: 0 !important;
  background: none !important; box-shadow: none !important;
}
.bf-sidebar .mod-articles-item-content { display: contents; }
.bf-sidebar .mod-articles-title { font-size: .88rem !important; font-weight: 400 !important; margin: 0 !important; }
.bf-sidebar .mod-articles-link {
  display: block; padding: .4rem .5rem; text-decoration: none;
  color: #1f2937; border-radius: .5rem; transition: all .15s;
}
.bf-sidebar .mod-articles-link:hover { background: #f3f4f6; color: #661AE6; }
.bf-sidebar .tagspopular ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; }

/* ─── Content headings ─────────────────────────────────────── */
body.bf { color: #1f2937; }
.bf-content { color: #1f2937; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; color: #1f2937; margin-bottom: 1rem; }
.com-content-article__body h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; color: #1f2937; }
.com-content-article__body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; color: #1f2937; }
.com-content-article__body hgroup { margin-bottom: 1.5rem; }
.com-content-article__body hgroup p { color: #9ca3af; }
.com-content-article__body section + section {
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e5e7eb;
}

/* Grid cards — bordered, large radius, depth border */
.com-content-article__body .grid > article,
.com-content-article__body .home-grid > article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  padding: 1.5rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.com-content-article__body .grid > article:hover,
.com-content-article__body .home-grid > article:hover {
  box-shadow: 0 12px 32px rgba(100,25,230,.1);
  transform: translateY(-4px);
  border-color: #b794f6;
}
.com-content-article__body .grid > article > header,
.com-content-article__body .home-grid > article > header {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #fff; background: #661AE6;
  display: inline-block; padding: .2rem .6rem; border-radius: .375rem;
  margin-bottom: .75rem;
}
.com-content-article__body .grid > article > h3,
.com-content-article__body .home-grid > article > h3 {
  margin-top: 0; color: #661AE6; font-size: 1.5rem;
}
.com-content-article__body .grid > article > hgroup > h3 {
  margin-top: 0; color: #661AE6; font-size: 2rem; font-weight: 800;
}
.com-content-article__body .grid > div > h3 {
  font-size: 2.5rem; font-weight: 800; color: #661AE6; margin-bottom: .25rem; line-height: 1;
}
.com-content-article__body .grid > article ul,
.com-content-article__body .home-grid > article ul {
  list-style: disc; padding-left: 1.25rem; margin: .75rem 0 1rem;
}
.com-content-article__body .grid > article li { margin-bottom: .25rem; }

/* Buttons — DaisyUI filled, no border, bold */
.com-content-article__body a[role="button"] {
  display: inline-flex; padding: .65rem 1.5rem; font-weight: 700; font-size: .9rem;
  text-decoration: none; border-radius: .25rem; transition: all .2s;
  background: #661AE6; color: #fff; border: none;
}
.com-content-article__body a[role="button"]:hover { opacity: .85; }
.com-content-article__body a[role="button"].secondary {
  background: #f3f4f6; color: #1f2937;
}
.com-content-article__body a[role="button"].secondary:hover { background: #e5e7eb; }

/* Blockquote — DaisyUI accent border, clean */
blockquote {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-left: 4px solid #661AE6;
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #1f2937;
}
blockquote footer { font-style: normal; margin-top: .75rem; background: none; padding: 0; }
blockquote cite { font-weight: 700; color: #661AE6; }

/* FAQ — DaisyUI collapse, thick border, + / - indicator */
details {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  margin-bottom: .75rem;
  overflow: hidden;
  color: #1f2937;
}
details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: #661AE6;
  transition: transform .2s;
}
details[open] summary::after { content: '\2212'; }
details summary:hover { background: #f9fafb; }
details[open] summary {
  border-bottom: 2px solid #e5e7eb;
  background: #661AE6;
  color: #fff;
}
details[open] summary::after { color: #fff; }
details > *:not(summary) { padding: 0 1.25rem; }
details > p:last-child { padding-bottom: 1rem; }

/* Mark — DaisyUI secondary/pink badge */
mark {
  background: #d926a9;
  color: #fff;
  padding: .15rem .5rem;
  border-radius: .25rem;
}

/* Tags (Joomla output) — filled pills */
.tags .btn-info {
  display: inline-block; padding: .2rem .65rem; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  background: #661AE6; color: #fff;
  border-radius: 9999px; border: none;
}
.tags .btn-info:hover { opacity: .85; }

/* Read more — filled button */
.readmore .btn-secondary {
  display: inline-block; padding: .45rem 1rem; font-size: .8rem; font-weight: 700;
  text-decoration: none; background: #661AE6; color: #fff;
  border-radius: .25rem; border: none;
}
.readmore .btn-secondary:hover { opacity: .85; }
.readmore .icon-chevron-right { display: none; }

/* Pagination — DaisyUI rounded button group */
.bf-pagination .pagination {
  display: flex; gap: .25rem; list-style: none; padding: 0; justify-content: center;
}
.bf-pagination .page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .75rem;
  background: #fff; border: 2px solid #e5e7eb;
  border-radius: .5rem; text-decoration: none; font-size: .85rem;
  color: #1f2937; transition: all .15s;
}
.bf-pagination .page-link:hover { background: #f3f4f6; }
.bf-pagination .active .page-link {
  background: #661AE6; color: #fff; border-color: #661AE6;
}
.bf-pagination .disabled .page-link { opacity: .3; pointer-events: none; }
.pagination__wrapper { display: contents; }

/* Contact form — rounded, thick border on focus */
.com-contact input[type="text"],
.com-contact input[type="email"],
.com-contact textarea,
.com-contact select {
  width: 100%; padding: .625rem .875rem; font-size: 1rem;
  border: 2px solid #e5e7eb; border-radius: .5rem;
  background: #fff; color: #1f2937; transition: border-color .2s;
}
.com-contact input:focus,
.com-contact textarea:focus,
.com-contact select:focus {
  border-color: #661AE6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(100,25,230,.12);
}
.control-group { margin-bottom: 1rem; }
.control-label label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; }
.com-contact .btn-primary,
.com-contact button[type="submit"] {
  display: inline-flex; padding: .65rem 1.5rem; font-weight: 700; font-size: .9rem;
  background: #661AE6; color: #fff;
  border: none; border-radius: .5rem; cursor: pointer;
}

/* Footer — light gray background */
.bf-footer {
  background: #e5e7eb;
  border-top: 2px solid #d1d5db;
  color: #1f2937;
}
.bf-footer-bottom { color: #9ca3af; }
.bf-footer a { color: #1f2937; text-decoration: none; }
.bf-footer a:hover { color: #661AE6; }
.bf-footer .bf-module-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #9ca3af; margin-bottom: .75rem;
}
.bf-footer ul { list-style: none; padding: 0; }
.bf-footer ul li { padding: .15rem 0; }

/* Alerts — rounded, bordered */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  margin: 1rem 0;
  border: 2px solid #e5e7eb;
}
.alert-info { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.alert-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* Article image — generous radius */
.com-content-article figure.item-image { margin: 0 0 1.5rem; }
.com-content-article figure.item-image img {
  width: 100%; max-height: 480px; object-fit: cover; border-radius: .5rem;
}

/* Tag results */
.com-tags-tag__category.list-group { list-style: none; padding: 0; }
.com-tags-tag__category .list-group-item { padding: 0; border: none; background: none; }
.com-tags-tag__category .list-group-item h3 a {
  display: block; padding: .65rem .75rem; text-decoration: none;
  border-radius: .5rem; transition: all .15s; color: #1f2937;
}
.com-tags-tag__category .list-group-item h3 a:hover { background: #f3f4f6; color: #661AE6; }
