/* ========================
   CSS RESET & BASICS
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================
   APP CONTAINER
   ======================== */
.app-container {
  width: 390px;
  height: 844px;
  background: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

/* ========================
   HEADER
   ======================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 25px 14px;
  z-index: 100;
}

.logo {
  width: 33px;
  height: 32px;
}

.page-title {
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.detail-header {
  padding-top: 52px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* ========================
   CONTENT
   ======================== */
.content {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 96px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 25px 20px;
  -webkit-overflow-scrolling: touch;
}

.content::-webkit-scrollbar {
  display: none;
}

.detail-content {
  padding: 0 25px 20px;
}

/* ========================
   PROFILE SECTION
   ======================== */
.profile-section {
  text-align: center;
  margin-bottom: 16px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
}

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

.profile-name {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 8px;
}

.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.profile-location span {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.profile-bio {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  max-width: 272px;
  margin: 0 auto;
  text-align: center;
}

/* ========================
   STATS
   ======================== */
.stats-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-item {
  flex: 1;
  background: white;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.stat-number {
  color: #f4694c;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  margin-bottom: 4px;
}

.stat-label {
  color: #999;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

/* ========================
   TABS
   ======================== */
.tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tabs-left {
  display: flex;
  gap: 32px;
}

.tab {
  color: #999;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  position: relative;
  padding-bottom: 4px;
}

.tab.active {
  color: #f4694c;
  font-weight: 500;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #f4694c;
  border-radius: 1px;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f4694c;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

/* ========================
   RESTAURANT CARDS
   ======================== */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.restaurant-card {
  background: white;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 16px;
  display: block;
}

.card-image {
  width: 130px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

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

.card-title {
  color: #333;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  margin-bottom: 8px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.card-location span {
  color: #999;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-rating .rating-label {
  color: #999;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.card-rating .rating-value {
  color: #f4694c;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  margin-left: auto;
}

/* ========================
   DETAIL PAGE
   ======================== */
.detail-image {
  margin-bottom: 12px;
  position: relative;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
}

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

.image-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  color: #333;
  font-size: 9px;
  font-weight: 400;
  line-height: 13.5px;
}

.detail-info-card {
  background: white;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.detail-title {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 6px;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.detail-location span {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.star-rating-section {
  margin-top: 6px;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.stars {
  display: flex;
  gap: 4px;
}

.star {
  width: 16px;
  height: 16px;
}

.star.filled path {
  fill: #f4694c;
  stroke: #f4694c;
}

.rating-number {
  color: #f4694c;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.rating-subtitle {
  color: #999;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

/* ========================
   REVIEW & CONTENT CARDS
   ======================== */
.review-card,
.what-i-ate-card,
.social-card {
  background: white;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.section-title {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  margin-bottom: 10px;
}

.review-text {
  color: #666;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
}

.read-more-btn {
  color: #f4694c;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  padding: 0;
  display: inline;
  margin-left: 4px;
}

.dish-name {
  color: #666;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  margin-bottom: 12px;
}

.ingredients-title {
  color: #999;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  margin-bottom: 12px;
}

.ingredients-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 5.5px 10px;
  color: #666;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.serving-info {
  color: #999;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.social-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-btn span {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.social-btn.saved span {
  color: #f4694c;
}

/* ========================
   BOTTOM NAVIGATION
   ======================== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: white;
  box-shadow: 0px -4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 28px 25px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.add-btn {
  width: 56px;
  height: 56px;
  background: #f4694c;
  box-shadow: 0px 8px 24px rgba(244, 105, 76, 0.4);
  border-radius: 50%;
  margin-top: -30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-indicator {
  width: 24px;
  height: 2px;
  background: #f4694c;
  border-radius: 1px;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #f4694c;
  border-radius: 50%;
}

.nav-item.active svg path {
  stroke: #f4694c;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 390px) {
  .app-container {
    width: 100%;
    height: 100vh;
    box-shadow: none;
  }
}
