.container {
  max-width: 800px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.headerContent {
  flex: 1 1 300px;
  min-width: 0;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  color: var(--timestamp-color);
  margin: 0 0 0.5rem 0;
  font-weight: normal;
  word-wrap: break-word;
}

.description {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.profileHeader {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tile-border);
}

.profileInfo {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.profileTitle {
  font-size: 1.8rem;
  margin: 0;
  color: var(--title-color);
  line-height: 1.2;
}

.profileHandle {
  font-size: 1.1rem;
  margin: -0.4rem 0 0 0;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.2;
}

.profileStats {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0;
}

.viewOnBluesky {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

.viewOnBluesky:hover {
  text-decoration: underline;
  /* Removed transform to prevent movement */
}

/* Stats section and chart */
.statsSection {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px var(--shadow-color);
  border: 1px solid var(--tile-border);
}

.statsHeader {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  color: var(--title-color);
}

.statDetails {
  font-size: 1.1rem;
  color: var(--text-color);
}

.chartContainer {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  border-bottom: 1px solid var(--tile-border);
  margin-top: 1rem;
  padding-top: 1rem;
  position: relative;
}

.chartBar {
  background-color: var(--primary-color);
  flex: 1;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease;
}

.chartAxis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: var(--timestamp-color);
  font-size: 0.8rem;
}

.chartLegend {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.chartLegendItem {
  font-size: 0.75rem;
  color: var(--timestamp-color);
}

.shareStatsButton {
  display: block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.2s;
  padding-top: 1rem;
}

.shareStatsButton:hover {
  background-color: var(--secondary-color);
  /* Removed transform and box-shadow to prevent movement */
}

.noDataMessage {
  color: var(--timestamp-color);
  text-align: center;
  padding: 2rem 0;
  font-style: italic;
}

/* Emoji Statistics Section */
.emojiStatsSection {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tile-border);
}

.emojiStatsHeader {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  color: var(--title-color);
}

.emojiGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.emojiCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--input-background);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--tile-border);
}

.emojiDisplay {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.emojiCount {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .emojiGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .emojiDisplay {
    font-size: 1.3rem;
  }
  
  .emojiCount {
    font-size: 0.85rem;
  }
}

.headerActions {
  display: flex;
  gap: 1rem;
}

@media (max-width: 600px) {
  /* Header styles */
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .headerContent {
    flex: 1 1 100%;
    text-align: left;
  }
  
  .headerActions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .profileHeader {
    text-align: left;
  }
  
  .profileInfo {
    align-items: flex-start;
  }

  .profileText {
    margin-left: 0px;
  }
  
  /* Content alignment for feed items */
  .contentLeft {
    align-items: center;
    display: block;
  }
}

.backButton {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.backButton:hover {
  background-color: var(--secondary-color);
  /* Removed transform and box-shadow to prevent movement */
}

.error {
  background-color: var(--error-background);
  color: var(--error-color);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.loader {
  border: 4px solid var(--input-background);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.smallLoader {
  border: 3px solid var(--input-background);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  margin-top: 0.5rem;
  display: inline-block;
}

.profileLoading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.smallError {
  color: var(--timestamp-color);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.3rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.feedList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.feedItem {
  background-color: var(--card-background);
  border: 1px solid var(--tile-border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feedItem:hover {
  /* Removed transform and increased box-shadow to prevent movement */
  box-shadow: 0 2px 5px var(--shadow-color);
}

@media (max-width: 600px) {
  .feedItem {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px var(--shadow-color);
  }
  
  .feedList {
    gap: 0.5rem;
  }
  
  .feedItem:hover {
    transform: none;
    box-shadow: 0 1px 3px var(--shadow-color);
  }
  
  .content {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .contentLeft {
    display: block;
    width: 100%;
  }
  
  /* First line: emoji and username */
  .emoji {
    display: inline-block;
    font-size: 1.3rem;
    vertical-align: middle;
    margin-right: 0.5rem;
  }
  
  .author {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* Smaller on mobile */
  }
  
  /* Second line: status text */
  .text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-top: 0.3rem;
    margin-left: 0.5rem;
    padding-bottom: 0.2rem;
  }
  
  /* Third line: timestamp */
  .timestamp {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
    color: #888;
    padding-left: 0.5rem;
  }
}

.content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.contentLeft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.userLine {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.author {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.text {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-color);
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.timestamp {
  font-size: 0.85rem;
  color: var(--timestamp-color);
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .content {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .contentLeft {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0;
  }
  
  .timestamp {
    width: 100%;
    text-align: left;
    margin-top: 0;
    padding-left: 0rem;
    font-size: 0.8rem;
    color: var(--timestamp-color);
  }
  
  .emoji {
    font-size: 1.3rem;
    display: inline;
  }
  
  .text {
    font-size: 0.95rem;
    line-height: 1.3;
  }
}

.emptyState {
  text-align: center;
  padding: 2rem;
  background-color: var(--background-color);
  border-radius: 8px;
  border: 1px dashed var(--tile-border);
}