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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #dfdfdf 0%, #757575 100%);
  min-height: 100vh;
  padding: 20px;
}

/**********************************/
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #35c6ff 0%, #1948c9 100%);
  color: white;
  padding: 40px;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.repo-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.repo-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.content {
  padding: 40px;
}

.version-section {
  margin-bottom: 30px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.version-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.version-header {
  background: #f8f9fa;
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e5e9;
  transition: background-color 0.3s ease;
}

.version-header:hover {
  background: #e9ecef;
}

.version-header.active {
  background: linear-gradient(135deg, #2cb6ec 0%, #2479e9 100%);
  color: white;
}

.version-title {
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
}

.version-number {
  background: #66aaea;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.version-header.active .version-number {
  background: rgba(255, 255, 255, 0.2);
}

.version-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.version-header.active .toggle-icon {
  transform: rotate(180deg);
}

.version-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.version-content.active {
  max-height: 2000px;
}

.commits-container {
  padding: 30px;
}

.developer-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2cb6ec;
}

.developer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.developer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

.commit-count {
  background: #2cb6ec;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.commits-list {
  list-style: none;
}

.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.commit-item:last-child {
  border-bottom: none;
}

.commit-tag {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.commit-tag.feat {
  background: #d4edda;
  color: #155724;
}

.commit-tag.fix {
  background: #f8d7da;
  color: #721c24;
}

.commit-tag.style {
  background: #d1ecf1;
  color: #0c5460;
}

.commit-tag.refactor {
  background: #fff3cd;
  color: #856404;
}

.commit-tag.perf {
  background: #e2e3e5;
  color: #383d41;
}

.commit-tag.chore {
  background: #f8f9fa;
  color: #6c757d;
}

.commit-tag.docs {
  background: #cce5ff;
  color: #004085;
}

.commit-tag.test {
  background: #e7f3ff;
  color: #004085;
}

.commit-tag.breaking {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #dc3545;
}

.commit-tag.other {
  background: #f8f9fa;
  color: #6c757d;
}

.commit-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.error {
  text-align: center;
  padding: 40px;
  color: #dc3545;
  background: #f8d7da;
  border-radius: 8px;
  margin: 20px 0;
}

.version-section {
  animation: fadeIn 0.5s ease-out;
}

.copyright {
  text-align: center;
  padding: 20px;
  color: #fff;
  font-size: 0.9rem;
}

/* responsive design */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 15px;
  }

  .header {
    padding: 30px 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .content {
    padding: 20px;
  }

  .version-header {
    padding: 15px 20px;
  }

  .version-title {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .commits-container {
    padding: 20px;
  }

  .developer-section {
    padding: 15px;
  }

  .commit-item {
    flex-direction: column;
    gap: 8px;
  }

  .commit-tag {
    align-self: flex-start;
  }
}

/* animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
