/* ============================================================================
   MEEYOUCALL MY PAGE - Premium Royal Design System
   ============================================================================
   Color Palette:
   - Primary Gold: #C9A96E (Royal champagne gold)
   - Secondary Gold: #B8956B (Deeper accent)
   - Dark Text: #1A1A2E (Deep navy black)
   - Muted Text: #6B7280 (Sophisticated gray)
   - Background: #FAFAFA (Soft off-white)
   - Card Background: #FFFFFF (Pure white)
   - Border: #E5E7EB (Subtle gray)
   - Success: #059669 (Emerald)
   ============================================================================ */

/* ============================================================================
   CSS RESET & BASE
   ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FAFAFA;
  color: #1A1A2E;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
   LOADING SCREEN / SKELETON
   ============================================================================ */
.skeleton-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F3EF 100%);
  z-index: 1000;
  overflow-y: auto;
  padding: 32px 16px 48px;
}

.skeleton-content {
  width: 100%;
  max-width: 680px;
}

/* Skeleton shimmer animation */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-text {
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Skeleton Profile Header */
.skeleton-header {
  text-align: center;
  padding: 32px 0 24px;
}

.skeleton-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-name {
  height: 28px;
  width: 180px;
  margin: 0 auto 8px;
}

.skeleton-username {
  height: 18px;
  width: 120px;
  margin: 0 auto 16px;
}

.skeleton-bio {
  height: 16px;
  width: 280px;
  margin: 0 auto 8px;
}

.skeleton-bio-short {
  height: 16px;
  width: 200px;
  margin: 0 auto;
}

/* Skeleton Stats */
.skeleton-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.skeleton-stat {
  text-align: center;
}

.skeleton-stat-value {
  height: 22px;
  width: 40px;
  margin: 0 auto 4px;
}

.skeleton-stat-label {
  height: 14px;
  width: 60px;
  margin: 0 auto;
}

/* Skeleton Tabs */
.skeleton-tabs {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  margin-top: 0;
  padding: 16px 0;
  gap: 8px;
}

.skeleton-tab {
  flex: 1;
  height: 36px;
  background: #F3F4F6;
  border-radius: 6px;
}

.skeleton-tab.active {
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Skeleton Posts */
.skeleton-posts {
  padding-top: 24px;
}

.skeleton-post {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #F3F4F6;
}

.skeleton-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skeleton-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.skeleton-post-info {
  flex: 1;
}

.skeleton-post-name {
  height: 16px;
  width: 120px;
  margin-bottom: 6px;
}

.skeleton-post-time {
  height: 12px;
  width: 60px;
}

.skeleton-post-content {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-post-content-short {
  height: 16px;
  width: 75%;
}

.skeleton-post-image {
  height: 200px;
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 12px;
}

/* Tab skeleton (for lazy-loaded tabs) */
.tab-skeleton {
  padding-top: 8px;
}

.tab-skeleton.media-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

@media (min-width: 640px) {
  .tab-skeleton.media-skeleton {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.skeleton-media-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-media-item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

/* Tab Loader (for infinite scroll) */
.tab-loader {
  padding: 24px;
  text-align: center;
}

.loader-dots {
  display: inline-flex;
  gap: 6px;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  background: #C9A96E;
  border-radius: 50%;
  animation: loader-bounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loader-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================================
   MAIN CONTENT CONTAINER
   ============================================================================ */
.main-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .main-content {
    padding: 0 24px;
    padding-bottom: 64px;
  }
}

/* ============================================================================
   PROFILE HEADER
   ============================================================================ */
.profile-header {
  padding: 32px 0 24px;
  text-align: center;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #C9A96E;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.15);
  background-color: #F5F3EF;
}

.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #C9A96E;
  background: linear-gradient(135deg, #F5F3EF 0%, #E8E4DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 600;
  color: #C9A96E;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.15);
}

.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #C9A96E 0%, #B8956B 100%);
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  color: white;
}

.profile-display-name {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.profile-username {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 16px;
  font-weight: 500;
}

.profile-bio {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 16px;
}

.profile-bio-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-bio-expand {
  font-size: 13px;
  color: #C9A96E;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
}

.profile-bio-expand:hover {
  color: #B8956B;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6B7280;
}

.profile-meta-item svg {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
}

.profile-meta-item a {
  color: #C9A96E;
  font-weight: 500;
}

.profile-meta-item a:hover {
  text-decoration: underline;
}

/* ============================================================================
   STATS ROW
   ============================================================================ */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 0;
}

.stat-item {
  text-align: center;
  cursor: default;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================================
   TAB NAVIGATION
   ============================================================================ */
.tab-navigation {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-button {
  flex: 1;
  padding: 16px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.tab-button:hover {
  color: #1A1A2E;
  background-color: #F9FAFB;
}

.tab-button.active {
  color: #C9A96E;
  border-bottom-color: #C9A96E;
}

/* ============================================================================
   TAB CONTENT
   ============================================================================ */
.tab-content {
  padding-top: 24px;
}

.tab-pane {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   POST CARD
   ============================================================================ */
.post-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #F3F4F6;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F5F3EF;
  flex-shrink: 0;
}

.post-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5F3EF 0%, #E8E4DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #C9A96E;
  flex-shrink: 0;
}

.post-author-info {
  flex: 1;
  min-width: 0;
}

.post-author-name {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A2E;
}

.post-author-username {
  font-size: 13px;
  color: #6B7280;
}

.post-timestamp {
  font-size: 13px;
  color: #9CA3AF;
  white-space: nowrap;
}

.post-content {
  font-size: 15px;
  color: #1A1A2E;
  line-height: 1.7;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Post Images Grid */
.post-images {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.post-images-grid {
  display: grid;
  gap: 2px;
}

.post-images-grid.single {
  grid-template-columns: 1fr;
}

.post-images-grid.double {
  grid-template-columns: 1fr 1fr;
}

.post-images-grid.triple {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.post-images-grid.quad {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.post-image-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #F5F3EF;
}

.post-image-item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.post-images-grid.single .post-image-item::before {
  padding-top: 56.25%;
}

.post-images-grid.triple .post-image-item:first-child {
  grid-row: span 2;
}

.post-images-grid.triple .post-image-item:first-child::before {
  padding-top: 100%;
}

.post-image-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-image-item:hover img {
  transform: scale(1.02);
}

/* Emoji Reactions */
.post-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F9FAFB;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #E5E7EB;
  transition: background 0.2s;
}

.reaction-badge:hover {
  background: #F3F4F6;
}

.reaction-emoji {
  font-size: 16px;
}

.reaction-count {
  font-weight: 600;
  color: #6B7280;
}

/* Pinned Post Badge */
.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 12px;
}

.pinned-badge svg {
  width: 14px;
  height: 14px;
}

/* ============================================================================
   REPLIES TAB
   ============================================================================ */
.reply-card {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #F3F4F6;
  overflow: hidden;
}

.reply-original-context {
  padding: 16px 20px;
  background: #F9FAFB;
  border-bottom: 1px solid #F3F4F6;
}

.reply-original-label {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reply-original-label span {
  color: #C9A96E;
  font-weight: 600;
}

.reply-original-snippet {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reply-content-wrapper {
  padding: 20px;
}

/* ============================================================================
   MEDIA TAB GRID
   ============================================================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

@media (min-width: 640px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.media-grid-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background-color: #F5F3EF;
}

.media-grid-item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.media-grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.media-grid-item:hover img {
  transform: scale(1.05);
}

.media-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.media-grid-item:hover::after {
  opacity: 1;
}

/* ============================================================================
   REACTIONS TAB
   ============================================================================ */
.reaction-activity-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #F3F4F6;
}

.reaction-activity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reaction-activity-emoji {
  font-size: 28px;
}

.reaction-activity-info {
  flex: 1;
}

.reaction-activity-action {
  font-size: 14px;
  color: #6B7280;
}

.reaction-activity-action strong {
  color: #1A1A2E;
  font-weight: 600;
}

.reaction-activity-time {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
}

.reaction-activity-preview {
  padding: 12px;
  background: #F9FAFB;
  border-radius: 8px;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon {
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
  color: #C9A96E;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}

.empty-state-message {
  font-size: 14px;
  color: #6B7280;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================================
   PROFILE NOT AVAILABLE PAGE
   ============================================================================ */
.profile-not-available {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F3EF 100%);
  z-index: 1000;
}

.not-available-content {
  text-align: center;
  padding: 32px;
  max-width: 400px;
}

.not-available-icon {
  margin-bottom: 24px;
  opacity: 0.8;
}

.not-available-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.not-available-message {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 8px;
}

.not-available-submessage {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.6;
}

/* ============================================================================
   NETWORK ERROR PAGE
   ============================================================================ */
.network-error {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F3EF 100%);
  z-index: 1000;
}

.error-content {
  text-align: center;
  padding: 32px;
}

.error-icon {
  margin-bottom: 24px;
  opacity: 0.7;
}

.error-title {
  font-size: 20px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}

.error-message {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 24px;
}

.retry-button {
  padding: 12px 32px;
  background: linear-gradient(135deg, #C9A96E 0%, #B8956B 100%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.retry-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.retry-button:active {
  transform: translateY(0);
}

/* ============================================================================
   LIGHTBOX MODAL
   ============================================================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================================
   COPY LINK BUTTON
   ============================================================================ */
.copy-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #6B7280;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.copy-link-button:hover {
  background: #F3F4F6;
  color: #1A1A2E;
}

.copy-link-button svg {
  width: 14px;
  height: 14px;
}

.copy-link-button.copied {
  color: #059669;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 480px) {
  .profile-avatar,
  .profile-avatar-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .profile-avatar-placeholder {
    font-size: 36px;
  }
  
  .profile-display-name {
    font-size: 22px;
  }
  
  .stats-row {
    gap: 32px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .tab-button {
    padding: 14px 4px;
    font-size: 13px;
  }
  
  .post-card {
    padding: 16px;
    border-radius: 12px;
  }
}

/* ============================================================================
   DARK MODE (OPTIONAL)
   ============================================================================ */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0F0F14;
    color: #E5E7EB;
  }
  
  .skeleton-screen,
  .profile-not-available,
  .network-error {
    background: linear-gradient(135deg, #0F0F14 0%, #1A1A2E 100%);
  }
  
  .skeleton-text,
  .skeleton-avatar,
  .skeleton-post-avatar,
  .skeleton-post-image,
  .skeleton-media-item,
  .skeleton-tab.active {
    background: linear-gradient(90deg, #2D2D44 25%, #3D3D5C 50%, #2D2D44 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
  }
  
  .skeleton-post {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
  
  .skeleton-stats {
    border-color: #2D2D44;
  }
  
  .skeleton-tabs {
    border-color: #2D2D44;
  }
  
  .skeleton-tab {
    background: #1A1A2E;
  }
  
  .main-content {
    background-color: transparent;
  }
  
  .profile-display-name,
  .post-author-name,
  .stat-value,
  .empty-state-title,
  .not-available-title,
  .error-title {
    color: #F9FAFB;
  }
  
  .profile-bio,
  .post-content {
    color: #D1D5DB;
  }
  
  .post-card,
  .reply-card,
  .reaction-activity-card {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
  
  .tab-navigation {
    background: #0F0F14;
    border-color: #2D2D44;
  }
  
  .tab-button:hover {
    background-color: #1A1A2E;
  }
  
  .stats-row {
    border-color: #2D2D44;
  }
  
  .reply-original-context,
  .reaction-activity-preview {
    background: #0F0F14;
  }
  
  .reaction-badge {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
  
  .lightbox-overlay {
    background: rgba(0, 0, 0, 0.96);
  }
  
  .reaction-picker {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
  
  .toast {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
  
  .owner-action-btn {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
}

/* ============================================================================
   OWNER ACTIONS (for logged-in profile owner)
   ============================================================================ */
.owner-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 8px;
}

.owner-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.owner-action-btn:hover {
  background: #F9FAFB;
  border-color: #C9A96E;
  color: #C9A96E;
}

.owner-action-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================================
   REACTION PICKER (floating UI for logged-in users)
   ============================================================================ */
.reaction-picker {
  position: fixed;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  z-index: 1500;
  transform-origin: center bottom;
  animation: picker-pop 0.2s ease-out;
}

@keyframes picker-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reaction-option {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.reaction-option:hover {
  transform: scale(1.25);
  background: #F3F4F6;
}

.reaction-option:active {
  transform: scale(1.1);
}

/* Interactive reaction badges on posts (for logged-in users) */
.reaction-badge.interactive {
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.reaction-badge.interactive:hover {
  transform: scale(1.05);
  background: #FEF3C7;
  border-color: #C9A96E;
}

.reaction-badge.interactive.selected {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: #C9A96E;
}

.reaction-badge.interactive.selected .reaction-count {
  color: #92400E;
}

/* Add reaction button */
.add-reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  color: #9CA3AF;
}

.add-reaction-btn:hover {
  background: #F3F4F6;
  border-color: #C9A96E;
  color: #C9A96E;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: #1A1A2E;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.toast.toast-exit {
  animation: toast-slide-out 0.2s ease-in forwards;
}

@keyframes toast-slide-out {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

.toast-success {
  border-left: 3px solid #059669;
}

.toast-error {
  border-left: 3px solid #DC2626;
}

.toast-info {
  border-left: 3px solid #C9A96E;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: #059669; }
.toast-error .toast-icon { color: #DC2626; }
.toast-info .toast-icon { color: #C9A96E; }

/* ============================================================================
   POST DETAIL PAGE STYLES
   ============================================================================ */
.post-detail-content {
  padding-top: 16px;
}

.back-nav {
  padding: 12px 0;
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: #C9A96E;
}

.back-link svg {
  width: 20px;
  height: 20px;
}

.post-detail-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #F3F4F6;
}

.post-detail-header {
  margin-bottom: 20px;
}

.post-author-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.post-author-link:hover .post-author-name-large {
  color: #C9A96E;
}

.post-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #C9A96E;
}

.post-avatar-placeholder-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5F3EF 0%, #E8E4DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #C9A96E;
  border: 2px solid #C9A96E;
}

.post-author-info-large {
  display: flex;
  flex-direction: column;
}

.post-author-name-large {
  font-size: 17px;
  font-weight: 600;
  color: #1A1A2E;
  transition: color 0.2s;
}

.post-author-username-large {
  font-size: 14px;
  color: #6B7280;
  margin-top: 2px;
}

.post-content-large {
  font-size: 18px;
  color: #1A1A2E;
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 20px;
}

.post-images-detail {
  margin-bottom: 20px;
}

.post-detail-meta {
  padding: 16px 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 16px;
}

.post-detail-time {
  font-size: 14px;
  color: #6B7280;
}

.post-reactions-detail {
  padding-top: 0;
  border-top: none;
}

/* Author Info Card */
.author-info-card {
  margin-top: 20px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.author-link {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.author-link:hover {
  background: #F9FAFB;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F5F3EF;
}

.author-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5F3EF 0%, #E8E4DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #C9A96E;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A2E;
}

.author-username {
  display: block;
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}

.author-link-arrow {
  color: #9CA3AF;
  flex-shrink: 0;
}

/* Replies Section */
.replies-section {
  margin-top: 24px;
}

.replies-heading {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

/* Dark mode for post detail */
@media (prefers-color-scheme: dark) {
  .post-detail-card,
  .author-info-card {
    background: #1A1A2E;
    border-color: #2D2D44;
  }
  
  .post-content-large,
  .post-author-name-large,
  .author-name,
  .replies-heading {
    color: #F9FAFB;
  }
  
  .post-detail-meta {
    border-color: #2D2D44;
  }
  
  .author-link:hover {
    background: #0F0F14;
  }
  
  .back-link:hover {
    color: #C9A96E;
  }
}
