/* Feature Section UI Mockups - Beautiful CSS Previews */

/* Base Mockup Styles */
.ui-mockup {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 380px;
}

/* ========================================
   CALENDAR MOCKUP - Smart Planning
   ======================================== */
.calendar-mockup {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mockup-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.mockup-nav {
  display: flex;
  gap: 12px;
}

.nav-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 6px;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 20px;
}

.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 0;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #475569;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-day:hover {
  background: #f1f5f9;
}

.calendar-day.dim {
  color: #cbd5e1;
}

.calendar-day.today {
  background: #4f46e5;
  color: white;
  font-weight: 600;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.calendar-day.has-event.blue::after { background: #3b82f6; }
.calendar-day.has-event.green::after { background: #22c55e; }
.calendar-day.has-event.purple::after { background: #8b5cf6; }

.calendar-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.task-dot.blue { background: #3b82f6; }
.task-dot.green { background: #22c55e; }

/* ========================================
   TIMER MOCKUP - Focus Tools
   ======================================== */
.timer-mockup {
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timer-display {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
}

.timer-ring {
  width: 100%;
  height: 100%;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.timer-time {
  font-size: 36px;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: -1px;
}

.timer-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.timer-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.timer-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timer-btn.pause {
  background: #dc2626;
  color: white;
}

.timer-btn.reset {
  background: #f1f5f9;
  color: #64748b;
}

.timer-stats {
  display: flex;
  gap: 40px;
}

.timer-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-stats .stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.timer-stats .stat-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ========================================
   GOALS MOCKUP - Goal Tracking
   ======================================== */
.goals-mockup {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goal-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.goal-card.small {
  padding: 14px 16px;
}

.goal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.goal-card.small .goal-header {
  margin-bottom: 10px;
}

.goal-icon {
  font-size: 20px;
}

.goal-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.goal-percent {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar.sm {
  height: 6px;
}

.progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-fill.green { background: #22c55e; }
.progress-fill.purple { background: #8b5cf6; }

.progress-text {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.goal-milestones {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.milestone {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}

.milestone.done {
  background: #dcfce7;
  color: #16a34a;
}

.milestone.active {
  background: #dbeafe;
  color: #2563eb;
}

/* ========================================
   CHAT MOCKUP - AI Assistant
   ======================================== */
.chat-mockup {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.chat-msg {
  display: flex;
  gap: 10px;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-msg.user .msg-bubble {
  background: #1e293b;
  color: white;
  border-radius: 16px 16px 4px 16px;
}

.chat-msg.ai {
  align-items: flex-start;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-msg.ai .msg-bubble {
  background: white;
  color: #475569;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.msg-bubble {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}

.msg-bubble strong {
  color: #1e293b;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-placeholder {
  font-size: 14px;
  color: #94a3b8;
}

.send-btn {
  width: 32px;
  height: 32px;
  background: #f59e0b;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ========================================
   ANALYTICS MOCKUP
   ======================================== */
.analytics-mockup {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.analytics-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.analytics-badge {
  background: #dcfce7;
  color: #16a34a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.chart-area {
  margin-bottom: 24px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding: 0 10px;
}

.bar {
  width: 36px;
  background: #e9d5ff;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: all 0.3s ease;
}

.bar:hover {
  background: #c4b5fd;
}

.bar.active {
  background: #8b5cf6;
}

.bar span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

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

.analytics-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.analytics-stat .stat-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ========================================
   INTEGRATIONS MOCKUP
   ======================================== */
.integrations-mockup {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.integrations-header {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.integration-item:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.integration-item.connected {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.integration-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.integration-icon.google { background: #fff; }
.integration-icon.notion { background: #fff; }
.integration-icon.slack { background: #fff; }

.integration-info {
  flex: 1;
}

.integration-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.integration-status {
  font-size: 12px;
  color: #22c55e;
  margin-top: 2px;
}

.integration-status.dim {
  color: #94a3b8;
}

.integration-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.integration-badge.connected {
  background: #22c55e;
  color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .ui-mockup {
    padding: 20px;
    min-height: 320px;
  }
  
  .timer-display {
    width: 150px;
    height: 150px;
  }
  
  .timer-time {
    font-size: 28px;
  }
  
  .bar-chart {
    height: 100px;
  }
  
  .bar {
    width: 28px;
  }
}
