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

body {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  background-attachment: fixed;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  padding: 2rem 1rem;
}

main {
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #888;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* About Section */
.about p {
  color: #aaa;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
  border-color: #666;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(38, 166, 65, 0.1);
}

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

.stat-label {
  font-size: 0.875rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Monthly Summary */
.monthly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.monthly-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #26a641;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 0 10px rgba(38, 166, 65, 0.1);
}

.monthly-card:hover {
  border-color: #39d353;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(38, 166, 65, 0.2);
}

.monthly-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.monthly-number {
  font-size: 2rem;
  font-weight: 700;
  color: #26a641;
  margin-bottom: 0.5rem;
}

.monthly-label {
  font-size: 0.875rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Training Goals */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.goal-card {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.goal-card:hover {
  border-color: #666;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 15px rgba(38, 166, 65, 0.1);
}

.goal-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.goal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.goal-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #26a641, #39d353);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.goal-status {
  font-size: 0.875rem;
  color: #888;
}

/* Personal Records */
.prs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.pr-card {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.pr-card:hover {
  border-color: #666;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.pr-exercise {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pr-details {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pr-weight {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.pr-reps {
  font-size: 1rem;
  color: #888;
}

/* Recent Workouts - Timeline Style */
.workouts-list {
  position: relative;
  padding-left: 2rem;
}

.workouts-list::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #333 0%, #111 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-marker {
  position: absolute;
  left: -1.4rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: #26a641;
  border: 2px solid #000;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(38, 166, 65, 0.2);
}

.timeline-content {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover .timeline-content {
  border-color: #666;
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.timeline-date {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.timeline-details {
  font-size: 0.875rem;
  color: #888;
}

.loading {
  text-align: center;
  color: #888;
  padding: 2rem;
}

.error {
  text-align: center;
  color: #ff6b6b;
  padding: 2rem;
}

/* Links Section */
.links {
  margin-bottom: 3rem;
}

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

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding: 1.25rem 2rem;
  border: 2px solid #fff;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.link-icon {
  font-size: 1.5rem;
}

.link-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.link-btn:active {
  transform: translateY(0);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #666;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 0.875rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .link-btn {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .workouts-list {
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding-left: 1rem;
  }

  .timeline-marker {
    left: -1.2rem;
  }
}
