/* ============================================
   TAXONOMY COMMENTS PRO v3.0.0 — Frontend Styles
   Google Reviews tasarimli yorum sistemi
   ============================================ */

:root {
  --tc-primary: #1a73e8;
  --tc-primary-hover: #1557b0;
  --tc-primary-light: #e8f0fe;
  --tc-success: #0d904f;
  --tc-error: #d93025;
  --tc-warning: #f9ab00;
  --tc-text: #202124;
  --tc-text-secondary: #5f6368;
  --tc-border: #dadce0;
  --tc-bg: #ffffff;
  --tc-bg-hover: #f8f9fa;
  --tc-bg-form: #f8f9fa;
  --tc-radius: 12px;
  --tc-radius-sm: 8px;
  --tc-shadow: 0 1px 3px rgba(60,64,67,.15), 0 1px 2px rgba(60,64,67,.1);
  --tc-shadow-hover: 0 2px 8px rgba(60,64,67,.2), 0 1px 3px rgba(60,64,67,.15);
  --tc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── WRAPPER ── */
.taxcomm-wrapper {
  font-family: var(--tc-font);
  color: var(--tc-text);
  max-width: 800px;
  margin: 32px auto;
  padding: 0 16px;
  line-height: 1.6;
}

/* ── HEADINGS ── */
.taxcomm-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--tc-text);
  margin: 0 0 20px 0;
  padding: 0;
}
.taxcomm-heading svg {
  color: var(--tc-primary);
  flex-shrink: 0;
}
.taxcomm-count {
  color: var(--tc-text-secondary);
  font-weight: 400;
  font-size: 15px;
}

/* ── COMMENTS SECTION ── */
.taxcomm-comments-section {
  margin-bottom: 28px;
}

.taxcomm-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.taxcomm-comments-header .taxcomm-heading {
  margin-bottom: 0;
}

/* ── FILTER / SORT ── */
.taxcomm-filter-wrap {
  display: flex;
  align-items: center;
}
.taxcomm-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tc-text-secondary);
  cursor: pointer;
}
.taxcomm-filter-label svg {
  color: var(--tc-text-secondary);
}
.taxcomm-sort-select {
  font-family: var(--tc-font);
  font-size: 13px;
  color: var(--tc-text);
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .2s, box-shadow .2s;
}
.taxcomm-sort-select:hover {
  border-color: var(--tc-primary);
}
.taxcomm-sort-select:focus {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 2px var(--tc-primary-light);
}

/* ── COMMENT LIST ── */
.taxcomm-list {
  transition: opacity .2s ease;
}
.taxcomm-empty {
  text-align: center;
  color: var(--tc-text-secondary);
  padding: 32px 16px;
  font-size: 14px;
  background: var(--tc-bg-hover);
  border-radius: var(--tc-radius);
  border: 1px dashed var(--tc-border);
}

/* ── SINGLE COMMENT ── */
.taxcomm-comment {
  margin-bottom: 16px;
  transition: transform .15s;
}
.taxcomm-comment-inner {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  transition: box-shadow .2s, border-color .2s;
}
.taxcomm-comment-inner:hover {
  box-shadow: var(--tc-shadow);
  border-color: #c4c7cc;
}
.taxcomm-reply-comment .taxcomm-comment-inner {
  background: var(--tc-bg-hover);
  border-color: #e8eaed;
}

/* ── AVATAR ── */
.taxcomm-avatar-wrap {
  flex-shrink: 0;
}
.taxcomm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eaed;
}

/* ── COMMENT BODY ── */
.taxcomm-comment-body {
  flex: 1;
  min-width: 0;
}
.taxcomm-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.taxcomm-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--tc-text);
}
.taxcomm-time {
  font-size: 12px;
  color: var(--tc-text-secondary);
}
.taxcomm-comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tc-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── ACTIONS ── */
.taxcomm-comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.taxcomm-like-btn,
.taxcomm-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid transparent;
  color: var(--tc-text-secondary);
  font-family: var(--tc-font);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 16px;
  transition: all .2s;
}
.taxcomm-like-btn:hover,
.taxcomm-reply-btn:hover {
  background: var(--tc-primary-light);
  color: var(--tc-primary);
  border-color: var(--tc-primary-light);
}
.taxcomm-like-btn.liked {
  color: var(--tc-primary);
  background: var(--tc-primary-light);
  border-color: var(--tc-primary-light);
}
.taxcomm-like-btn svg,
.taxcomm-reply-btn svg {
  flex-shrink: 0;
}

/* ── CHILDREN ── */
.taxcomm-children {
  margin-left: 28px;
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--tc-border);
}

/* ── LOAD MORE ── */
.taxcomm-load-more-wrap {
  text-align: center;
  margin: 20px 0;
}

/* ── FORM BOX ── */
.taxcomm-form-box {
  background: var(--tc-bg-form);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  padding: 24px;
}
.taxcomm-form-box .taxcomm-heading {
  margin-bottom: 20px;
}

/* ── AVATAR ROW IN FORM ── */
.taxcomm-form-avatar-row {
  margin-bottom: 16px;
}
.taxcomm-form-avatar-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}
.taxcomm-form-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--tc-border);
  background: #e8eaed;
  object-fit: cover;
}
.taxcomm-change-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  color: var(--tc-primary);
  font-family: var(--tc-font);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 16px;
  transition: all .2s;
}
.taxcomm-change-avatar-btn:hover {
  background: var(--tc-primary-light);
  border-color: var(--tc-primary);
}

