/* ============================================
   Katie Dugan — Personal Dashboard
   Full-width, no sidebar, zero external deps
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #e0f2fe;
  --bg-card: #ffffff;
  --bg-card-hover: #bae6fd;
  --text-primary: #075985;
  --text-secondary: #0284c7;
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --border: #7dd3fc;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --col-width: 200px;
  --col-gap: 12px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* --- Layout --- */
.main-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Dashboard --- */
.dashboard {
  padding: 20px 20px 12px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  flex: 1;
}

.greeting {
  margin-bottom: 16px;
}

.greeting h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.greeting p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* --- Card Grid --- */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--col-width), 1fr));
  gap: var(--col-gap);
}

/* --- Stacked cards (Weather + Traffic) --- */
.link-card-stack {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: var(--col-gap);
  min-height: 280px;
}

.link-card-stack .link-card-half {
  flex: 1;
  min-height: 0;
}

/* 60:40 split for Weather/Traffic and Email/Local stacks */
.link-card-stack .link-card-half:first-child {
  flex: 3;
}

.link-card-stack .link-card-half:last-child {
  flex: 2;
}

.link-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.link-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.link-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--border);
}

.link-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.link-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link-card-list {
  list-style: none;
  padding: 2px 0;
}

.link-card-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.link-card-list li a:hover {
  color: var(--accent);
  background: var(--bg-card-hover);
}

.link-card-list li a .card-link-icon {
  width: 12px;
  height: 12px;
  opacity: 0.35;
  flex-shrink: 0;
}

/* --- Footer --- */
.content-footer {
  padding: 10px 24px;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .dashboard {
    padding: 12px 10px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .greeting h2 {
    font-size: 1.1rem;
  }

  .greeting p {
    font-size: 0.75rem;
  }


}

/* --- Focus visible for accessibility --- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


