/**
 * HabitFlow - App Preview & Phone Shell Component
 * Highly realistic mobile device mockup, native status bar, and bottom navigation bar.
 */

.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.phone-frame {
  width: 100%;
  max-width: 380px;
  background-color: var(--surface);
  border: 8px solid var(--surface-muted);
  border-radius: 40px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

[data-theme="dark"] .phone-frame {
  border-color: #1e293b;
}

/* Speaker Notch & Status Bar */
.phone-notch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 6px;
  background-color: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.phone-notch-center {
  width: 80px;
  height: 18px;
  background-color: var(--surface-secondary);
  border-radius: var(--radius-full);
}

.phone-screen-content {
  padding: var(--space-4) var(--space-4) var(--space-6);
  flex: 1;
  background-color: var(--background);
}

/* App Header Inside Phone */
.app-header-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.greeting-text {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.user-name-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Today's Progress Card */
.progress-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.progress-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-percentage {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.progress-streak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}

.streak-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ea580c;
}

.streak-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Habits List Inside Phone */
.app-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-habit-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.preview-habit-card:last-child {
  margin-bottom: 0;
}

.preview-habit-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.check-icon-circle.done {
  background-color: var(--primary);
  color: #ffffff;
}

.check-icon-circle.todo {
  border: 2px solid var(--text-muted);
  color: transparent;
}

.habit-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.habit-name.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.habit-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* App Bottom Navigation Bar */
.app-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-bottom));
  position: relative;
  z-index: 10;
}

.nav-item-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 4px;
}

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

.nav-item-tab svg {
  width: 20px;
  height: 20px;
}

.nav-add-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
  margin-top: -16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 3px solid var(--surface);
}

.nav-add-btn:hover {
  transform: translateY(-2px) scale(1.05);
}
