/* ============================================================
   IceDrills — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@600;700;800&display=swap');

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

:root {
  --navy:       #0a1f3c;
  --navy2:      #0d2a50;
  --navy3:      #112f5a;
  --blue:       #1a56a0;
  --blue-light: #2a6bc4;
  --ice:        #e8f4ff;
  --ice2:       #d0e8fa;
  --red:        #cc1111;
  --red2:       #a30e0e;
  --gold:       #f0a500;
  --gold2:      #d99200;
  --white:      #ffffff;
  --gray:       #f2f5f9;
  --gray2:      #e4e9f0;
  --border:     #d0d8e8;
  --text:       #1a2535;
  --muted:      #6b7a94;
  --success:    #1a7a3c;
  --font:       'Barlow', sans-serif;
  --font-head:  'Barlow Condensed', sans-serif;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(10,31,60,0.10);
  --shadow-lg:  0 8px 32px rgba(10,31,60,0.16);
}

body {
  font-family: var(--font);
  background: var(--gray);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- NAV ---- */
#nav {
  display: flex;
  align-items: center;
  background: var(--navy);
  height: 50px;
  padding: 0 20px;
  gap: 0;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#nav .logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #F8FAFC;        /* "Drill" — bright off-white, sharp on dark nav */
  letter-spacing: .4px;
  margin-right: 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* "Flow" — premium gold */
#nav .logo span { color: #FBBF24; }
.nav-tab {
  height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition: all .15s;
  letter-spacing: .2px;
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-tab.active { color: #fff; border-bottom-color: var(--gold); }

/* ---- BUTTONS ---- */
.btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all .12s;
  line-height: 1;
  letter-spacing: .2px;
}
.btn:hover { background: var(--gray); border-color: #bbc5d6; }
.btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); }
.btn-green { background: var(--success); color: #fff; border-color: var(--success); }
.btn-green:hover { background: #155e2e; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold2); }
.btn-red { color: var(--red); border-color: #e8c0bc; }
.btn-red:hover { background: #fff5f5; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red2); }
.btn-danger:hover { background: var(--red2); }
.btn-icon {
  width: 32px; height: 32px; padding: 0;
  border-radius: 6px;
  justify-content: center;
  font-size: 15px;
}
.btn-circle {
  width: 30px; height: 30px; padding: 0;
  border-radius: 50%;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.btn-home { background: var(--red); color: #fff; border-color: #111; }
.btn-home:hover { background: var(--red2); }
.btn-away { background: var(--blue); color: #fff; border-color: #111; }
.btn-away:hover { background: var(--blue-light); }
.btn-puck { background: #1a1a2e; color: #fff; border-color: #111; }
.btn-puck:hover { background: #333; }

/* ---- FORMS ---- */
input[type="text"], input[type="search"], select, textarea {
  font-family: var(--font);
  font-size: 13px;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,31,60,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 420px;
  max-width: 95vw;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.modal-btns { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
