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

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0d1b38;
  --bg-card: rgba(13, 27, 56, 0.95);
  --accent-blue: #1e88e5;
  --accent-red: #ff4757;
  --accent-green: #4caf50;
  --text-primary: #ffffff;
  --text-secondary: #90a4ae;
  --text-muted: #607d8b;
  --border-color: rgba(100, 181, 246, 0.2);
  --gradient-blue: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 20px;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn, .more-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent-blue);
}

.back-btn:hover, .more-btn:hover {
  background: rgba(30, 136, 229, 0.1);
}

.header-title {
  font-size: 18px;
  font-weight: 700;
}

/* TABS - Ба таги header */
.tabs-section {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(10, 22, 40, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.tabs-section::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(30, 136, 229, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(30, 136, 229, 0.2);
}

.tab-btn.active {
  background: var(--gradient-blue);
  color: white;
  border-color: transparent;
}

.tab-btn span {
  font-size: 16px;
}

/* CONTENT - Уфуқӣ */
.content-container {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* POST CARD - УФУҚӢ */
.post-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
  display: flex;
  flex-direction: row;
  height: 140px;
  position: relative;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card:active {
  transform: scale(0.98);
}

/* Акс - тарафи чап, квадрат */
.post-image-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-blue);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

/* Тугмаи несткунӣ */
.post-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(244, 67, 54, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.post-remove:hover {
  transform: scale(1.1);
}

/* Маълумот - тарафи рост */
.post-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.post-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.post-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 4px;
}

.post-location span {
  font-size: 14px;
  color: var(--accent-red);
}

.post-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* Просмотр ва Звонки - дар таги */
.post-stats-bottom {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.stat-item-bottom {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-item-bottom span {
  font-size: 16px;
}

/* SHORT CARD - УФУҚӢ (ҳамон шакл) */
.short-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
  display: flex;
  flex-direction: row;
  height: 140px;
  position: relative;
}

.short-card:active {
  transform: scale(0.98);
}

.short-preview {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: #000;
}

.short-preview video,
.short-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.short-play-icon span {
  font-size: 48px;
  color: white;
  opacity: 0.9;
}

.short-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(244, 67, 54, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.short-info {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.short-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.short-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
}

.short-username {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.short-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.short-desc {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-stats-bottom {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.short-stats-bottom .stat-item-bottom span {
  color: var(--accent-red);
}

/* EMPTY STATE */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.empty-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 71, 87, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 71, 87, 0.3);
}

.empty-icon span {
  font-size: 48px;
  color: var(--accent-red);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.browse-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--gradient-blue);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* LOADING */
.loading-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card {
  height: 140px;
  background: linear-gradient(90deg, rgba(30, 136, 229, 0.1) 25%, rgba(30, 136, 229, 0.2) 50%, rgba(30, 136, 229, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 360px) {
  .post-card,
  .short-card {
    height: 120px;
  }
  
  .post-image-container,
  .short-preview {
    width: 120px;
    height: 120px;
  }
  
  .post-price,
  .short-title {
    font-size: 16px;
  }
}

