/* Mobile App Specific Styles */

.mobile-app-container {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

/* Status bar styling */
.status-bar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)) 60%, hsl(var(--primary)) 100%);
}

/* Mobile app header */
.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile card styling */
.mobile-card {
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.mobile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Tab navigation */
.mobile-tab-nav {
  position: sticky;
  top: 73px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-tab-button {
  position: relative;
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-tab-button.active {
  color: hsl(var(--primary));
}

.mobile-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary)) 60%, hsl(var(--primary)) 100%);
}

/* Floating elements */
.floating-action-button {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)) 60%, hsl(var(--primary)) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-action-button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Bottom navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
  height: 64px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  transition: color 0.2s ease;
}

.mobile-nav-item.active {
  color: hsl(var(--primary));
}

.mobile-nav-item span {
  font-size: 10px;
  margin-top: 4px;
}

/* Touch feedback */
.mobile-touch-feedback:active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* Scrollable content */
.mobile-scroll-content {
  overflow-y: auto;
  padding-bottom: 80px;
  height: calc(100vh - 146px);
}

/* Story carousel */
.story-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.story-carousel::-webkit-scrollbar {
  display: none;
}

.story-item {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.story-item.active {
  border-color: #fbbf24;
  transform: scale(1.1);
}

.story-item.add-story {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Live indicator */
.live-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #ef4444;
  color: white;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.live-dot {
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* Quick actions grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quick-action-item {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-action-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-item:active {
  transform: scale(0.95);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.quick-action-item:hover .quick-action-icon {
  transform: scale(1.1);
}

/* Destination cards */
.destination-card {
  flex-shrink: 0;
  width: 256px;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.destination-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.destination-image {
  position: relative;
  height: 144px;
  overflow: hidden;
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent);
}

/* Trending badge */
.trending-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* Rating badge */
.rating-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Duration badge */
.duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 9999px;
}

/* Meetup cards */
.meetup-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.meetup-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Community post cards */
.community-post {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.community-post:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-image {
  position: relative;
  height: 192px;
  border-radius: 12px;
  overflow: hidden;
}

.post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

/* Tag styles */
.post-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1);
  color: hsl(var(--primary));
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Expert cards */
.expert-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.expert-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.expert-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.online-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
}

.specialty-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Service cards */
.service-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.4s ease-out;
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 375px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .destination-card {
    width: 240px;
  }

  .mobile-card {
    margin: 0 4px;
  }
}

@media (max-width: 320px) {
  .story-item {
    width: 70px;
    height: 70px;
  }

  .quick-action-icon {
    width: 40px;
    height: 40px;
  }

  .destination-card {
    width: 220px;
  }
}
