/* =============================================
   WPKoda - Custom Comments Style
   Targets both ishak-* classes (from comments.php)
   and Elementor classes (fallback)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ===================== SECTION TITLE ===================== */
.ishak-section-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.ishak-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  min-width: 4px;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  border-radius: 3px;
}

/* ===================== COMMENT LIST ===================== */
.ishak-comment-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ishak-comment-list ol,
.ishak-comment-list .children {
  list-style: none !important;
  margin: 0 44px 8px 0 !important;
  padding: 6px 16px 2px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border-right: 3px solid #bfdbfe !important;
}

/* ===================== SINGLE COMMENT ===================== */
.ishak-comment-inner {
  display: flex !important;
  gap: 13px !important;
  padding: 16px 0 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.ishak-comment:last-child > .ishak-comment-inner {
  border-bottom: none !important;
}

.ishak-reply .ishak-comment-inner {
  padding: 10px 0 8px !important;
}

/* ===================== AVATAR ===================== */
.ishak-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.ishak-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ishak-avatar-placeholder {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.ishak-reply .ishak-avatar,
.ishak-reply .ishak-avatar-placeholder {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  font-size: 14px !important;
}

/* ===================== COMMENT BODY ===================== */
.ishak-comment-body {
  flex: 1 !important;
  min-width: 0 !important;
}

.ishak-comment-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 5px !important;
  flex-wrap: wrap !important;
}

.ishak-username {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.ishak-timestamp {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin-right: auto !important;
}

.ishak-moderation-notice {
  font-size: 12px !important;
  color: #d97706 !important;
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  margin-bottom: 6px !important;
}

.ishak-comment-text {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 13.5px !important;
  color: #374151 !important;
  line-height: 1.7 !important;
  margin-bottom: 8px !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}

.ishak-comment-text p {
  margin: 0 0 5px !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

.ishak-comment-text p:last-child {
  margin-bottom: 0 !important;
}

/* ===================== ACTIONS ===================== */
.ishak-comment-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.ishak-reply-link a,
.ishak-edit-link a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  text-decoration: none !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  transition: all 0.18s !important;
  line-height: 1 !important;
}

.ishak-reply-link a:hover {
  background: #eff6ff !important;
  color: #3b82f6 !important;
  border-color: #bfdbfe !important;
}

.ishak-edit-link a:hover {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border-color: #bbf7d0 !important;
}

.ishak-reply-link svg,
.ishak-edit-link svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}

/* ===================== COMMENT FORM ===================== */
.ishak-form-wrap {
  margin-top: 36px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(59,130,246,0.10), 0 1px 4px rgba(0,0,0,0.06) !important;
  border: 1px solid #e2e8f0 !important;
}

.ishak-form-header {
  background: linear-gradient(90deg, #1d4ed8, #2563eb) !important;
  padding: 16px 22px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ishak-form-header svg {
  width: 18px !important;
  height: 18px !important;
  color: #93c5fd !important;
  flex-shrink: 0 !important;
}

.ishak-form-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
}

.ishak-form-title a {
  color: #fff !important;
  text-decoration: none !important;
}

#cancel-comment-reply-link {
  color: #93c5fd !important;
  font-size: 12px !important;
  margin-right: 10px !important;
  text-decoration: underline !important;
}

.ishak-form-body {
  padding: 22px 22px 24px !important;
  background: #fff !important;
}

.ishak-comment-form .comment-notes,
.ishak-comment-form p.comment-notes {
  display: none !important;
}

.ishak-comment-form .logged-in-as {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  background: #f8fafc !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  margin-bottom: 14px !important;
}

/* ---- Field rows ---- */
.ishak-fields-row {
  display: flex !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.ishak-fields-row .ishak-field-group {
  flex: 1 !important;
}

.ishak-field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin-bottom: 12px !important;
}

.ishak-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.ishak-label .required {
  color: #ef4444 !important;
  font-size: 14px !important;
}

.ishak-input {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 13px !important;
  font-size: 13px !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  outline: none !important;
  direction: rtl !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ishak-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.13) !important;
  background: #fff !important;
}

