@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1c1c1c;
  --border-color: #333333;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent-color: #ffffff;
  --accent-invert: #000000;
  --status-check: #ffffff;
  --status-miss: #888888;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-card: #ffffff;
  --border-color: #e4e4e7;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent-color: #09090b;
  --accent-invert: #ffffff;
  --status-check: #000000;
  --status-miss: #71717a;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.container {
  max-width: 1100px;
  width: 92%;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header & Nav */
.header {
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .header {
  background: rgba(255,255,255,0.75);
}

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

/* Logo: just a clean heart + names, no badge */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}

.logo-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.logo-names {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.logo-names .name-a {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-names .name-sep {
  opacity: 0.3;
  font-size: 0.75rem;
}

.logo-names .name-b {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* hide old badge */
.logo-badge { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Avatar pill – just avatar, no text */
.user-pill {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--border-color);
  padding: 2px;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.user-pill:hover {
  border-color: var(--text-primary);
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Theme toggle icon button */
.btn-icon {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--text-primary);
  color: var(--accent-invert);
  border-color: var(--text-primary);
}

/* Nav link pill */
.nav-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link-pill.active {
  background: var(--text-primary);
  color: var(--accent-invert);
  border-color: var(--text-primary);
}

/* Legacy btn-mono & btn-outline kept for forms */
.btn-mono {
  background-color: var(--text-primary);
  color: var(--accent-invert);
  border: 1px solid var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-mono:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-card);
}

/* Main Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: var(--transition);
  max-width: 100%;
}

.days-scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 4px;
}

.days-scroll-row::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Love Meter Bar */
.love-meter-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.love-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.love-meter-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.love-meter-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.love-bar-track {
  width: 100%;
  height: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin: 8px 0;
}

.love-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #333333 0%, #ffffff 100%);
  width: 50%;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 10px;
}

[data-theme="light"] .love-bar-fill {
  background: linear-gradient(90deg, #777777 0%, #000000 100%);
}

.love-meter-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

/* Profiles Header */
.couples-profile-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.profile-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--text-primary);
  padding: 2px;
  background: var(--bg-primary);
}

.profile-name {
  font-weight: 700;
  font-size: 1rem;
}

.heart-divider {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.6;
}

/* Daily Review Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.entry-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .entry-type-grid {
    grid-template-columns: 1fr;
  }
}

.entry-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
}

.entry-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-pos {
  background-color: var(--text-primary);
  color: var(--accent-invert);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-neg {
  background-color: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Calendar Styling */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.month-status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.month-status-pill.unlocked {
  background: var(--text-primary);
  color: var(--accent-invert);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .calendar-grid {
    gap: 3px;
  }
}

.calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 0;
}

.calendar-day {
  aspect-ratio: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  min-width: 0;
}

.calendar-day:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.calendar-day.today {
  border: 2px solid var(--text-primary);
}

.calendar-day.future {
  opacity: 0.4;
  cursor: default;
}

.calendar-day.future:hover {
  transform: none;
  border-color: var(--border-color);
}

.day-number {
  font-size: 0.75rem;
  font-weight: 600;
}

.status-indicators {
  display: flex;
  gap: 2px;
  font-size: 0.7rem;
}

.status-symbol {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
}

.symbol-check {
  background-color: var(--text-primary);
  color: var(--accent-invert);
}

.symbol-cross-red {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-weight: 900;
}

[data-theme="light"] .symbol-cross-red {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-height: 85vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.note-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.note-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.note-content {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.locked-notice {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-muted);
}

.locked-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Auth Page */
.auth-wrapper {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-avatar-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.auth-user-opt {
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}

.auth-user-opt.selected {
  opacity: 1;
  transform: scale(1.08);
}

.auth-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  object-fit: cover;
}

.auth-user-name {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Days Horizontal Scroll Row */
.days-scroll-row {
  display: flex;
  flex-direction: row;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.days-scroll-row::-webkit-scrollbar {
  height: 4px;
}
.days-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}
.days-scroll-row::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

