/* ============================================================
   آتی دُر — atd-guides.css   (ساخته‌شده از atd-core.css و atd-page.css زنده، 2026-12-02)
   محتوا: بخش‌های راهنما/مدل‌ها/انواع درب (Layout ها)
   بارگذاری: صفحه‌هایی با atd-guides / atd-models / atd-door-types و صفحات ووکامرس — توسط اسنیپت لودر atd-assets
   قانون: :root فقط در atd-base.css. کلاس جدید را در فایل همان بخش اضافه کنید.
   ============================================================ */

/* =========================================
   ATD - Automatic Door Types
   ========================================= */

.atd-door-types {
  position: relative;
  margin: 50px 0;
  padding: 34px 30px;
  background: #f7f9fc;
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  overflow: hidden;
}

/* subtle decorative element */

.atd-door-types::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -180px;
  right: -100px;
  border-radius: 50%;
  background: #edf3fa;
  pointer-events: none;
}

/* Heading */

.atd-door-types-head {
  position: relative;
  z-index: 2;
  margin-bottom: 27px;
}

.atd-door-types-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #114f99;
}

.atd-door-types-head h2 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.atd-door-types-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #737b86;
}

/* Grid */

.atd-door-types-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

/* Card */

.atd-door-type-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 15px;

  min-height: 82px;
  padding: 17px 19px;

  background: #fff;
  border: 1px solid #e2e7ed;
  border-radius: 11px;

  text-decoration: none !important;
  color: #222;

  overflow: hidden;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.atd-door-type-card:hover {
  transform: translateY(-3px);
  border-color: #c9d8e8;
  box-shadow: 0 9px 22px rgba(25, 55, 90, .09);
  color: #114f99;
}

/* Number */

.atd-door-type-number {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #eef4fb;
  color: #114f99;

  font-size: 11px;
  font-weight: 700;

  transition:
    background-color .25s ease,
    color .25s ease;
}

.atd-door-type-card:hover .atd-door-type-number {
  background: #114f99;
  color: #fff;
}

/* Title */

.atd-door-type-title {
  flex: 1;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;

  color: #252a31;

  transition: color .25s ease;
}

.atd-door-type-card:hover .atd-door-type-title {
  color: #114f99;
}

/* Bottom line */

.atd-door-type-line {
  position: absolute;

  right: 0;
  bottom: 0;

  width: 0;
  height: 3px;

  background: #114f99;

  transition: width .3s ease;
}

.atd-door-type-card:hover .atd-door-type-line {
  width: 55px;
}

/* =========================================
   Tablet
   ========================================= */

@media (max-width: 850px) {
  .atd-door-types-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 550px) {
  .atd-door-types {
      margin: 35px 0;
      padding: 26px 16px;
      border-radius: 15px;
    }
  .atd-door-types-head {
      margin-bottom: 21px;
    }
  .atd-door-types-head h2 {
      font-size: 20px;
    }
  .atd-door-types-head p {
      font-size: 12px;
    }
  .atd-door-types-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  .atd-door-type-card {
      min-height: 70px;
      padding: 14px 15px;
    }
}

/* =========================================
   ATD - Modern Guides
   ========================================= */

.atd-guides-modern {
  margin: 45px 0;
  padding: 34px 30px;
  background: #fff;
  border-top: 1px solid #e7ebf1;
  border-bottom: 1px solid #e7ebf1;
}

/* Header */

.atd-guides-modern-head {
  margin-bottom: 28px;
}

.atd-guides-modern-label {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #114f99;
}

.atd-guides-modern-head h2 {
  margin: 0 0 7px;
  font-size: 23px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.atd-guides-modern-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #777;
}

/* Items */

.atd-guides-modern-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e7ebf1;
}

.atd-guide-modern-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 92px;
  padding: 22px 20px;
  color: #222;
  text-decoration: none !important;
  border-left: 1px solid #e7ebf1;
  transition: background-color .25s ease;
}

.atd-guide-modern-item:first-child {
  border-left: none;
}

.atd-guide-modern-item:hover {
  background: #f8fafc;
}

/* Number */

.atd-guide-modern-number {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #114f99;
  letter-spacing: .5px;
}

/* Content */

.atd-guide-modern-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.atd-guide-modern-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: #222;
  transition: color .25s ease;
}

.atd-guide-modern-item:hover .atd-guide-modern-title {
  color: #114f99;
}

.atd-guide-modern-type {
  font-size: 11px;
  line-height: 1.6;
  color: #999;
}

/* =========================================
   Tablet
   ========================================= */

