/* Engagement System Styles — Warm Zen Theme */

.engagement-section {
  margin: 4rem 0;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.engagement-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(171, 71, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.like-section {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

#like-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-main);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#like-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

#like-button.liked {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

#like-count {
  font-weight: 700;
  color: var(--text-main);
}

.engagement-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-main);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.share-btn i {
  color: var(--green);
  transition: transform 0.3s ease;
}

.share-btn:hover i {
  transform: rotate(15deg) scale(1.15);
}

/* ===== SHARE MODAL GRID ===== */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid transparent;
}

.share-option span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.share-option:hover {
  background: var(--bg-hover);
  transform: translateY(-3px);
  border-color: var(--border);
}

.share-option:hover span {
  color: var(--text-main);
}

.share-option:hover .share-icon-wrapper {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Platform Colors */
.facebook .share-icon-wrapper  { background: var(--accent); }
.x-twitter .share-icon-wrapper { background: var(--bg-hover); border: 1px solid var(--border); }
.whatsapp .share-icon-wrapper  { background: var(--green); }
.telegram .share-icon-wrapper  { background: var(--accent-hover); }
.reddit .share-icon-wrapper    { background: var(--amber); }
.linkedin .share-icon-wrapper  { background: #7c5ebf; }

/* Copy Section */
.share-copy-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.share-copy-section label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-panel);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.copy-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#share-url-input {
  flex: 1;
  background: none;
  border: none;
  margin-top: 0;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}

.btn-copy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
  position: relative;
  z-index: 1;
}

.comments-section h3 {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comments-section h3::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--border);
}

.comment-form {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.comment-form:focus-within {
  border-color: var(--accent-border);
}

.comment-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  font-size: 1rem;
}

#comment-text {
  width: 100%;
  min-height: 140px;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  line-height: 1.7;
  transition: all 0.3s;
}

#comment-text:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.char-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

#submit-comment {
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#submit-comment:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--accent-hover);
}

/* ===== COMMENTS LIST ===== */
#comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.comment:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg-card);
}

.comment-body {
  flex-grow: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-author {
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.anon-badge {
  font-size: 0.7rem;
  background: var(--bg-hover);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-content {
  color: var(--text-main);
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.98rem;
}

.no-comments {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 2rem;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.no-comments p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== MODAL (engagement overrides) ===== */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-heading);
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-modal {
  flex: 1;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.notification-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .engagement-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .comment {
    padding: 1.25rem;
    gap: 1rem;
    flex-direction: column;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .share-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
