/* Elite Findom Forum - Premium Styling */
:root {
  --primary-color: #ff0066;
  --primary-dark: #d10054;
  --primary-light: #ff4d94;
  --secondary-color: #9400d3;
  --secondary-light: #b347ff;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333;
  --light-text: #6c757d;
  --accent-color: #ffcc00;
  --border-color: rgba(255, 0, 102, 0.1);
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 35px rgba(255, 0, 102, 0.15);
  --gradient-primary: linear-gradient(135deg, #ff0066, #9400d3);
  --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

/* General Forum Styling */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: #f9f9f9;
  background-image: 
    radial-gradient(circle at 25% 10%, rgba(255, 0, 102, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(148, 0, 211, 0.03) 0%, transparent 60%);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Forum Container */
.forum-container {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

/* Forum Header Area */
.forum-header {
  margin-bottom: 2.5rem;
  position: relative;
}

.forum-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.forum-description {
  font-size: 1.15rem;
  color: var(--light-text);
  max-width: 70%;
  margin-bottom: 1.5rem;
}

.forum-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
}

.forum-actions .btn {
  margin-left: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.forum-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff1a75, #a31aff);
}

.btn-success {
  background-color: var(--secondary-color);
  border: none;
}

.btn-success:hover {
  background-color: var(--secondary-light);
}

.btn i {
  margin-right: 0.5rem;
}

/* Forum Cards */
.forum-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: none;
  margin-bottom: 2.5rem;
  background: white;
  transition: var(--transition);
}

.forum-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px);
}

.forum-card-header {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.forum-card-header i {
  margin-right: 0.75rem;
  font-size: 1.4rem;
}

.forum-card-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Thread List */
.list-group-item {
  padding: 1.25rem 1.5rem;
  border-color: var(--border-color);
  transition: var(--transition);
}

.list-group-item:hover {
  background-color: rgba(255, 0, 102, 0.03);
}

.post-title {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition);
}

.list-group-item:hover .post-title {
  color: var(--primary-color);
}

.list-group-item .text-muted {
  font-size: 0.9rem;
}

.badge {
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
}

.badge.bg-primary {
  background: var(--gradient-primary) !important;
}

.badge.bg-light {
  background-color: #f0f0f7 !important;
  color: var(--dark-color) !important;
}

/* Icon styling */
.fa-thumbtack {
  color: var(--accent-color);
  transform: rotate(45deg);
}

.fa-lock {
  color: #8c8c8c;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.empty-state-message {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Category List */
.category-item {
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-item:hover {
  background-color: rgba(255, 0, 102, 0.03);
}

.category-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.category-description {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.category-count {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  padding: 0.4em 0.85em;
  border-radius: 30px;
  font-size: 0.85rem;
}

/* Thread page styling */
.thread-header {
  margin-bottom: 2rem;
}

.thread-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.thread-stat {
  display: flex;
  align-items: center;
  color: var(--light-text);
}

.thread-stat i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

/* Post styling */
.post-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: none;
  margin-bottom: 2rem;
  background: white;
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: var(--hover-shadow);
}

.post-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.post-content {
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.post-date {
  color: var(--light-text);
  font-size: 0.9rem;
}

.first-post {
  border: 2px solid var(--primary-light);
}

/* Reply form */
.reply-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: none;
}

.reply-form-container {
  padding: 1.5rem;
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--light-text);
}

/* Nested replies */
.nested-post {
  margin-left: 3rem;
  border-left: 3px solid var(--primary-light);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Status highlighting */
.highlight-new {
  animation: highlightFade 3s ease-out;
}

@keyframes highlightFade {
  0% {
    background-color: rgba(255, 0, 102, 0.1);
    transform: translateX(-5px);
  }
  100% {
    background-color: transparent;
    transform: translateX(0);
  }
}

/* Reply form styling */
.nested-reply-form {
  background-color: rgba(255, 0, 102, 0.03);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .forum-title {
    font-size: 2rem;
  }
  
  .forum-description {
    max-width: 100%;
  }
  
  .forum-actions {
    margin-top: 1.5rem;
  }
  
  .thread-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .forum-title {
    font-size: 1.75rem;
  }
  
  .forum-card-header {
    padding: 1rem;
  }
  
  .list-group-item, .category-item {
    padding: 1rem;
  }
  
  .thread-meta {
    gap: 1rem;
    flex-direction: column;
  }
  
  .nested-post {
    margin-left: 1.5rem;
  }
  
  .post-header {
    flex-direction: column;
  }
  
  .post-date {
    margin-top: 0.5rem;
  }
}

@media (max-width: 576px) {
  .forum-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .forum-actions .btn {
    margin-left: 0;
    margin-bottom: 0.75rem;
  }
  
  .post-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* YouTube embeds */
.youtube-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Dark theme elements */
.dark-card {
  background: var(--gradient-dark);
  color: white;
}

/* Pinned and featured elements */
.featured-thread {
  position: relative;
  border: 1px solid var(--accent-color);
  background-color: rgba(255, 204, 0, 0.03);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent-color);
  color: var(--dark-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin badge styling */
.admin-badge {
  background: linear-gradient(135deg, #ff0066, #9400d3);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  margin-left: 0.5rem;
}

.mod-badge {
  background: linear-gradient(135deg, #3a86ff, #00c6ff);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  margin-left: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Legal document badge */
.legal-badge {
  background-color: #28a745;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Loading animations */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 0, 102, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Reply button hover effects */
.reply-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  transition: var(--transition);
}

.reply-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Author highlight */
.author-highlight {
  background-color: rgba(255, 0, 102, 0.05);
}