/* مجله ایران دراپ — SEO + UI */
.ids-mag {
  padding: 0 0 24px;
  direction: rtl;
  color: #111;
}
.ids-mag * { box-sizing: border-box; }

.ids-mag-hero {
  padding: 18px 16px 8px;
  background: linear-gradient(165deg, #fff 0%, #fff5f7 55%, #ffe8ee 100%);
  border-bottom: 1px solid #f0e4e8;
}
.ids-mag-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.ids-mag-hero p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.ids-mag-bc {
  padding: 10px 16px 0;
  font-size: 11px;
  color: #888;
}
.ids-mag-bc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}
.ids-mag-bc li {
  display: inline-flex;
  align-items: center;
}
.ids-mag-bc li:not(:last-child)::after {
  content: "/";
  margin: 0 6px;
  color: #ccc;
}
.ids-mag-bc a {
  color: #888;
  text-decoration: none;
}
.ids-mag-bc a:hover { color: var(--ids-brand, #ff4d6d); }
.ids-mag-bc li:last-child span { color: #333; font-weight: 600; }

.ids-mag-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ids-mag-cats::-webkit-scrollbar { display: none; }
.ids-mag-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: .15s ease;
}
.ids-mag-chip.is-on,
.ids-mag-chip:hover {
  background: var(--ids-brand, #ff4d6d);
  color: #fff;
  border-color: var(--ids-brand, #ff4d6d);
}

.ids-mag-wrap { padding: 0 12px 8px; }

.ids-mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ids-mag-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ids-mag-card:active { transform: scale(.99); }
.ids-mag-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ids-mag-card-media {
  position: relative;
  background: #f3f3f3;
}
.ids-mag-card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.ids-mag-ph {
  width: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #ffe4ec, #f0f0f0);
}

.ids-mag-badge {
  display: none;
}
.ids-mag-card-body { padding: 12px 14px 14px; }
.ids-mag-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ids-mag-card.is-featured .ids-mag-card-title {
  font-size: 18px;
  -webkit-line-clamp: 3;
}
.ids-mag-card-ex {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #666;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ids-mag-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #999;
}
.ids-mag-card-meta .dot { opacity: .5; }
.ids-mag-badge-meta {
  margin-right: auto;
  background: #fff0f3;
  color: var(--ids-brand, #ff4d6d);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

.ids-mag-pag {
  padding: 18px 8px 8px;
  text-align: center;
}
.ids-mag-pag .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.ids-mag-pag .page-numbers li { display: inline; }
.ids-mag-pag a,
.ids-mag-pag span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.ids-mag-pag .current {
  background: var(--ids-brand, #ff4d6d);
  color: #fff;
}

/* —— تک‌نوشته —— */
.ids-mag-single { padding-bottom: 28px; }
.ids-mag-single-head {
  padding: 8px 16px 12px;
}
.ids-mag-single-head .ids-mag-badge-inline {
  display: inline-block;
  background: #fff0f3;
  color: var(--ids-brand, #ff4d6d);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 10px;
}
.ids-mag-single-head h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.ids-mag-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #777;
  align-items: center;
}
.ids-mag-meta-row .author {
  font-weight: 700;
  color: #333;
}
.ids-mag-cover {
  margin: 0 0 16px;
}
.ids-mag-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.ids-mag-content {
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: #222;
}
.ids-mag-content h2 {
  font-size: 18px;
  margin: 1.4em 0 .6em;
  font-weight: 800;
  line-height: 1.4;
}
.ids-mag-content h3 {
  font-size: 16px;
  margin: 1.2em 0 .5em;
  font-weight: 700;
}
.ids-mag-content p { margin: 0 0 1em; }
.ids-mag-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}
.ids-mag-content a { color: var(--ids-brand, #ff4d6d); }
.ids-mag-content ul,
.ids-mag-content ol {
  padding-right: 1.2em;
  margin: 0 0 1em;
}
.ids-mag-content blockquote {
  margin: 1em 0;
  padding: 12px 14px;
  border-right: 3px solid var(--ids-brand, #ff4d6d);
  background: #fff7f9;
  border-radius: 0 12px 12px 0;
  color: #444;
}
.ids-mag-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1em 0;
}
.ids-mag-content th,
.ids-mag-content td {
  border: 1px solid #eee;
  padding: 8px;
  text-align: right;
}

.ids-mag-tags {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ids-mag-tags a {
  font-size: 12px;
  padding: 6px 12px;
  background: #f4f4f5;
  border-radius: 999px;
  color: #444;
  text-decoration: none;
}
.ids-mag-tags a:hover {
  background: var(--ids-brand, #ff4d6d);
  color: #fff;
}

.ids-mag-share {
  padding: 0 16px 8px;
  display: flex;
  gap: 8px;
}
.ids-mag-share a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.ids-mag-share .tg { background: #229ED9; }
.ids-mag-share .wa { background: #25D366; }
.ids-mag-share .cp { background: #111; }

.ids-mag-related {
  padding: 8px 12px 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.ids-mag-sec-title {
  font-size: 16px;
  font-weight: 800;
  margin: 12px 4px 12px;
}

.ids-mag-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.ids-mag-search {
  padding: 0 16px 12px;
}
.ids-mag-search form {
  display: flex;
  gap: 8px;
}
.ids-mag-search input {
  flex: 1;
  height: 40px;
  border: 1px solid #e8e8e8;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}
.ids-mag-search button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--ids-brand, #ff4d6d);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}


/* —— نظرات —— */
.ids-mag-comments {
  padding: 16px 16px 28px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.ids-mag-comment-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.ids-mag-comment-list .children {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0 14px 0 0;
  border-right: 2px solid #f0f0f0;
}
.ids-mag-comment {
  margin: 0 0 14px;
}
.ids-mag-comment-body {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
}
.ids-mag-comment-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.ids-mag-comment-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.ids-mag-comment-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ids-mag-comment-author {
  font-size: 13px;
  color: #111;
}
.ids-mag-comment-author a {
  color: inherit;
  text-decoration: none;
}
.ids-mag-comment-who time {
  font-size: 11px;
  color: #999;
}
.ids-mag-comment-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: #333;
}
.ids-mag-comment-text p { margin: 0 0 8px; }
.ids-mag-comment-await {
  color: #b45309;
  font-size: 12px;
}
.ids-mag-comment-reply {
  margin-top: 6px;
}
.ids-mag-comment-reply a {
  font-size: 12px;
  font-weight: 700;
  color: var(--ids-brand, #ff4d6d);
  text-decoration: none;
}
.ids-mag-comments-closed {
  color: #888;
  font-size: 13px;
  text-align: center;
}

.ids-mag-comment-form {
  margin-top: 8px;
}
.ids-mag-comment-form .comment-reply-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
}
.ids-mag-comment-note {
  font-size: 12px;
  color: #888;
  margin: 0 0 12px;
}
.ids-mag-cf {
  margin: 0 0 12px;
}
.ids-mag-cf label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #444;
}
.ids-mag-cf .req { color: var(--ids-brand, #ff4d6d); }
.ids-mag-cf input,
.ids-mag-cf textarea {
  width: 100%;
  border: 1px solid #e8e8e8;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.ids-mag-cf input:focus,
.ids-mag-cf textarea:focus {
  border-color: var(--ids-brand, #ff4d6d);
  background: #fff;
}
.ids-mag-cf textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}
.ids-mag-comment-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ids-brand, #ff4d6d);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.ids-mag-comment-submit:hover { opacity: .92; }
.ids-mag-hp { display: none !important; }
