/* ============================================
   MR CALL OF - css/education.css
   استایل صفحه آموزش‌ها و سیو شده‌ها
============================================ */

.search-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #ffffff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e9eaee;
  border-radius: 14px;
  padding: 11px 14px;
}

.search-box .s-icon {
  font-size: 15px;
  color: #6b6d78;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #15161a;
  font-size: 13.5px;
  font-family: inherit;
  text-align: right;
}
.search-box input::placeholder { color: #6b6d78; }

.search-box .s-clear {
  font-size: 13px;
  color: #6b6d78;
  display: none;
}
.search-box .s-clear.show { display: block; }

/* ---------- تب‌های حالت بازی (بتل‌رویال / مولتی‌پلیر) - بالاترین ردیف ---------- */
.att-mode-tabs-wrap {
  padding: 14px 16px 4px;
  background: #ffffff;
}

.att-mode-tabs {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e9eaee;
  border-radius: 14px;
  padding: 5px;
}

.att-mode-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  color: #71727c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.att-mode-tab.active {
  background: linear-gradient(135deg, #ff2b2b, #b40000);
  color: #15161a;
  box-shadow: 0 4px 14px rgba(255, 30, 30, 0.3);
}

/* ---------- تب‌های دسته‌بندی اسلحه (بالای صفحه اتچمنت‌ها) ---------- */
.att-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #ffffff 85%, transparent);
  padding: 12px 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.att-tabs-wrap::-webkit-scrollbar { display: none; }

.att-tabs {
  display: inline-flex;
  gap: 10px;
  direction: rtl;
}

.att-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fbfbfc;
  border: 1px solid #e9eaee;
  color: #71727c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  transition: transform .15s ease;
}

.att-tab::before {
  content: attr(data-icon);
  font-size: 13px;
  filter: grayscale(1) brightness(1.6);
  opacity: .7;
}

.att-tab.active {
  background: linear-gradient(135deg, #ffb800, #ff7a00);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
  transform: translateY(-1px);
}

.att-tab.active::before {
  filter: none;
  opacity: 1;
}

/* ---------- لیست کارت‌ها ---------- */
.edu-list {
  padding: 14px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-card {
  background: #fbfbfc;
  border: 1px solid #eceef1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.edu-thumb {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #f1f1f4, #f7f7f9);
  position: relative;
  overflow: hidden;
}

.edu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.15);
}

.edu-save-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14,15,19,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #15161a;
  z-index: 3;
}
.edu-save-btn.saved { color: #ffb800; }

.edu-body {
  padding: 13px 14px 15px;
}

.edu-title {
  font-size: 14px;
  font-weight: 800;
  color: #15161a;
  margin-bottom: 6px;
  line-height: 1.6;
}

.edu-desc {
  font-size: 12px;
  color: #6c6d78;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edu-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b6d78;
  font-size: 13px;
}

/* ---------- کارت اتچمنت (عکس بالا + عنوان + توضیحات، بدون لینک) ---------- */
.att-card {
  background: #fbfbfc;
  border: 1px solid #eceef1;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 16px 16px;
}

.att-card-img {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #f1f1f4, #f7f7f9);
}
.att-card-img img { width: 100%; height: 100%; object-fit: cover; }

.att-card-body { padding: 14px 16px 16px; }

.att-card-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffb800;
  margin-bottom: 8px;
}

.att-card-desc {
  font-size: 13px;
  color: #5c5d66;
  line-height: 2;
}

/* ---------- سیو شده‌ها ---------- */
.saved-remove-btn {
  color: #ff6b6b;
}

/* ---------- افزوده‌ها: فوتر کارت اتچمنت (لینک به صفحه جزئیات) ---------- */
.att-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #eceef1;
}
.att-card-code-hint { font-size: 10.5px; color: #ffb800; font-weight: 700; }
.att-card-arrow { font-size: 11px; color: #75767f; font-weight: 700; }