/* ── AVATAR PICKER ── */
.taxcomm-avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
}
.taxcomm-avatar-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  object-fit: cover;
  background: #e8eaed;
}
.taxcomm-avatar-option:hover {
  border-color: var(--tc-primary);
  transform: scale(1.1);
}
.taxcomm-avatar-option.selected {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 3px var(--tc-primary-light);
}

/* ── FORM FIELDS ── */
.taxcomm-field {
  margin-bottom: 16px;
}
.taxcomm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tc-text);
  margin-bottom: 6px;
}
.taxcomm-field label .required {
  color: var(--tc-error);
}
.taxcomm-field input[type="text"],
.taxcomm-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--tc-font);
  font-size: 14px;
  color: var(--tc-text);
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  outline: none;
}
.taxcomm-field input[type="text"]:focus,
.taxcomm-field textarea:focus {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 3px var(--tc-primary-light);
}
.taxcomm-field textarea {
  resize: vertical;
  min-height: 80px;
}

.taxcomm-char-counter {
  display: block;
  font-size: 12px;
  color: var(--tc-text-secondary);
  text-align: right;
  margin-top: 4px;
}
.taxcomm-char-counter.over {
  color: var(--tc-error);
  font-weight: 600;
}

/* ── REPLY NOTICE ── */
.taxcomm-reply-notice {
  background: var(--tc-primary-light);
  color: var(--tc-primary);
  padding: 8px 14px;
  border-radius: var(--tc-radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ── FORM FOOTER ── */
.taxcomm-form-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* ── BUTTONS ── */
.taxcomm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tc-font);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--tc-radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: all .2s;
  line-height: 1.4;
}
.taxcomm-btn-primary {
  background: var(--tc-primary);
  color: #fff;
}
.taxcomm-btn-primary:hover {
  background: var(--tc-primary-hover);
  box-shadow: var(--tc-shadow);
}
.taxcomm-btn-primary:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.taxcomm-btn-ghost {
  background: transparent;
  color: var(--tc-text-secondary);
  border: 1px solid var(--tc-border);
}
.taxcomm-btn-ghost:hover {
  background: var(--tc-bg-hover);
  color: var(--tc-text);
}
.taxcomm-btn-load-more {
  background: var(--tc-bg);
  color: var(--tc-primary);
  border: 1px solid var(--tc-border);
  padding: 10px 24px;
}
.taxcomm-btn-load-more:hover {
  background: var(--tc-primary-light);
  border-color: var(--tc-primary);
}

/* ── FORM MESSAGE ── */
.taxcomm-form-message {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--tc-radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.taxcomm-form-message.success {
  background: #e6f4ea;
  color: var(--tc-success);
  border: 1px solid #ceead6;
}
.taxcomm-form-message.error {
  background: #fce8e6;
  color: var(--tc-error);
  border: 1px solid #f5c6cb;
}

/* ── SPINNER ── */
.taxcomm-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: taxcommSpin .6s linear infinite;
}
@keyframes taxcommSpin {
  to { transform: rotate(360deg); }
}

/* ── HONEYPOT ── */
.taxcomm-hp {
  display: none !important;
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ── VISITOR COUNTER ── */
.taxcomm-visitor-counter {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 0 16px;
  font-family: var(--tc-font);
}
.taxcomm-vc-card {
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .3s ease;
}
.taxcomm-vc-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
}
.taxcomm-vc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.taxcomm-vc-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  flex-shrink: 0;
  color: #fff;
}
.taxcomm-vc-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}
.taxcomm-vc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.taxcomm-vc-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  transition: background .2s;
}
.taxcomm-vc-stat:not(:last-child) {
  border-bottom: 1px solid #f0f0f5;
}
.taxcomm-vc-stat:hover {
  background: #fafafe;
}
.taxcomm-vc-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}
.taxcomm-vc-stat-today .taxcomm-vc-stat-icon {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0284c7;
}
.taxcomm-vc-stat-total .taxcomm-vc-stat-icon {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #db2777;
}
.taxcomm-vc-stat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.taxcomm-vc-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  line-height: 1.3;
}
.taxcomm-vc-stat-suffix {
  font-size: 12px;
  color: var(--tc-text-secondary);
  line-height: 1.3;
  margin-top: 1px;
}
.taxcomm-vc-stat-number {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.taxcomm-vc-today {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.taxcomm-vc-total {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .taxcomm-wrapper {
    padding: 0 8px;
    margin: 16px auto;
  }
  .taxcomm-comment-inner {
    padding: 12px;
    gap: 10px;
  }
  .taxcomm-avatar {
    width: 32px;
    height: 32px;
  }
  .taxcomm-children {
    margin-left: 12px;
    padding-left: 10px;
  }
  .taxcomm-form-box {
    padding: 16px;
  }
  .taxcomm-comments-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .taxcomm-form-avatar-img {
    width: 40px;
    height: 40px;
  }
  .taxcomm-avatar-option {
    width: 38px;
    height: 38px;
  }
  .taxcomm-visitor-counter {
    margin: 16px auto 0;
    padding: 0 8px;
  }
  .taxcomm-vc-card-header {
    padding: 14px 16px;
  }
  .taxcomm-vc-stat {
    padding: 12px 16px;
    gap: 10px;
  }
  .taxcomm-vc-stat-number {
    font-size: 22px;
  }
  .taxcomm-vc-stat-icon {
    width: 32px;
    height: 32px;
  }
}
