/* /hub/assets/css/hub.css
   Delta Ops Hub — Global Styles
   Brand: Delta Home Services
*/

/* =========================
   CSS RESET / BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background-color: #f6f7f9;
  color: #222;
  line-height: 1.5;
}

/* =========================
   BRAND COLORS
   ========================= */

:root {
  --delta-pink: #ff1493;
  --delta-blue: #1493ff;
  --delta-green: #14ff80;

  --gray-900: #1f2933;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;

  --bg-white: #ffffff;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
}

/* =========================
   LINKS & TEXT
   ========================= */

a {
  color: var(--delta-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em 0;
  color: var(--gray-900);
}

p {
  margin: 0 0 1em 0;
  color: var(--gray-700);
}

/* =========================
   LAYOUT
   ========================= */

.hub-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */

.hub-sidebar {
  width: 260px;
  background-color: var(--bg-white);
  border-right: 1px solid var(--gray-300);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.hub-brand {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.hub-brand img {
  max-height: 42px;
}

.hub-brand-title {
  font-size: 18px;
  font-weight: 700;
  margin-left: 10px;
  color: var(--delta-pink);
}

/* ---------- NAV ---------- */

.hub-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-nav li {
  margin-bottom: 6px;
}

.hub-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--gray-900);
}

.hub-nav a:hover {
  background-color: var(--gray-100);
  text-decoration: none;
}

.hub-nav a.active {
  background-color: rgba(20, 147, 255, 0.12);
  color: var(--delta-blue);
}

/* ---------- MAIN CONTENT ---------- */

.hub-main {
  flex: 1;
  padding: 30px;
}

/* =========================
   HEADER BAR
   ========================= */

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.hub-title {
  font-size: 28px;
  font-weight: 700;
}

.hub-subtitle {
  color: var(--gray-500);
  font-size: 15px;
}

/* =========================
   USER INFO (TOP RIGHT)
   ========================= */

.user-info {
  display: none;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.user-name {
  font-weight: 600;
  color: var(--gray-900);
}

.signout-button {
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.signout-button:hover {
  background-color: var(--gray-100);
}

/* =========================
   CARDS (LANDING PAGES)
   ========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--gray-500);
}

/* Accent bars */
.card.accent-pink {
  border-top: 4px solid var(--delta-pink);
}

.card.accent-blue {
  border-top: 4px solid var(--delta-blue);
}

.card.accent-green {
  border-top: 4px solid var(--delta-green);
}

/* =========================
   LOGIN / AUTH UI
   ========================= */

.signin-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.auth-message {
  margin: 20px 0 30px;
  font-size: 16px;
}

.error-message {
  display: none;
  background-color: #f9f2f2;
  border: 1px solid #ebccd1;
  color: #a94442;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .hub-shell {
    flex-direction: column;
  }

  .hub-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-300);
  }

  .hub-main {
    padding: 20px;
  }

  .hub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
