/**
 * Course Module Styles
 */

.course-page {
  min-height: 100vh;
  padding: 3rem 0;
  background: linear-gradient(180deg, #000 0%, #0f0f0f 100%);
  margin-top: 80px;
}

.course-module {
  min-height: 100vh;
  padding: 3rem 0;
  background: #000;
  margin-top: 80px;
}

.course-header {
  margin-bottom: 3rem;
  text-align: center;
}

.course-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.course-header p {
  color: var(--text-tertiary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.modules-list {
  max-width: 800px;
  margin: 0 auto;
}

.module-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.module-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
}

.module-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.module-info {
  flex: 1;
}

.module-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.module-info p {
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.module-duration {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.module-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.back-btn,
.next-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.back-btn:hover,
.next-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.module-content {
  max-width: 800px;
  margin: 0 auto;
}

.module-intro {
  font-size: 1.25rem;
  color: var(--text-tertiary);
  margin-bottom: 3rem;
}

.lesson {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 2rem;
}

.lesson h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.lesson h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.real-example {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  margin: 2rem 0;
}

.mistake-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--color-error);
  padding: 1.5rem;
  margin: 2rem 0;
}

.real-numbers {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--color-success);
  padding: 1.5rem;
  margin: 2rem 0;
}

.keyword-table {
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  color: var(--color-primary);
  font-weight: 600;
}

code,
pre {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: block;
  margin: 1rem 0;
  overflow-x: auto;
}

.resources {
  margin-top: 3rem;
}

.resource-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.module-complete {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .course-page,
  .course-module {
    padding: 2rem 0;
    margin-top: 70px;
  }

  .lesson {
    padding: 2rem 1.5rem;
  }

  .module-nav {
    flex-direction: column;
    gap: 1rem;
  }
}
