/* ===== PREMIUM COMMENT SECTION STYLES ===== */

/* Wrapper */
#comments-container .comment-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Main Container */
.premium-comment-section {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Header */
.premium-comment-section .section-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 32px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.premium-comment-section .section-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: premiumFloat 6s ease-in-out infinite;
}

@keyframes premiumFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.premium-comment-section .section-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.premium-comment-section .section-header p {
  opacity: 0.95;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

/* Content Area */
.premium-comment-section .section-content {
  padding: 40px;
}

/* User Setup */
.premium-comment-section .user-setup {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-comment-section .user-setup:hover {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.premium-comment-section .user-setup label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.premium-comment-section .user-setup input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.premium-comment-section .user-setup input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Current User Display */
.premium-comment-section .current-user-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.premium-comment-section .current-user-bar span {
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-comment-section .current-user-bar strong {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 8px;
}

.premium-comment-section .admin-badge {
  background: #fbbf24;
  color: #78350f;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  display: inline-block;
}

/* Buttons */
.premium-comment-section .premium-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.premium-comment-section .premium-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.premium-comment-section .premium-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.premium-comment-section .premium-btn.primary:active {
  transform: translateY(0);
}

.premium-comment-section .premium-btn.secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.premium-comment-section .premium-btn.secondary:hover {
  background: #667eea;
  color: white;
}

/* Comment Input */
.premium-comment-section .comment-composer {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.premium-comment-section .comment-composer:focus-within {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.premium-comment-section .comment-composer textarea {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  background: white;
  color: #1e293b;
  line-height: 1.6;
}

.premium-comment-section .comment-composer textarea:focus {
  outline: none;
}

.premium-comment-section .comment-composer textarea::placeholder {
  color: #94a3b8;
}

.premium-comment-section .composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
}

.premium-comment-section .character-count {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

/* Comments List */
.premium-comment-section .comments-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  gap: 12px;
}

.premium-comment-section .comments-list-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-comment-section .comment-count-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Comment Card */
.premium-comment-section .comment-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.premium-comment-section .comment-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px 0 0 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-comment-section .comment-card:hover {
  border-color: #667eea;
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.15);
}

.premium-comment-section .comment-card:hover::before {
  opacity: 1;
}

.premium-comment-section .comment-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.premium-comment-section .comment-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.premium-comment-section .comment-info {
  flex: 1;
  min-width: 0;
}

.premium-comment-section .comment-author {
  font-weight: 700;
  color: #1e293b;
  font-size: 16px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-comment-section .comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.premium-comment-section .comment-text {
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Action Buttons */
.premium-comment-section .comment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-comment-section .action-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.premium-comment-section .action-btn:hover {
  background: #f8fafc;
  border-color: #667eea;
  color: #667eea;
}

.premium-comment-section .action-btn.liked {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

.premium-comment-section .action-btn.delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Reply Section */
.premium-comment-section .replies-wrapper {
  margin-top: 20px;
  padding-left: 40px;
  border-left: 3px solid #e2e8f0;
}

.premium-comment-section .reply-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.premium-comment-section .reply-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.premium-comment-section .reply-card .comment-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Reply Input */
.premium-comment-section .reply-input-box {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
}

.premium-comment-section .reply-input-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  background: white;
  min-height: 80px;
}

.premium-comment-section .reply-input-box textarea:focus {
  outline: none;
  border-color: #667eea;
}

.premium-comment-section .reply-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.premium-comment-section .reply-actions button {
  padding: 8px 20px;
  font-size: 14px;
}

/* Empty State */
.premium-comment-section .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.premium-comment-section .empty-state i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.premium-comment-section .empty-state p {
  font-size: 16px;
  font-weight: 500;
}

/* Loading State */
.premium-comment-section .loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.premium-comment-section .loading-spinner {
  font-size: 48px;
  animation: premiumSpin 1s linear infinite;
}

@keyframes premiumSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE - PREMIUM MOBILE DESIGN ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .premium-comment-section .section-header {
    padding: 28px 32px;
  }

  .premium-comment-section .section-header h2 {
    font-size: 26px;
  }

  .premium-comment-section .section-content {
    padding: 32px;
  }

  .premium-comment-section .comment-card {
    padding: 20px;
  }

  .premium-comment-section .replies-wrapper {
    padding-left: 32px;
  }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) {
  .premium-comment-section {
    border-radius: 16px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2);
  }

  .premium-comment-section .section-header {
    padding: 24px;
    border-radius: 16px 16px 0 0;
  }

  .premium-comment-section .section-header h2 {
    font-size: 22px;
    gap: 8px;
  }

  .premium-comment-section .section-header p {
    font-size: 14px;
  }

  .premium-comment-section .section-content {
    padding: 24px;
  }

  /* User Setup Mobile */
  .premium-comment-section .user-setup {
    padding: 20px;
    border-radius: 12px;
  }

  .premium-comment-section .user-setup input {
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Current User Bar Mobile */
  .premium-comment-section .current-user-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .premium-comment-section .current-user-bar span {
    font-size: 14px;
  }

  /* Buttons Mobile */
  .premium-comment-section .premium-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  /* Comment Composer Mobile */
  .premium-comment-section .comment-composer {
    padding: 20px;
    border-radius: 12px;
  }

  .premium-comment-section .comment-composer textarea {
    min-height: 100px;
    font-size: 14px;
    padding: 14px;
  }

  .premium-comment-section .composer-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .premium-comment-section .character-count {
    text-align: center;
  }

  /* Comments List Header Mobile */
  .premium-comment-section .comments-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .premium-comment-section .comments-list-header h3 {
    font-size: 18px;
  }

  /* Comment Card Mobile */
  .premium-comment-section .comment-card {
    padding: 16px;
    border-radius: 12px;
  }

  .premium-comment-section .comment-card:hover {
    transform: none;
  }

  .premium-comment-section .comment-top {
    gap: 12px;
  }

  .premium-comment-section .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .premium-comment-section .comment-author {
    font-size: 15px;
  }

  .premium-comment-section .comment-text {
    font-size: 14px;
    margin-bottom: 12px;
  }

  /* Action Buttons Mobile */
  .premium-comment-section .action-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* Replies Mobile */
  .premium-comment-section .replies-wrapper {
    padding-left: 20px;
    margin-top: 16px;
    border-left-width: 2px;
  }

  .premium-comment-section .reply-card {
    padding: 12px;
    border-radius: 10px;
  }

  .premium-comment-section .reply-card .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* Reply Input Mobile */
  .premium-comment-section .reply-input-box {
    padding: 12px;
  }

  .premium-comment-section .reply-actions {
    flex-direction: column;
  }

  .premium-comment-section .reply-actions button {
    width: 100%;
  }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
  .premium-comment-section .section-header {
    padding: 20px 16px;
  }

  .premium-comment-section .section-header h2 {
    font-size: 20px;
  }

  .premium-comment-section .section-header p {
    font-size: 13px;
  }

  .premium-comment-section .section-content {
    padding: 16px;
  }

  .premium-comment-section .user-setup {
    padding: 16px;
  }

  .premium-comment-section .comment-composer {
    padding: 16px;
  }

  .premium-comment-section .comment-card {
    padding: 14px;
  }

  .premium-comment-section .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .premium-comment-section .comment-author {
    font-size: 14px;
  }

  .premium-comment-section .comment-text {
    font-size: 13px;
  }

  .premium-comment-section .admin-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .premium-comment-section .replies-wrapper {
    padding-left: 16px;
  }

  .premium-comment-section .reply-card .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .premium-comment-section .empty-state i,
  .premium-comment-section .loading-spinner {
    font-size: 48px;
  }

  .premium-comment-section .empty-state p {
    font-size: 14px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .premium-comment-section .premium-btn {
    min-height: 44px;
  }

  .premium-comment-section .action-btn {
    min-height: 36px;
    padding: 8px 14px;
  }

  .premium-comment-section .user-setup input,
  .premium-comment-section .comment-composer textarea,
  .premium-comment-section .reply-input-box textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}