body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
}

.header {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-image {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  overflow: hidden;
}

.headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #1DA1F2;
}

.follow-button {
  background-color: #1DA1F2;
  border: none;
  transition: background-color 0.2s;
}

.follow-button:hover {
  background-color: #1a91da;
}

.tweets-grid {
  margin-top: 2rem;
}

.tweet {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.tweet:hover {
  transform: translateY(-2px);
}

.tweet p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tweet small {
  color: #536471;
  font-size: 0.9rem;
}

.tweet a {
  color: #1DA1F2;
  text-decoration: none;
}

.tweet a:hover {
  text-decoration: underline;
}

.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1DA1F2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.error {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  color: #dc3545;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .tweets-grid {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tweet-media {
  max-height: 300px;
  width: auto;
  display: block;
  margin: 10px 0;
}