/* Reset links */
a { text-decoration: none; color: inherit; }

/* Theme & variables */
:root {
  --bg-from-light: #f7fafd;
  --bg-to-light:   #eef2f7;
  --bg-from-dark:  #1a1a1a;
  --bg-to-dark:    #2a2a2a;
  --text-light:    #1c3f67;
  --text-dark:     #f0f0f0;
  --sidebar-light: #f2f4f8;
  --sidebar-dark:  #1e1e1e;
  --btn-bg:        #0a285f;
  --btn-hover:     #123c85;
  --border-subtle: #ccc;
  --card-bg-light: rgba(255,255,255,0.8);
  --card-bg-dark:  rgba(255,255,255,0.05);
}
[data-theme="light"] {
  --bg-from: var(--bg-from-light);
  --bg-to:   var(--bg-to-light);
  --text:    var(--text-light);
  --sidebar: var(--sidebar-light);
}
[data-theme="dark"] {
  --bg-from: var(--bg-from-dark);
  --bg-to:   var(--bg-to-dark);
  --text:    var(--text-dark);
  --sidebar: var(--sidebar-dark);
}

/* Global reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; }
body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-from), var(--bg-to));
  color: var(--text);
}

/* Sidebar */
.sidebar {
  background: var(--sidebar);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 2px 0 6px rgba(0,0,0,0.05);
}
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
nav.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
nav.nav a {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
nav.nav a.bold { font-weight: 700; }
nav.nav a:hover { color: var(--btn-hover); }

/* Bottom section */
.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* increased spacing */
}
.bottom > div {
  color: #999; /* match tip-line color */
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 30px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.button:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.button.subtle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  padding: 0.8rem 1.6rem;
}
.button.subtle:hover {
  background: rgba(10,40,95,0.1);
}

/* Main & Card */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}
.card {
  max-width: 800px;
  width: 100%;
  background: var(--card-bg-light);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
}
[data-theme="dark"] .card {
  background: var(--card-bg-dark);
}
h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  text-align: center;
}
p {
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.tip-line {
  text-align: center;
  color: #999;
  margin-top: 2rem;
}

/* Button-group centering */
.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 auto;
}

/* Command-palette */
.command-palette {
  position: fixed;
  top: 20%;
  left: calc(50% + 110px);
  transform: translateX(-50%);
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 400px;
  display: none;
  z-index: 9999;
  color: inherit;
}
[data-theme="dark"] .command-palette {
  background: #333;
}
.command-palette input {
  width:100%; padding:0.5rem; border-radius:8px;
  border:1px solid #ccc; background:transparent;
  color:inherit; margin-bottom:0.75rem;
}
.command-list { list-style:none; margin:0; padding:0; }
.command-list li.selected {
  background-color: #d0e0ff;
}
[data-theme="dark"] .command-list li.selected {
  background-color: #555;
}

/* Responsive */
@media (max-width:768px) {
  body { grid-template-columns: 1fr; }
  .sidebar {
	flex-direction: row;
	justify-content: space-around;
	padding: 1rem;
  }
  .bottom { display: none; }
  main { padding: 2rem 1rem; }
}
