/* Form Styles - Used for comments and interaction forms */

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

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5625rem;
  border: 0.75px solid var(--border-color);
  border-radius: 3.75px;
  font-family: inherit;
  font-size: 0.75rem;
}

.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Button styles are defined in global.css, remove duplicates here */


/* Alert Messages */
.alert {
  padding: 0.75rem;
  border-radius: 3.75px;
  margin-bottom: 0.75rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 0.75px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 0.75px solid #f5c6cb;
}

/* Voting Buttons */
.votes-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--border-color);
  background: var(--bg-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.675rem;
  transition: all 0.3s ease;
  color: var(--text-color);
  font-weight: 500;
}

.vote-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vote-btn.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-color) 100%);
  color: white;
}

.like-btn.active {
  border-color: #4caf50;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.dislike-btn.active {
  border-color: #f44336;
  background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.vote-icon {
  font-size: 1.125rem;
  color: var(--primary-color);
}

.vote-btn.active .vote-icon {
  color: white;
}

.vote-count {
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

/* Vote button size variants (DRY) */
.article-votes .vote-btn,
.post-votes .vote-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.7125rem;
  border-radius: 4.5px;
}


.share-label {
  font-size: 0.6375rem;
}

/* Share Buttons - Common styles (DRY) */
.share-buttons {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.225rem;
  padding: 0.525rem 0.9rem;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 4.5px;
  cursor: pointer;
  font-size: 0.7125rem;
  transition: all 0.3s;
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  min-width: auto;
}

.share-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.share-icon {
  font-size: 0.9rem;
  color: var(--border-color);
}

.share-btn:hover .share-icon {
  color: white;
}

.share-btn.copied {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.share-btn.copied .share-icon {
  color: white;
}

/* Responsive */
@media (max-width: 432.0px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    gap: 0.5625rem;
  }

  .share-btn {
    padding: 0.5625rem 0.75rem;
    min-width: 60px;
    font-size: 0.6rem;
  }

  .share-icon {
    font-size: 1.125rem;
  }

  .votes-container {
    gap: 0.75rem;
  }
}
