/* styles.css — Par Then Bar (Delco Cup) */
/* Cache-bust tip: bump ?v=NUMBER in each HTML <link> when you change this file */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;600;700;800&display=swap');

:root{
  --bg:#ffffff;
  --card:#ffffff;

  --primary:#202d50;       /* dark blue */
  --text-main:#77242e;     /* maroon */
  --text-muted:#97978b;    /* muted */
  --alert-red:#c1121f;

  --line:rgba(0,0,0,.08);
  --radius:16px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text-main);
  font-family:"Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{ -webkit-tap-highlight-color:transparent; }

/* ===== Layout ===== */
.container{
  max-width:560px;
  margin:0 auto;
  padding:16px 14px 96px; /* bottom padding for fixed nav */
}

/* ===== Logo ===== */
.logo-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:16px 0 22px;
}
.logo{
  width:clamp(120px, 22vw, 200px);
  height:auto;
  display:block;
}

/* ===== Typography ===== */
h1{
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:28px;
  margin:6px 0 10px;
  color:var(--text-main);
}
h2{
  font-size:18px;
  font-weight:900;
  margin:0 0 10px;
  color:var(--primary);
}
p{ margin:6px 0; line-height:1.35; }
.small{ font-size:14px; color:var(--text-muted); }

/* ===== Cards / Dividers ===== */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  margin:12px 0;
}
.divider{
  height:1px;
  background:var(--line);
  margin:12px 0;
}

/* ===== Buttons ===== */
.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn{
  min-height:48px;
  padding:0 16px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
}

.btn.secondary{
  background:#fff;
  color:var(--primary);
  border:2px solid var(--primary);
}

/* ===== Quick Links / Generic Rows ===== */
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.row:first-of-type{ border-top:0; }

.row-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.row-title{
  font-size:20px;
  font-weight:900;
  color:var(--primary);
}

.row-sub{
  font-size:18px;
  font-weight:900;
  color:var(--text-main);
}

/* ===== Dates + Events (WELCOME PAGE) ===== */
.date-line{
  font-size:18px;
  font-weight:900;
  color:var(--text-main);
}

.event-line{
  font-size:18px;
  font-weight:900;
  color:var(--primary);   /* dinners = blue */
  margin:6px 0;
}

.event-alert{
  font-size:18px;
  font-weight:900;
  color:var(--alert-red); /* drinks = red */
  margin:6px 0;
}

/* ===== Tee Times Page ===== */
/* Tee time + address */
.tee-detail{
  font-size:20px;
  font-weight:900;
  color:var(--alert-red); /* bold red */
  margin:8px 0 12px;
}

/* Bag caddies line */
.bag-caddies{
  font-size:20px;
  font-weight:900;
  color:var(--primary);   /* bold blue */
  margin:12px 0 6px;
}

/* Optional callouts (Friday / Delco Cup) */
.callout{
  margin:12px 0 8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(32,45,80,.06);
  color:var(--primary);
  font-weight:900;
}

/* Foursomes list */
.foursomes{
  margin-top:8px;
}

.f-row{
  display:grid;
  grid-template-columns:112px 1fr;
  gap:10px;
  padding:10px 0;
  border-top:1px solid var(--line);
}
.f-row:first-of-type{ border-top:0; }

.f-tag{
  font-weight:900;
  color:var(--primary);
}

.f-names{
  font-weight:900;
  color:var(--text-main);
}

.muted{ color:var(--text-muted); font-weight:800; }

/* ===== Photos (optional, if you’re using the live grid) ===== */
.photo-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  margin-top:14px;
}
.photo-grid img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  transition:transform .15s ease;
}
.photo-grid img:hover{ transform:scale(1.02); }
.photo-grid img:active{ transform:scale(.97); }

@media (min-width:600px){
  .photo-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (min-width:900px){
  .photo-grid{ grid-template-columns:repeat(5, 1fr); }
}
/* ===== Rules Page ===== */
.rules{
  margin:0;
  padding-left:18px;
}

.rules li{
  margin:14px 0;
  line-height:1.4;
  font-size:18px;
  font-weight:800;
  color:var(--text-main);
}

.rules li strong{
  color:var(--primary);
  font-weight:900;
}
/* ===== Bottom Nav ===== */
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  z-index:50;
}

.nav-inner{
  max-width:560px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:10px;
}

.nav-link{
  min-height:46px;
  padding:0 10px;
  border-radius:999px;
  background:#fff;
  border:2px solid var(--primary);
  color:var(--primary);
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

.nav-link.active{
  background:var(--primary);
  color:#fff;
}

@media (min-width:900px){
  .nav-link{ min-height:44px; font-size:14px; }
}
