/* Voice Hub Unique Styling - Distinct from Speeches and Board Members */

/* Page Hero - Purple theme for Voice Hub */
.voice-page .page-hero,
.voice-hub-page .page-hero {
  background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 50%, #7b1fa2 100%);
}

.voice-page .btn-primary,
.voice-hub-page .btn-primary {
  background: linear-gradient(135deg, #9c27b0, #ab47bc);
  border-color: #9c27b0;
}

.voice-page .btn-primary:hover,
.voice-hub-page .btn-primary:hover {
  background: linear-gradient(135deg, #8e24aa, #9c27b0);
}

/* Voice Card - Unique design */
.voice-card {
  display: block;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.voice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.voice-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.voice-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.voice-card-icon {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-card-icon span {
  font-size: 3rem;
}

.voice-card-body {
  padding: 20px;
}

.voice-card-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.voice-card-title {
  margin: 8px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.voice-card-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.voice-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.voice-tag {
  background: #f0e6f5;
  color: #7b1fa2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.voice-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.voice-author-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.voice-author-name {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.voice-card-date {
  font-size: 0.8rem;
  color: #888;
}

/* Voice Grid Layout */
.speeches-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Remove underline from speech card links */
.speech-card {
  text-decoration: none;
  color: inherit;
}

.speech-card-title {
  text-decoration: none;
}

/* Voice Contributors - Unique from Board Members */
.voice-contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.voice-contributor-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.voice-contributor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.voice-contributor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #e1bee7;
}

.voice-contributor-name {
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.voice-contributor-role {
  font-size: 0.85rem;
  color: #9c27b0;
  margin: 0 0 8px;
}

.voice-contributor-posts {
  font-size: 0.8rem;
  color: #666;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

/* Voice Article Page */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-page h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.article-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta span {
  color: #666;
}

.article-author-link {
  color: #9c27b0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.article-author-link:hover {
  color: #7b1fa2;
  text-decoration: underline;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9c27b0;
}

.form-group input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #c3e6cb;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.error {
  color: #dc3545;
  padding: 20px;
  text-align: center;
}

/* Loading State */
#voice-feed:empty::after,
#voice-contributors-grid:empty::after {
  content: 'Loading...';
  display: block;
  text-align: center;
  padding: 40px;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .speeches-layout {
    grid-template-columns: 1fr;
  }

  .voice-card-title {
    font-size: 1.1rem;
  }

  .voice-card-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .voice-card-date {
    margin-left: 0;
  }

  .article-page h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {

  .voice-card-cover,
  .voice-card-icon {
    height: 140px;
  }

  .voice-card-body {
    padding: 16px;
  }

  .voice-contributors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}