/* Base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Righteous', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 22px;
  color: #2d2d2d;
  overflow: hidden;
}

@font-face {
  font-family: 'Righteous';
  src: url('assets/Righteous-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1 { 
  font-size: 48px; 
  margin-bottom: 0;
}

h2 { 
  font-size: 24px; 
  margin: 0 0 10px; 
}

.gradient-text {
  background: linear-gradient(90deg, #8B4513, #D2B48C);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 48px;
  margin: 0;
}

/* Landing page */
.landingPage {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5E8C7;
  padding: 20px;
}

.landingContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hidden { 
  display: none !important; 
}

/* Loader */
.loader {
  width: 180px; 
  height: 150px;
  background-image: url('/assets/loader.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Top bar (global) */
.top-bar.global {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Home background */
#home {
  background:
    linear-gradient(to top, rgb(210,153,194) 0%, rgb(254,249,215) 100%);
  background-size: auto;
  background-repeat: repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.brand { 
  font-size: 30px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  padding: 8px 10px;
  border-radius: 12px;
}

.icon-btn:hover {
  background: #E0D4B3;
}

/* Rest */
.kofi {
  width: 180px; 
  height: 150px;
  background-image: url('/assets/kofi.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Bottom controls (global) */
.control-bar.global {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px 14px;
  box-sizing: border-box;
}

.music, .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.music button, .actions button {
  font-size: 20px;
}

.nav {
  display: flex;
  background-color: #D2B48C;
  border-radius: 50px;
  gap: 20px;
  padding: 10px 20px;
}

.nav a {
  color: #2d2d2d;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 30px;
  transition: color .3s, background-color .3s;
}
.nav a:hover {
  color: #8B4513;
  background-color: #E0D4B3;
}

/* Center content */
.center-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px); 
}

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

.center-content p:first-child {
  font-size: 24px;
  margin: 0;
}

.clock {
  font-size: 48px;
  font-weight: bold;
  margin: 10px 0;
  color: #8B4513;
}

.quote {
  text-align: center;
  margin: 20px 0 80px;
  padding: 0 20px;
}

/* Modal base */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0,0,0,.5);
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.modal.active {
  display: flex;
}

.modal-content {
  background-color: #2d2d2d;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: min(92vw, 420px);
  text-align: left;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.modal-actions button {
  background: #D2B48C;
  color: #2d2d2d;
  border-radius: 8px;
}

.modal-actions button:hover {
  background: #E0D4B3;
}

/* To-Do styling */
.todo {
  padding-bottom: 12px;
}

.todo-inputs {
  display: flex;
  gap: 8px;
}

.todo-inputs input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #1f1f1f;
  color: #fff;
}

.todo-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 40vh;
  overflow: auto;
}

.todo-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #1f1f1f;
  margin-bottom: 8px;
}

.todo-item.done { 
  opacity: 0.7; 
  text-decoration: line-through; 
}

.todo-item button { 
  border-radius: 8px; 
}

.todo-item .remove { 
  opacity: .8; 
}

/* Plant panel */
.plant-panel {
  position: fixed;
  right: 16px;
  top: 72px;
  z-index: 40;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  padding: 14px;
  display: none;
}

.plant-panel.open { 
  display: block; 
}

.close-x {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 24px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}

.plant-title { 
  margin: 6px 0 10px; 
  font-size: 20px; 
}

.plant-box { 
  display: grid; 
  grid-template-columns: 100px 1fr; 
  gap: 12px; 
  align-items: center; 
}

.plant-box img { 
  width: 100px; 
  height: 100px; 
  object-fit: contain; 
}

.plant-progress-bar { 
  height: 10px; 
  background: #eee; 
  border-radius: 999px; 
  overflow: hidden; 
}

.plant-progress-bar span { 
  display: block; 
  height: 100%; 
  width: 0%; 
  background: #8B4513; 
  transition: width .3s ease; 
}

.plant-stats { 
  font-size: 14px; 
  margin-top: 8px; 
  color: #444; 
}

/* Buttons / Chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #D2B48C;
  color: #2d2d2d;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.pill:hover { 
  background: #E0D4B3; 
}

.pill.small { 
  padding: 8px 12px; 
  font-size: 16px; 
}

.link-btn {
  background: none;
  border: none;
  color: #8B4513;
  cursor: pointer;
  font-size: 18px;
  margin-top: 10px;
}

.link-btn:hover { 
  text-decoration: underline; 
}

.chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 16px;
  background: #eee;
  color: #333;
  text-decoration: none;
  margin: 0 4px;
}

.chip.active { 
  background: #D2B48C; 
  color: #2d2d2d; 
}

/* Timer UI */
.timer-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 40px;
}

.ring {
  --p: 0; /* progress 0..100 */
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    conic-gradient(#8B4513 calc(var(--p)*1%), #f0e6d0 0),
    radial-gradient(circle 54% at 50% 50%, transparent 98%, #f0e6d0 0);
  box-shadow: 0 10px 20px rgba(0,0,0,.08) inset;
}

.timer-face {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.timer-label { 
  font-size: 18px; 
  color: #444; 
}

.timer-time { 
  font-size: 56px; 
  color: #8B4513; 
  line-height: 1; 
}

.timer-controls { 
  display: flex; 
  gap: 10px; 
  margin-top: 6px; 
}

.timer-modes { 
  margin-top: 6px; 
}

/* Responsive */
@media (max-width: 480px) {
  .timer-time { 
    font-size: 48px; 
  }

  .ring { 
    width: 220px; 
    height: 220px; 
  }
}