/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  color: #ffffff;
  background: #000;
  overflow-x: hidden;
}

/* ========== BACKGROUND ========== */
#background {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: -3;
  transition: background-image 0.4s ease-out;
}

.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
  backdrop-filter: blur(6px);
  z-index: -2;
}

/* ========== COVER PAGE ========== */
#coverScreen {
  position: fixed;
  inset: 0;
  background-image: url("cover.jpg");
  background-size: cover;
  background-position: center 20%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: coverFadeIn 0.7s ease-out;
}

.cover-center {
  text-align: center;
  backdrop-filter: blur(8px);
  padding: 40px 70px;
  border-radius: 28px;
  background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.7));
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.cover-title {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cover-subtitle {
  font-size: 22px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cover-btn {
  padding: 14px 32px;
  font-size: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.75);
}

/* Fade-out when we add .hide */
#coverScreen.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ========== HEADER ========== */
header {
  text-align: center;
  padding: 24px 0 12px;
}

header h1 {
  font-size: 32px;
  font-weight: 500;
}

header p {
  margin-top: 4px;
  font-size: 16px;
  opacity: 0.9;
}

/* ========== MAIN LAYOUT ========== */
main {
  width: 95%;
  max-width: 1400px;
  margin: 10px auto 40px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
}

.tasks-card {
  grid-column: span 2;
}

/* ========== GLASS CARDS ========== */
.glass {
  background: rgba(15, 15, 15, 0.55);
  border-radius: 26px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  backdrop-filter: blur(22px);
}

/* subtle entrance animation */
.card-animate {
  animation: cardIn 0.6s ease-out;
}

/* ========== CALENDAR ========== */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#monthYear {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.16);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

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

.calendar-grid div {
  padding: 10px 0;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(10px);
}

.calendar-grid div:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.calendar-grid .inactive {
  opacity: 0.45;
  cursor: default;
}

.calendar-grid .inactive:hover {
  background: rgba(255,255,255,0.05);
  transform: none;
  box-shadow: none;
}

/* Selected day – premium toggle look */
.calendar-grid .active {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  font-weight: 600;
  transform: translateY(-1px) scale(1.04);
}

/* ========== JOURNAL ========== */
.journal-card h2,
.tasks-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

#journalEntry {
  width: 100%;
  height: 230px;
  border-radius: 16px;
  border: none;
  margin-top: 6px;
  padding: 14px;
  font-size: 15px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  resize: vertical;
}

#journalEntry::placeholder {
  color: rgba(255,255,255,0.65);
}

.btn-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

/* pill buttons */
.pill-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.18s ease, transform 0.12s ease;
}

.pill-btn.primary {
  background: rgba(255,255,255,0.25);
}

.pill-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

/* ========== TASKS ========== */
.task-input {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.task-input input {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.task-input input::placeholder {
  color: rgba(255,255,255,0.6);
}

#taskList {
  list-style: none;
  margin-top: 14px;
}

#taskList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #ffffff;
}

.t-text {
  flex: 1;
  font-size: 14px;
}

.task-done .t-text {
  text-decoration: line-through;
  opacity: 0.7;
}

.delete-btn {
  background: rgba(255, 75, 75, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  .tasks-card {
    grid-column: span 1;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes coverFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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