/* Teacher Hub Page Styling */

/* Stats Section */
.stats-section {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.4;
}

/* Filter Section */
.filter-section {
  padding: 2rem 1rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.filter-section h2 {
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  font-size: 1.3rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #4b5563;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f3f4f6;
}

.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Tools Section */
.tools-section {
  padding: 3rem 1rem;
  background: #f9fafb;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 4px solid #667eea;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
  border-left-color: #764ba2;
}

.tool-icon {
  font-size: 2.5rem;
  color: #667eea;
  line-height: 1;
}

.tool-content {
  flex: 1;
}

.tool-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.4;
}

.tool-content p {
  margin: 0.5rem 0 0 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.use-case {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 500;
}

.use-case i {
  font-size: 0.9rem;
}

.tool-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.2rem;
  color: #d1d5db;
  transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
  color: #667eea;
  transform: translateX(4px);
}

/* How To Use Section */
.how-to-section {
  padding: 3rem 1rem;
  background: white;
}

.how-to-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.how-to-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.how-to-card:hover {
  background: white;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.12);
  transform: translateY(-3px);
  border-color: #667eea;
}

.how-to-card i {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1rem;
  display: block;
}

.how-to-card h3 {
  margin: 0.5rem 0;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
}

.how-to-card p {
  margin: 0.5rem 0 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Related Section */
.related-section {
  padding: 3rem 1rem;
  background: #f9fafb;
}

.related-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #667eea;
}

.related-card i {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 1rem;
  display: block;
}

.related-card h3 {
  margin: 0.5rem 0;
  color: #1f2937;
  font-size: 1.1rem;
}

.related-card p {
  margin: 0.5rem 0 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Dark Mode Support */
:root.dark-mode .tools-section,
:root.dark-mode body .tools-section {
  background: #1f2937;
}

:root.dark-mode .tool-card,
:root.dark-mode body .tool-card {
  background: #2d3748;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

:root.dark-mode .tool-card:hover,
:root.dark-mode body .tool-card:hover {
  background: linear-gradient(135deg, #3d4a63 0%, #2d3748 100%);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

:root.dark-mode .tool-content h3,
:root.dark-mode body .tool-content h3 {
  color: #f9fafb;
}

:root.dark-mode .tool-content p,
:root.dark-mode body .tool-content p {
  color: #d1d5db;
}

:root.dark-mode .filter-section,
:root.dark-mode body .filter-section {
  background: #111827;
  border-bottom-color: #374151;
}

:root.dark-mode .filter-section h2,
:root.dark-mode body .filter-section h2 {
  color: #f9fafb;
}

:root.dark-mode .filter-btn,
:root.dark-mode body .filter-btn {
  background: #2d3748;
  color: #d1d5db;
  border-color: #4b5563;
}

:root.dark-mode .filter-btn:hover,
:root.dark-mode body .filter-btn:hover {
  background: #3d4a63;
  border-color: #667eea;
  color: #f9fafb;
}

:root.dark-mode .filter-btn.active,
:root.dark-mode body .filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

:root.dark-mode .how-to-card,
:root.dark-mode body .how-to-card {
  background: #2d3748;
}

:root.dark-mode .how-to-card:hover,
:root.dark-mode body .how-to-card:hover {
  background: #3d4a63;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

:root.dark-mode .how-to-card h3,
:root.dark-mode body .how-to-card h3 {
  color: #f9fafb;
}

:root.dark-mode .how-to-card p,
:root.dark-mode body .how-to-card p {
  color: #d1d5db;
}

:root.dark-mode .related-card,
:root.dark-mode body .related-card {
  background: #2d3748;
}

:root.dark-mode .related-card:hover,
:root.dark-mode body .related-card:hover {
  background: #3d4a63;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

:root.dark-mode .related-card h3,
:root.dark-mode body .related-card h3 {
  color: #f9fafb;
}

:root.dark-mode .related-card p,
:root.dark-mode body .related-card p {
  color: #d1d5db;
}

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-to-grid {
    grid-template-columns: 1fr;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-section {
    padding: 1.5rem 1rem;
  }

  .filter-section {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tool-arrow {
    display: none;
  }
}
