/**
 * Frontend Styles - Modern Tabs Design
 */

:root {
  --wcps-text: #111827;
  --wcps-muted: #6b7280;
  --wcps-line: #e5e7eb;
  --wcps-bg: #f9fafb;
  --wcps-accent: #ff6b35;
  --wcps-success: #16a34a;
  --wcps-border: #e5e7eb;
  --wcps-hover: #f3f4f6;
  --wcps-active-bg: #ffffff;
  --wcps-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --wcps-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wcps-tabs-container,
.wcps-tabs-container * {
  box-sizing: border-box;
}

.wcps-tabs-container {
  padding: 48px 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.wcps-section-inner {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   Modern Tabs Navigation
   ============================================ */

.wcps-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--wcps-border);
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wcps-tabs-nav::-webkit-scrollbar {
  display: none;
}

.wcps-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 500;
  color: var(--wcps-muted);
  position: relative;
  white-space: nowrap;
  margin-bottom: -2px;
  outline: none;
  font-family: inherit;
}

.wcps-tab-btn:hover {
  color: var(--wcps-text);
  background: var(--wcps-hover);
  border-radius: 8px 8px 0 0;
}

.wcps-tab-btn:focus {
  outline: 2px solid var(--wcps-accent);
  outline-offset: 2px;
}

.wcps-tab-btn.active {
  color: var(--wcps-accent);
  border-bottom-color: var(--wcps-accent);
  background: var(--wcps-active-bg);
  font-weight: 600;
}

.wcps-tab-title {
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Tab Content Panels
   ============================================ */

.wcps-tabs-content {
  position: relative;
  min-height: 200px;
}

.wcps-tab-panel {
  display: none;
  opacity: 0;
  animation: fadeOut 0.3s ease-out;
  width: 100%;
}

.wcps-tab-panel.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.wcps-tab-panel-inner {
  width: 100%;
  padding: 32px 0;
}

/* ============================================
   What You Learn Content
   ============================================ */

.wcps-what-you-learn-content {
  width: 100%;
}

.wcps-learn-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .wcps-learn-items {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.wcps-learn-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wcps-learn-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.wcps-learn-item:hover {
  background: var(--wcps-hover);
}

.wcps-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--wcps-success);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.wcps-learn-text {
  color: var(--wcps-text);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* ============================================
   Instructor Profile Content
   ============================================ */

.wcps-instructor-content {
  width: 100%;
}

.wcps-instructor-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--wcps-bg);
  border-radius: 12px;
  border: 1px solid var(--wcps-border);
}

@media (max-width: 768px) {
  .wcps-instructor-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

.wcps-instructor-image {
  flex-shrink: 0;
}

.wcps-instructor-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 3px solid var(--wcps-active-bg);
  object-fit: cover;
  display: block;
  box-shadow: var(--wcps-shadow);
}

.wcps-instructor-info {
  flex: 1;
  min-width: 0;
}

.wcps-instructor-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--wcps-text);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.wcps-instructor-description {
  color: var(--wcps-muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.wcps-instructor-description p {
  margin: 0 0 16px 0;
}

.wcps-instructor-description p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Curriculum Content
   ============================================ */

.wcps-curriculum-content {
  width: 100%;
  padding: 0;
}

.wcps-curriculum-intro {
  text-align: left;
  color: var(--wcps-muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 32px 0;
  padding: 20px;
  background: var(--wcps-bg);
  border-radius: 8px;
  border-left: 4px solid var(--wcps-accent);
}

.wcps-curriculum-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wcps-curriculum-item {
  background: var(--wcps-active-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--wcps-border);
  box-shadow: var(--wcps-shadow);
}

.wcps-curriculum-item:hover {
  box-shadow: var(--wcps-shadow-lg);
  transform: translateY(-2px);
}

.wcps-curriculum-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.wcps-curriculum-header:hover {
  background-color: var(--wcps-hover);
}

.wcps-curriculum-icon {
  font-size: 20px;
  flex-shrink: 0;
  color: var(--wcps-accent);
  opacity: 0.9;
  line-height: 1;
}

.wcps-curriculum-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--wcps-text);
  margin: 0;
  line-height: 1.4;
}

.wcps-curriculum-toggle {
  font-size: 18px;
  color: var(--wcps-muted);
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wcps-bg);
}

.wcps-curriculum-header.active .wcps-curriculum-toggle {
  transform: rotate(180deg);
  color: var(--wcps-accent);
  background: rgba(255, 107, 53, 0.1);
}

.wcps-curriculum-item .wcps-curriculum-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 24px;
  display: block;
  background: var(--wcps-bg);
}

.wcps-curriculum-item .wcps-curriculum-content.active {
  max-height: 2000px;
  padding: 0 24px 24px 24px;
  display: block;
}

.wcps-curriculum-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wcps-curriculum-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  color: var(--wcps-text);
  font-size: 15px;
  line-height: 1.7;
  transition: padding-left 0.2s ease;
}

.wcps-curriculum-list-item:hover {
  padding-left: 8px;
  color: var(--wcps-accent);
}

.wcps-curriculum-list-item:first-child {
  padding-top: 16px;
}

.wcps-curriculum-list-item:last-child {
  padding-bottom: 0;
}

.wcps-curriculum-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--wcps-accent);
  border-radius: 50%;
  margin-top: 10px;
  flex-shrink: 0;
  opacity: 0.95;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ============================================
   Package Features Content
   ============================================ */

.wcps-package-content {
  width: 100%;
}

.wcps-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 0;
}

@media (max-width: 768px) {
  .wcps-features-list {
    grid-template-columns: 1fr;
  }
}

.wcps-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  justify-content: flex-start;
  background: var(--wcps-active-bg);
  border-radius: 12px;
  border: 1px solid var(--wcps-border);
  transition: all 0.3s ease;
  box-shadow: var(--wcps-shadow);
}

.wcps-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--wcps-shadow-lg);
  border-color: var(--wcps-accent);
}

.wcps-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wcps-accent);
  background: rgba(255, 107, 53, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.wcps-feature-item:hover .wcps-feature-icon {
  background: rgba(255, 107, 53, 0.15);
  transform: scale(1.1);
}

.wcps-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.wcps-feature-text {
  color: var(--wcps-text);
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
  margin: 0;
  font-weight: 500;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .wcps-tabs-container {
    padding: 32px 0;
  }

  .wcps-section-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wcps-tabs-nav {
    gap: 4px;
    margin-bottom: 24px;
  }

  .wcps-tab-btn {
    padding: 12px 16px;
    font-size: 14px;
    flex: 1;
    min-width: auto;
  }

  .wcps-tab-panel-inner {
    padding: 24px 0;
  }

  .wcps-instructor-title {
    font-size: 20px;
  }

  .wcps-curriculum-header {
    padding: 16px 20px;
  }

  .wcps-curriculum-title {
    font-size: 16px;
  }

  .wcps-feature-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .wcps-tabs-container {
    padding: 24px 0;
  }

  .wcps-tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .wcps-tab-panel-inner {
    padding: 20px 0;
  }

  .wcps-curriculum-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .wcps-curriculum-item .wcps-curriculum-content.active {
    padding: 0 16px 20px 16px;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .wcps-tabs-nav {
    display: none;
  }

  .wcps-tab-panel {
    display: block !important;
    opacity: 1 !important;
    page-break-inside: avoid;
  }

  .wcps-tab-panel-inner {
    padding: 20px 0 !important;
  }
}
