/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Brainmate Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f5f7fa;
}

.brainmate-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 200px);
  font-family: 'Poppins', sans-serif;
}

/* Tabs Navigation */
.tabs-wrapper {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  margin-bottom: 0;
}

.tabs-navigation {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #a0aec0;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #718096;
}

.tab-btn.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tab Content */
.tab-content-wrapper {
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  padding: 40px;
}

/* Illustration Box */
.illustration-box {
  text-align: center;
  margin-bottom: 32px;
  overflow: hidden;
}

.illustration-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.robot-illustration,
.study-illustration,
.warning-illustration {
  font-size: 80px;
  margin: 0;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.warning-illustration {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Typography */
.section-title {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #2d3748;
  margin-bottom: 20px;
  line-height: 1.4;
}

.section-title.warning-title {
  color: #d69e2e;
}

.subsection-title {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #2d3748;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-text {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 16px;
}

.section-text strong {
  color: #2d3748;
  font-weight: 600;
}

.section-text em {
  font-style: italic;
  color: #667eea;
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.tips-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #4a5568;
}

.tips-list li::before {
  content: '•';
  position: absolute;
  left: 12px;
  color: #667eea;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
}

.tips-list li strong {
  color: #2d3748;
  font-weight: 600;
}

/* Disclaimer Sections */
.disclaimer-section {
  background: #fffaf0;
  border-left: 4px solid #ed8936;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.disclaimer-section:last-child {
  background: #f0fff4;
  border-left-color: #48bb78;
}

.disclaimer-section .subsection-title {
  margin-top: 0;
  color: #2d3748;
  font-size: 18px;
}

.disclaimer-section .section-text {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brainmate-container {
    padding: 16px;
  }

  .tabs-wrapper {
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-navigation {
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .tabs-navigation::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .content-section {
    padding: 24px 20px;
  }

  .illustration-box {
    margin-bottom: 24px;
  }

  .illustration-image {
    width: 100%;
  }

  .robot-illustration,
  .study-illustration,
  .warning-illustration {
    font-size: 60px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .subsection-title {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .section-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .tips-list li {
    font-size: 15px;
    padding-left: 28px;
  }

  .disclaimer-section {
    padding: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .brainmate-container {
    padding: 12px;
  }

  .content-section {
    padding: 20px 16px;
  }

  .illustration-box {
    margin-bottom: 20px;
  }

  .illustration-image {
    width: 100%;
  }

  .robot-illustration,
  .study-illustration,
  .warning-illustration {
    font-size: 50px;
  }

  .section-title {
    font-size: 20px;
  }

  .subsection-title {
    font-size: 17px;
  }

  .section-text,
  .tips-list li {
    font-size: 14px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Style */
::selection {
  background: #667eea;
  color: #fff;
}

::-moz-selection {
  background: #667eea;
  color: #fff;
}
