/*
 * Display Unified System — Unified Stylesheet
 * File Version: 7
 * Updated: 2026-10-29
 * Scope: site article metadata, Category List, WhatsApp and My Blog buttons,
 *        and the administrator plugin-configuration switch.
 */

/* =========================================================
   Administrator: plugin enabled switch
   ========================================================= */
.switcher:has(input[name="jform[params][enabled]"][value="1"]:checked) label[for*="enabled0"],
.switcher:has(input[id*="enabled0"][value="1"]:checked) label[for*="enabled0"] {
  background: #198754 !important;
  color: #fff !important;
  border-color: #198754 !important;
}
.switcher:has(input[name="jform[params][enabled]"][value="0"]:checked) label[for*="enabled1"],
.switcher:has(input[id*="enabled1"][value="0"]:checked) label[for*="enabled1"] {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}
.dus-info .dus-info-item {
  display: flex !important;
  align-items: center !important;
  gap: .35rem !important;
}

/* =========================================================
   Joomla Category List — warm orange palette
   ========================================================= */
.com-content-category .category,
.com-content-category .com-content-category__table,
.com-content-category table,
.category-list table {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #f0c69d !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fffdf9 !important;
  color: #493322 !important;
  box-shadow: 0 3px 12px rgba(146, 79, 24, .08) !important;
}
.com-content-category table thead th,
.category-list table thead th,
.com-content-category table th,
.category-list table th {
  background: linear-gradient(135deg, #fff0df 0%, #ffe0bf 100%) !important;
  color: #873f12 !important;
  border-color: #edc39d !important;
  font-weight: 700 !important;
  padding: .8rem .9rem !important;
  vertical-align: middle !important;
}
.com-content-category table tbody td,
.category-list table tbody td {
  background: #fffdf9 !important;
  color: #493322 !important;
  border-color: #f1dfce !important;
  padding: .75rem .9rem !important;
  vertical-align: middle !important;
  transition: background-color .15s ease-in-out !important;
}
.com-content-category table tbody tr:nth-child(even) td,
.category-list table tbody tr:nth-child(even) td {
  background: #fff5e9 !important;
}
.com-content-category table tbody tr:hover td,
.category-list table tbody tr:hover td {
  background: #ffe8d1 !important;
}
.com-content-category table tbody td a,
.category-list table tbody td a {
  color: #8b4513 !important;
  text-decoration-color: rgba(139, 69, 19, .35) !important;
}
.com-content-category table tbody td a:hover,
.category-list table tbody td a:hover {
  color: #b45309 !important;
  text-decoration: underline !important;
}
.com-content-category .pagination,
.category-list .pagination {
  --pagination-color: #8b4513;
}
.com-content-category .pagination a,
.category-list .pagination a {
  color: #8b4513 !important;
  border-color: #edc39d !important;
}
.com-content-category .pagination .active > span,
.category-list .pagination .active > span {
  background: #a95519 !important;
  border-color: #a95519 !important;
  color: #fff !important;
}
@media (max-width: 700px) {
  .com-content-category table,
  .category-list table {
    font-size: .92rem !important;
  }
  .com-content-category table th,
  .com-content-category table td,
  .category-list table th,
  .category-list table td {
    padding: .45rem .5rem !important;
    overflow-wrap: anywhere !important;
  }
}

/* =========================================================
   WhatsApp contact button — desktop and mobile
   ========================================================= */
.dus-whatsapp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem !important;
  box-sizing: border-box !important;
  margin-inline-start: .45rem !important;
  padding: .45rem .85rem !important;
  border: 1px solid #128c7e !important;
  border-radius: .45rem !important;
  background: #128c7e !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  box-shadow: 0 1px 3px #0002 !important;
}
.dus-whatsapp-button:hover,
.dus-whatsapp-button:focus {
  background: #075e54 !important;
  border-color: #075e54 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.dus-whatsapp-button svg {
  width: 1.15em !important;
  height: 1.15em !important;
  flex: 0 0 auto !important;
  fill: currentColor !important;
}
@media (max-width: 600px) {
  .dus-wa-responsive-holder {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .35rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .dus-wa-responsive-holder .dus-whatsapp-button {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: .78rem !important;
    line-height: 1.25 !important;
    padding: .4rem .55rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .dus-whatsapp-button svg {
    width: 1em !important;
    height: 1em !important;
  }
}

/* =========================================================
   Author's own blog shortcut
   ========================================================= */
.dus-my-blog-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .35rem !important;
  margin-inline: .45rem !important;
  padding: .45rem .9rem !important;
  border: 1px solid #176b48 !important;
  border-radius: .45rem !important;
  background: #198754 !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px #0002 !important;
}
.dus-my-blog-button:hover,
.dus-my-blog-button:focus {
  background: #146c43 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.dus-my-blog-holder {
  display: flex !important;
  align-items: center !important;
  gap: .4rem !important;
  flex-wrap: wrap !important;
}

/* =========================================================
   Article information and author portrait
   ========================================================= */
dl.dus-info {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  margin: 1rem 0 !important;
  padding: 12px !important;
  align-items: flex-start !important;
  direction: rtl !important;
  background: #f8fbff !important;
  border: 1px solid #d5e4f3 !important;
  border-radius: 12px !important;
}
dl.dus-info .dus-author-portrait {
  display: block !important;
  width: 100% !important;
  text-align: right !important;
  margin: 0 0 4px !important;
}
dl.dus-info .dus-info-item {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #d5e4f3 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  font-size: .95rem !important;
  line-height: 1.5 !important;
  max-width: 100% !important;
}
dl.dus-info .dus-label {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  color: #234b70 !important;
  white-space: nowrap !important;
}
dl.dus-info .dus-value {
  display: inline !important;
  color: #263746 !important;
  overflow-wrap: anywhere;
}
dl.dus-info .dus-author-image {
  display: block !important;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px #0002;
}
@media (max-width: 600px) {
  dl.dus-info {
    gap: 6px !important;
    padding: 8px !important;
  }
  dl.dus-info .dus-info-item {
    font-size: .88rem !important;
    padding: 6px 8px !important;
  }
}
