/* SagaSpot App Design - Common Styles */
:root {
  --primary-color: #3498db;
  --primary-light: #5dade2;
  --primary-dark: #2980b9;
  --secondary-color: #ff9f43;
  --secondary-light: #ffbe76;
  --secondary-dark: #e67e22;
  --text-color: #2d3436;
  --text-light: #636e72;
  --text-lighter: #b2bec3;
  --background-color: #fff;
  --background-alt: #f7f9fc;
  --border-color: #e2e8f0;
  --success-color: #00b894;
  --danger-color: #ff6b6b;
  --warning-color: #fdcb6e;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --border-radius: 16px;
  --card-radius: 16px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
}

/* Mobile App Frame */
.app-frame {
  width: 375px;
  height: 812px;
  background-color: var(--background-color);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  border: 10px solid #333;
}

/* Status Bar */
.status-bar {
  height: 44px;
  width: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
}

.status-bar .time {
  flex: 1;
}

.status-bar .icons {
  display: flex;
  gap: 5px;
}

.status-bar .icons i {
  font-size: 14px;
}

/* App Header */
.app-header {
  height: 65px;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
  font-size: 22px;
  font-weight: 600;
}

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

.app-header .back-button {
  margin-right: 10px;
}

/* Content Area */
.content {
  height: calc(100% - 149px); /* Subtract status bar, header, and bottom nav */
  overflow-y: auto;
  padding: 20px;
  background-color: var(--background-alt);
}

/* Bottom Navigation */
.bottom-nav {
  height: 65px;
  width: 100%;
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 11px;
  width: 60px;
  height: 60px;
  transition: var(--transition);
}

.nav-item i {
  font-size: 24px;
  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Cards */
.card {
  background-color: var(--background-color);
  border-radius: var(--card-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  overflow: hidden;
  border: none;
}

.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 16px;
}

.card-content {
  padding: 20px;
}

/* Trip Card */
.trip-card {
  height: 200px;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.trip-card:hover {
  transform: translateY(-5px);
}

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

.trip-card .trip-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  padding: 25px 20px;
  color: white;
}

.trip-card .trip-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.trip-card .trip-date {
  font-size: 14px;
  opacity: 0.9;
}

/* Memory Card */
.memory-card {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.memory-card:hover {
  background-color: var(--background-alt);
}

.memory-card:last-child {
  border-bottom: none;
}

.memory-card .memory-image {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 15px;
  overflow: hidden;
}

.memory-card .memory-content {
  flex: 1;
}

.memory-card .memory-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.memory-card .memory-details {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.memory-card .memory-details i {
  margin-right: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #ff6a4a;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-floating {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: var(--transition);
}

.btn-floating:hover {
  transform: scale(1.05);
  background-color: var(--secondary-dark);
}

.btn-floating i {
  font-size: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

/* Map View */
.map-container {
  height: 180px;
  width: 100%;
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
}

.map-pin i {
  font-size: 30px;
  color: var(--primary-color);
}

.map-pin.active i {
  color: var(--secondary-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  height: 100%;
  width: 2px;
  background-color: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-date {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.timeline-content {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 15px;
  box-shadow: var(--box-shadow);
}

/* Utilities */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-light {
  color: var(--text-light);
}

.text-center {
  text-align: center;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

.p-20 {
  padding: 20px;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-10 {
  gap: 10px;
}

.w-100 {
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.slide-up {
  animation: slideUp 0.4s ease;
}

/* Placeholder for images */
.placeholder-image {
  background-color: var(--background-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 30px;
  width: 100%;
  height: 100%;
}

/* Viewer for design mockups */
.design-viewer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.viewer-header {
  background-color: #333;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.viewer-title {
  font-size: 20px;
  font-weight: 600;
}

.viewer-nav {
  display: flex;
  background-color: #444;
  overflow-x: auto;
  white-space: nowrap;
}

.viewer-nav-item {
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.viewer-nav-item:hover {
  background-color: #555;
}

.viewer-nav-item.active {
  background-color: var(--primary-color);
}

.viewer-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.viewer-sidebar {
  width: 250px;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  padding: 15px;
}

.viewer-main {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.viewer-iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* Add memory modal */
.add-memory-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  width: 90%;
  max-height: 80%;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Photo view component */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quick action components */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.action-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  margin-bottom: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Profile avatar */
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* User stats component */
.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-light);
  font-size: 14px;
}

/* Tags */
.tag {
  background-color: var(--background-alt);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
} 