.ishak-input::placeholder {
  color: #cbd5e1 !important;
  font-size: 12px !important;
}

.ishak-textarea {
  resize: vertical !important;
  min-height: 100px !important;
  line-height: 1.65 !important;
}

/* ---- Cookie / save-info row ---- */
.ishak-cookie-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

.ishak-cookie-row input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  accent-color: #2563eb !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  cursor: pointer !important;
}

.ishak-cookie-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 11.5px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
}

/* ---- Submit button ---- */
.ishak-submit-btn {
  width: 100% !important;
  background: linear-gradient(90deg, #1d4ed8, #2563eb) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25) !important;
  letter-spacing: 0.3px !important;
}

.ishak-submit-btn:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.32) !important;
}

.ishak-submit-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

/* ---- Cancel reply ---- */
.ishak-cancel-reply {
  margin-top: 8px !important;
}

.ishak-cancel-reply a {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 12px !important;
  color: #64748b !important;
  text-decoration: underline !important;
}

/* ---- Comment navigation ---- */
.comment-navigation {
  margin: 20px 0 !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .ishak-fields-row {
    flex-direction: column !important;
  }
  .ishak-comment-inner {
    gap: 9px !important;
  }
  .ishak-avatar,
  .ishak-avatar-placeholder {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .ishak-comment-list .children {
    margin-right: 24px !important;
  }
}

/* ===================== LIKE / DISLIKE BUTTONS ===================== */
.cvotes-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 4px !important;
}

.cvotes-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  line-height: 1 !important;
}

.cvotes-btn svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}

.cvotes-btn:hover {
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
  background: #eff6ff !important;
}

.cvotes-btn.cvotes-like.active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}

.cvotes-btn.cvotes-dislike.active {
  background: #fff1f2 !important;
  border-color: #f87171 !important;
  color: #dc2626 !important;
}

.cvotes-wrap.cvotes-loading .cvotes-btn {
  opacity: 0.55 !important;
  pointer-events: none !important;
}

.cvotes-count {
  font-weight: 600 !important;
  min-width: 10px !important;
  text-align: center !important;
  font-size: 11px !important;
}

/* ===================== ELEMENTOR FALLBACK CSS ===================== */
/* (in case Elementor skin is used instead of comments.php) */
.elementor-widget-post-comments .comments-area {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  direction: rtl;
}

.elementor-widget-post-comments .title-comments {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.elementor-widget-post-comments .title-comments::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ===================== EMAIL NOTICE ===================== */
.ishak-email-notice {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-bottom: 12px !important;
  text-align: right !important;
}
/* ==========================================
   Comment Box Trigger (Collapsed Form) — YouTube Style
   ========================================== */
.ishak-cbox-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}
.ishak-cbox-trigger:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.ishak-cbox-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ishak-cbox-avatar svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}
.ishak-cbox-placeholder {
    flex: 1;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}
.ishak-cbox-icon {
    width: 22px;
    height: 22px;
    stroke: #64748b;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* النموذج المخفي */
.ishak-cbox-form {
    display: none;
    margin-bottom: 24px;
    animation: ishakCboxSlide 0.3s ease;
}
.ishak-cbox-form.ishak-cbox-open {
    display: block;
}
@keyframes ishakCboxSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* زر إغلاق النموذج */
.ishak-form-header {
    position: relative;
}
.ishak-form-header .ishak-cbox-close,
button.ishak-cbox-close {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(.4,0,.2,1) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    outline: none !important;
}

.ishak-form-header .ishak-cbox-close:hover,
button.ishak-cbox-close:hover {
    background: rgba(239, 68, 68, 0.95) !important;
    border-color: rgba(239, 68, 68, 1) !important;
    transform: translateY(-50%) rotate(90deg) scale(1.08) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

.ishak-form-header .ishak-cbox-close svg,
button.ishak-cbox-close svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #fff !important;
    fill: none !important;
    stroke-width: 2.5 !important;
    transition: all 0.25s !important;
}

.ishak-form-header .ishak-cbox-close:active,
button.ishak-cbox-close:active {
    transform: translateY(-50%) rotate(90deg) scale(0.95) !important;
}