*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #e7e7e8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #14171a;
  line-height: 1.5;
}

/* Layout */
.twitter-layout {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.feed-column {
  background: #fff;
  min-height: 100vh;
  border-left: 1px solid #e1e8ed;
  border-right: 1px solid #e1e8ed;
}

/* Profile header */
.profile-header {
  border-bottom: 1px solid #e1e8ed;
}

.profile-banner {
  height: 80px;
  background: #1da1f2;
}

.profile-header-body {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
}

.profile-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0d8ecf;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  margin-top: -28px;
  border: 3px solid #fff;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-name {
  font-weight: 700;
  font-size: 1rem;
  color: #14171a;
}

.profile-handle {
  font-size: 0.875rem;
  color: #657786;
}

.profile-bio {
  font-size: 0.9rem;
  color: #14171a;
  margin-top: 0.25rem;
}

.profile-back {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #1da1f2;
  text-decoration: none;
}

.profile-back:hover {
  text-decoration: underline;
}

/* Feed */
.feed {
  display: flex;
  flex-direction: column;
}

/* Tweet */
.tweet {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e1e8ed;
  transition: background 0.1s;
}

.tweet:hover {
  background: #f5f8fa;
}

.tweet-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1da1f2;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.tweet-body {
  flex: 1;
  min-width: 0;
}

.tweet-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.tweet-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #14171a;
}

.tweet-handle,
.tweet-dot,
.tweet-time {
  font-size: 0.85rem;
  color: #657786;
}

.tweet-text {
  margin: 0;
  font-size: 0.95rem;
  color: #14171a;
  line-height: 1.5;
}

/* Tweet actions */
.tweet-actions {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tweet-location {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: #657786;
}

.tweet-location svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #657786;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.share-btn:hover {
  color: #1da1f2;
  background: #e8f5fe;
}

.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Footer */
.log-footer {
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: #657786;
  border-top: 1px solid #e1e8ed;
}
