/* ============================================
   MR CALL OF - css/clans.css
   استایل لیست کلن‌ها + صفحه جزئیات کلن
============================================ */

/* ---------- کارت لیست کلن‌ها ---------- */
.clan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbfbfc;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 12px;
}

.clan-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1f1f4, #f7f7f9);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

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

.clan-info { flex: 1; overflow: hidden; }

.clan-name {
  font-size: 14px;
  font-weight: 800;
  color: #15161a;
  margin-bottom: 4px;
}

.clan-short {
  font-size: 11.5px;
  color: #6c6d78;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-members {
  font-size: 10.5px;
  color: #ffb800;
  margin-top: 5px;
  font-weight: 700;
}

.clan-arrow {
  font-size: 16px;
  color: #6b6d78;
  flex-shrink: 0;
}

/* ---------- صفحه جزئیات کلن ---------- */
.clan-banner {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #f1f1f4, #f7f7f9);
  position: relative;
  overflow: hidden;
}
.clan-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clan-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #ffffff 0%, transparent 55%);
}

.clan-detail-header {
  padding: 0 18px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.clan-logo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 3px solid #ffffff;
  background: #eceef1;
  overflow: hidden;
  flex-shrink: 0;
}
.clan-logo img { width: 100%; height: 100%; object-fit: cover; }

.clan-detail-name {
  font-size: 17px;
  font-weight: 900;
  color: #15161a;
  margin-bottom: 4px;
}
.clan-detail-members {
  font-size: 12px;
  color: #ffb800;
  font-weight: 700;
}

.clan-detail-body { padding: 20px 18px 30px; }

.clan-section-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #4b4c55;
  margin-bottom: 8px;
}

.clan-desc-text {
  font-size: 13px;
  color: #6c6d78;
  line-height: 2;
  margin-bottom: 22px;
}

.clan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-clan-watch {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  background: #ffffff;
  border: 1.5px solid #ffb800;
  color: #ffb800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-clan-watch:active { transform: scale(0.97); }

.btn-clan-mission {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  background: linear-gradient(145deg, #ffb800, #ff7a00);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-clan-mission:active { transform: scale(0.97); }

/* ---------- باکس ماموریت (باز می‌شود بعد از کلیک) ---------- */
.mission-box {
  display: none;
  margin-top: 16px;
  background: #fbfbfc;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 16px;
}
.mission-box.show { display: block; }

.mission-text {
  font-size: 12.5px;
  color: #6c6d78;
  line-height: 1.9;
  margin-bottom: 14px;
}

.mission-upload {
  border: 1.5px dashed #e2e3e8;
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  position: relative;
}

.mission-upload input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.mission-upload .mu-icon { font-size: 26px; margin-bottom: 8px; }
.mission-upload .mu-text { font-size: 12px; color: #71727c; }
.mission-upload .mu-filename {
  font-size: 12px;
  color: #ffb800;
  margin-top: 8px;
  font-weight: 700;
  word-break: break-all;
}

.btn-mission-submit {
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  background: linear-gradient(145deg, #ffb800, #ff7a00);
  color: #ffffff;
}
.btn-mission-submit:disabled {
  opacity: 0.45;
}

.mission-status {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: rgba(255,184,0,.1);
  border: 1px solid rgba(255,184,0,.3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #ffb800;
}
.mission-status.show { display: flex; }
