/*-----------------------------------------------
  DISCUSSION FORUM / FAQ PAGE STYLES
-----------------------------------------------*/

/* Colorful gradient background for learning resources page */
body {
  background: linear-gradient(135deg, 
    #f8f9fa 0%, 
    #e8f4f8 25%, 
    #f0e8f8 50%, 
    #e8f0f8 75%, 
    #f8f9fa 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: learningGradient 20s ease infinite;
}

@keyframes learningGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Dark mode gradient */
body.dark {
  background: linear-gradient(135deg, 
    #1a1a2e 0%, 
    #1e2a3a 25%, 
    #2a1e3a 50%, 
    #1e2a3a 75%, 
    #1a1a2e 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: learningGradient 20s ease infinite;
}

/* Page title styling to match other pages */
.page-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 2rem 0 2rem 0;
  color: var(--primary-color);
  transition: font-size 0.3s ease, margin 0.3s ease;
}

body.dark .page-title {
  color: var(--text-color);
}

.description {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.description a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

.description a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.disclaimer {
  background: rgba(255, 92, 92, 0.1) !important;
  border: 1px solid rgba(255, 92, 92, 0.5) !important;
  color: #a94442 !important;
  font-weight: 500 !important;
  padding: 1rem !important;
  margin: 1rem 0 !important;
  text-align: center !important;
  border-radius: 8px !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

body.dark .disclaimer {
  background: rgba(255, 92, 92, 0.08) !important;
  border-color: rgba(255, 92, 92, 0.4) !important;
  color: #e88e8b !important;
}

#disqus_thread {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--info-bg);
  transition: background-color 0.3s ease;
}

/* Modern Resource Cards Styles */
.resource-container {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 2rem 1rem;
  transition: padding 0.3s ease;
}

.resource-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

body.dark .resource-card {
  background: rgba(28, 28, 30, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Colored borders for each card */
.resource-card:nth-child(2) {
  border-left-color: #4CAF50; /* Green for textbooks */
}

.resource-card:nth-child(3) {
  border-left-color: #2196F3; /* Blue for videos */
}

.resource-card:nth-child(4) {
  border-left-color: #FF9800; /* Orange for articles */
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark .resource-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.resource-card h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.resource-card h2 i {
  font-size: 1.25em;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Colored icons to match borders */
.resource-card:nth-child(2) h2 i {
  color: #4CAF50;
}

.resource-card:nth-child(3) h2 i {
  color: #2196F3;
}

.resource-card:nth-child(4) h2 i {
  color: #FF9800;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.resource-list li {
  padding: 1.25rem;
  background: transparent;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.resource-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.resource-list li:hover {
  border-color: var(--accent-color);
  background: var(--bg-color);
}

.resource-list li:hover::before {
  transform: scaleX(1);
}

.resource-list a {
  color: #2196F3;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.resource-list a:hover {
  color: #7B2CBF;
  text-decoration: none;
  transform: translateX(3px);
}

body.dark .resource-list a {
  color: #64B5F6;
}

body.dark .resource-list a:hover {
  color: #9D4EDD;
}

.resource-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.25rem;
  transition: all 0.3s ease;
}

.credit-section {
  text-align: center;
  padding: 2rem;
  background: var(--info-bg);
  border-radius: 16px;
  margin-top: 3rem;
  font-style: italic;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.credit-section p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* FAQ Accordion Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px var(--shadow-color);
  background-color: var(--info-bg);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}

.faq-question {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.faq-question.active {
  background-color: var(--accent-color);
  color: white;
}

.faq-question.active::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
  padding: 1rem;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
  transition: font-size 0.3s ease, line-height 0.3s ease;
}

/* Enhanced Responsive Styles */
/* Medium screens */
@media (max-width: 992px) {
  .page-title {
    font-size: 2.2rem;
    margin-bottom: 1.75rem;
  }
  
  .resource-container {
    padding: 1.5rem 1rem;
  }
  
  .resource-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
  }
  
  .resource-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    gap: 0.625rem;
  }
  
  .resource-card h2 i {
    font-size: 1.125em;
  }
  
  .resource-list {
    gap: 0.75rem;
  }
  
  .resource-list li {
    padding: 1rem;
  }
  
  .credit-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .faq-container {
    max-width: 700px;
  }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.8rem !important;
    margin-bottom: 1.2rem !important;
    margin-top: 0.5rem !important;
  }
  
  .description {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .resource-container {
    padding: 1.25rem 0.75rem;
  }
  
  .resource-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }
  
  .resource-card h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  
  .resource-card h2 i {
    font-size: 1em;
  }
  
  .resource-list {
    gap: 0.625rem;
  }
  
  .resource-list li {
    padding: 0.875rem;
    border-radius: 10px;
  }
  
  .resource-list a {
    font-size: 0.9rem;
  }
  
  .resource-description {
    font-size: 0.8rem;
  }
  
  .credit-section {
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 12px;
  }
  
  .disclaimer {
    font-size: 0.9rem;
    padding: 0.8rem !important;
    border-radius: 6px !important;
  }
  
  #disqus_thread {
    padding: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .faq-question {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  .faq-answer.show {
    padding: 0.8rem;
  }
  
  .faq-answer p {
    font-size: 0.95rem;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0.3rem !important;
  }
  
  .description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .resource-container {
    padding: 1rem 0.5rem;
  }
  
  .resource-card {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
  }
  
  .resource-card h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    gap: 0.375rem;
  }
  
  .resource-card h2 i {
    font-size: 0.875em;
  }
  
  .resource-list {
    gap: 0.5rem;
  }
  
  .resource-list li {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .resource-list a {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  .resource-description {
    font-size: 0.85em;
    margin-top: 3px;
  }
  
  .disclaimer {
    font-size: 0.85rem;
    padding: 0.7rem !important;
    margin: 0.8rem 0 !important;
    border-radius: 6px !important;
  }
  
  #disqus_thread {
    padding: 0.7rem;
    margin-top: 1.2rem;
    border-radius: 6px;
  }
  
  .faq-item {
    margin-bottom: 0.8rem;
    border-radius: 6px;
  }
  
  .faq-question {
    font-size: 0.95rem;
    padding: 0.7rem;
  }
  
  .faq-question::after {
    font-size: 1.1rem;
  }
  
  .faq-answer.show {
    padding: 0.7rem;
  }
  
  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .page-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    margin-top: 0.2rem !important;
  }
  
  .description {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  
  .resource-container {
    padding: 0.75rem 0.375rem;
  }
  
  .resource-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
  }
  
  .resource-card h2 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
  }
  
  .resource-card h2 i {
    font-size: 0.75em;
  }
  
  .resource-list {
    gap: 0.375rem;
  }
  
  .resource-list li {
    padding: 0.625rem;
    border-radius: 6px;
  }
  
  .resource-list a {
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
  }
  
  .resource-description {
    font-size: 0.75rem;
    margin-top: 0.125rem;
  }
  
  .credit-section {
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .disclaimer {
    font-size: 0.8rem;
    padding: 0.6rem !important;
    margin: 0.7rem 0 !important;
    border-radius: 5px !important;
  }
  
  .faq-item {
    margin-bottom: 0.7rem;
    border-radius: 5px;
  }
  
  .faq-question {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  
  .faq-question::after {
    font-size: 1rem;
  }
  
  .faq-answer.show {
    padding: 0.6rem;
  }
  
  .faq-answer p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
} 