@media (max-width: 900px) {
  .atd-guides-modern-list {
      grid-template-columns: repeat(2, 1fr);
    }
  .atd-guide-modern-item:nth-child(3) {
      border-left: none;
      border-top: 1px solid #e7ebf1;
    }
  .atd-guide-modern-item:nth-child(4) {
      border-top: 1px solid #e7ebf1;
    }
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 550px) {
  .atd-guides-modern {
      margin: 32px 0;
      padding: 26px 18px;
    }
  .atd-guides-modern-head {
      margin-bottom: 22px;
    }
  .atd-guides-modern-head h2 {
      font-size: 20px;
    }
  .atd-guides-modern-head p {
      font-size: 13px;
    }
  .atd-guides-modern-list {
      grid-template-columns: 1fr;
    }
  .atd-guide-modern-item,
  .atd-guide-modern-item:nth-child(3),
  .atd-guide-modern-item:nth-child(4) {
      min-height: 70px;
      padding: 17px 10px;
      border-left: none;
      border-top: 1px solid #e7ebf1;
    }
  .atd-guide-modern-item:first-child {
      border-top: none;
    }
}

/* ===== atd Guide Section ===== */

.atd-guides {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px 24px;
  background: linear-gradient(135deg, #eef1f6 0%, #dfe6ef 50%, #e9edf3 100%);
  border-radius: var(--atd-radius-box);
  direction: rtl;
}

.atd-guides__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--atd-text);
  margin: 0 0 18px;
  padding-right: 14px;
  border-right: 4px solid var(--atd-accent);
}

.atd-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: var(--atd-gap);
}

.atd-guides__item {
  display: flex;
}

.atd-guides__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  background: var(--atd-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--atd-glass-border);
  border-radius: var(--atd-radius-card);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--atd-text);
  box-shadow: 0 8px 20px rgba(28, 43, 58, .06);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.atd-guides__item a:hover {
  background: var(--atd-glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(28, 43, 58, .1);
}

.atd-guides__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--atd-radius-icon);
  background: var(--atd-accent-bg);
  color: var(--atd-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.atd-guides__text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atd-guides__arrow {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--atd-text-faint);
  transition: transform .18s ease, color .18s ease;
}

.atd-guides__item a:hover .atd-guides__arrow {
  color: var(--atd-accent-text);
  transform: translateX(-3px);
}

@media (max-width: 600px) {
  .atd-guides__list { grid-template-columns: 1fr; }
}

/* ===== atd Model Section ===== */

.atd-models {
  width: 95%;
  margin: 40px auto;
  padding: 0 16px;
  direction: rtl;
}

.atd-models__box {
  background: linear-gradient(135deg, #e6eaf1 0%, #eef1f6 50%, #dfe6ef 100%);
  border-radius: var(--atd-radius-box);
  padding: 32px 24px;
}

.atd-models__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--atd-text);
  margin: 0 0 6px;
  padding-right: 14px;
  border-right: 4px solid var(--atd-accent);
}

.atd-models__intro {
  font-size: 13.5px;
  color: var(--atd-text-muted);
  margin: 0 0 18px;
  padding-right: 18px;
}

.atd-models__grid {
 display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: stretch;
  gap: var(--atd-gap);
}

.atd-models__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  background: var(--atd-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--atd-glass-border);
  border-radius: var(--atd-radius-card);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--atd-text);
  box-shadow: 0 8px 20px rgba(28, 43, 58, .06);
  transition: background .15s ease, box-shadow .15s ease;
}

.atd-models__card:hover {
  background: var(--atd-glass-bg-hover);
  box-shadow: 0 10px 26px rgba(28, 43, 58, .1);
}

.atd-models__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--atd-radius-icon);
  background: var(--atd-accent-bg);
  color: var(--atd-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.atd-models__card:hover .atd-models__icon {
  background: var(--atd-accent);
  color: #fff;
}

.atd-models__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.atd-models__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atd-models__cta {
  font-size: 12px;
  color: var(--atd-accent-text);
}

@media (max-width: 700px) {
  .atd-models__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .atd-models__grid { grid-template-columns: 1fr !important; }
}

/* ===== atd Model Section — تکمیلی (به انتهای css/atd-page.css اضافه شود) ===== */

/* عنوان کارت در هاور نارنجی شود (مثل تصویر) */

.atd-models__name { color: var(--atd-text); transition: color .15s ease; }

.atd-models__card:hover .atd-models__name { color: var(--atd-accent); }

.atd-models__card:hover { color: var(--atd-text); }

/* جلوگیری از <p>/<br> احتمالی وردپرس داخل گرید */

.atd-models__grid > p,
.atd-models__grid > br { display: none; }

/* داخل ادیتور UX Builder هر کارت در یک wrapper قرار می‌گیرد؛ کارت کل خانه را پر کند */

.atd-models__grid > :not(.atd-models__card) { display: flex; min-width: 0; }

.atd-models__grid > :not(.atd-models__card) > .atd-models__card { flex: 1 1 auto; }

/* دسترس‌پذیری */

.atd-models__card:focus-visible {
  outline: 3px solid var(--atd-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .atd-models__card,
  .atd-models__name { transition: none; }
}
