/* Enhanced Footer with Social Media and Expandable Disqus */

.sravz-footer {
  margin-top: 3rem;
  padding: 2rem 0 1rem;
  border-top: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-social-label {
  font-weight: 600;
  color: #555;
  margin-right: 0.5rem;
  font-size: 0.95rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.footer-social a i {
  transition: transform 0.3s ease;
}

.footer-social a:hover i {
  transform: scale(1.2);
}

/* Individual Social Media Colors */
.footer-social a:nth-child(2):hover { background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%); } /* YouTube */
.footer-social a:nth-child(3):hover { background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 100%); } /* Facebook */
.footer-social a:nth-child(4):hover { background: linear-gradient(135deg, #E4405F 0%, #C13584 100%); } /* Instagram */
.footer-social a:nth-child(5):hover { background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%); } /* Twitter */
.footer-social a:nth-child(6):hover { background: linear-gradient(135deg, #0A66C2 0%, #004182 100%); } /* LinkedIn */
.footer-social a:nth-child(7):hover { background: linear-gradient(135deg, #000000 0%, #333333 100%); } /* Medium */
.footer-social a:nth-child(8):hover { background: linear-gradient(135deg, #333333 0%, #000000 100%); } /* GitHub */
.footer-social a:nth-child(9):hover { background: linear-gradient(135deg, #ED1965 0%, #c41452 100%); } /* Gitter */

/* Disqus Toggle Button */
.footer-disqus-toggle {
  margin-left: auto;
}

.disqus-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.disqus-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.disqus-toggle-btn:active {
  transform: translateY(0);
}

.disqus-toggle-btn i {
  font-size: 1.2rem;
}

#disqusCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
}

/* Expandable Disqus Container */
.disqus-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.disqus-container.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.disqus-container.expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1.5rem;
  padding: 1.5rem;
}

/* Disqus Header */
.disqus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.disqus-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disqus-header i {
  color: #7c3aed;
}

.disqus-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.disqus-close-btn:hover {
  background: #7c3aed;
  color: white;
  transform: rotate(90deg);
}

/* Disqus Thread Styling */
#disqus_thread {
  min-height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-social {
    width: 100%;
    justify-content: center;
  }

  .footer-disqus-toggle {
    width: 100%;
    margin-left: 0;
  }

  .disqus-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .disqus-container.expanded {
    padding: 1rem;
  }

  .disqus-header h3 {
    font-size: 1.25rem;
  }
}

/* Theme Variations */
/* Purple Gradient (Default) - Already styled above */

/* Light Professional Theme */
body.sidebar-theme-light .sravz-footer {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top-color: #e5e7eb;
}

body.sidebar-theme-light .footer-social a {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

body.sidebar-theme-light .disqus-toggle-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

body.sidebar-theme-light .disqus-toggle-btn:hover {
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

body.sidebar-theme-light .disqus-header i {
  color: #4f46e5;
}

/* Ocean Blue Theme */
body.sidebar-theme-ocean .sravz-footer {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-top-color: #bae6fd;
}

body.sidebar-theme-ocean .footer-social a {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

body.sidebar-theme-ocean .disqus-toggle-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

body.sidebar-theme-ocean .disqus-toggle-btn:hover {
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

body.sidebar-theme-ocean .disqus-header i {
  color: #0284c7;
}

/* Sunset Theme */
body.sidebar-theme-sunset .sravz-footer {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-top-color: #fed7aa;
}

body.sidebar-theme-sunset .footer-social a {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

body.sidebar-theme-sunset .disqus-toggle-btn {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

body.sidebar-theme-sunset .disqus-toggle-btn:hover {
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

body.sidebar-theme-sunset .disqus-header i {
  color: #ea580c;
}

/* Dark Mode Theme */
body.sidebar-theme-dark .sravz-footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-top-color: #374151;
}

body.sidebar-theme-dark .footer-social-label {
  color: #d1d5db;
}

body.sidebar-theme-dark .footer-social a {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

body.sidebar-theme-dark .disqus-toggle-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

body.sidebar-theme-dark .disqus-toggle-btn:hover {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

body.sidebar-theme-dark .disqus-container {
  background: #1f2937;
}

body.sidebar-theme-dark .disqus-header {
  border-bottom-color: #374151;
}

body.sidebar-theme-dark .disqus-header h3 {
  color: #f9fafb;
}

body.sidebar-theme-dark .disqus-header i {
  color: #a78bfa;
}

body.sidebar-theme-dark .disqus-close-btn {
  background: #374151;
  color: #9ca3af;
}

body.sidebar-theme-dark .disqus-close-btn:hover {
  background: #7c3aed;
  color: white;
}

/* Minimal Gray Theme */
body.sidebar-theme-minimal .sravz-footer {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-top-color: #e5e7eb;
}

body.sidebar-theme-minimal .footer-social a {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
}

body.sidebar-theme-minimal .disqus-toggle-btn {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
}

body.sidebar-theme-minimal .disqus-toggle-btn:hover {
  box-shadow: 0 6px 16px rgba(75, 85, 99, 0.4);
}

body.sidebar-theme-minimal .disqus-header i {
  color: #4b5563;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.disqus-container.expanded #disqus_thread {
  animation: fadeInUp 0.5s ease;
}
