/* =========================================================
   UP Archery Association – Shared Site Styles
   Header / Nav / Ticker / Footer  (matches indianarchery.org style)
   ========================================================= */

:root {
  --navy: #0b1a3a;
  --navy-dark: #07122b;
  --gold: #ffcc00;
  --yellow: #ffd700;
  --red-btn: #e53935;
  --text: #1a1a1a;
  --muted: #555;
  --white: #ffffff;
  --page-bg: #f5f7fb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== TOP HEADER (dark navy) ========== */
.top-header {
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 10px 0;
  position: relative;
  z-index: 100;
}
.top-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand .logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(255,204,0,0.5);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text { min-width: 0; }
.brand-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-top: 2px;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.18s ease;
}
.btn-login {
  background: #fff;
  color: var(--navy);
}
.btn-login:hover { background: #f0f0f0; }
.btn-register {
  background: var(--red-btn);
  color: #fff;
}
.btn-register:hover { background: #c62828; }

/* ========== NAVIGATION ========== */
.nav-bar {
  background: #fff;
  border-bottom: 1px solid #e5e8ef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 90;
}
.nav-inner-wrapper {
  display: none;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-inner a {
  padding: 13px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #2c3e6b;
  position: relative;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: #0b1a3a;
}
.nav-inner a:hover::after,
.nav-inner a.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #2c3e6b;
  cursor: pointer;
  padding: 10px 16px;
}

/* ========== YELLOW NEWS TICKER ========== */
.news-ticker {
  background: var(--yellow);
  color: #1a1a1a;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.news-ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
}
.news-ticker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.news-ticker .label {
  color: #c62828;
  font-weight: 700;
  flex-shrink: 0;
}
.news-ticker .marquee {
  overflow: hidden;
  flex: 1;
}
.news-ticker .marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ========== PAGE CONTENT AREA ========== */
.page-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gold);
  border-radius: 2px;
}
.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  padding-left: 14px;
}
.content-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ebf2;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  padding: 24px;
  margin-bottom: 20px;
}

/* Tables inside content */
.content-card table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.content-card th,
.page-content th {
  background: var(--navy);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.content-card td,
.page-content td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef0f5;
}
.content-card tr:nth-child(even) td,
.page-content tr:nth-child(even) td {
  background: #f8f9fc;
}
.content-card tr:hover td,
.page-content tr:hover td {
  background: #fff8e1;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 36px 20px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer p, .footer a {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}


/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .brand .logo { width: 48px; height: 48px; }
  .brand-text h1 { font-size: 14px; white-space: normal; line-height: 1.25; }
  .brand-text p { font-size: 11px; }
  .nav-inner-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px;
  }
  .menu-toggle { display: block; }
  .nav-inner {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-width: none;
  }
  .nav-inner.open { display: flex; }
  .nav-inner a {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
  }
  .nav-inner a:hover::after,
  .nav-inner a.active::after { display: none; }
  .nav-inner a.active {
    background: #f5f7fb;
    border-left: 3px solid #ffcc00;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .auth-btns .btn { padding: 8px 14px; font-size: 13px; }
  .page-content { padding: 20px 14px 36px; }
  .page-title { font-size: 20px; }
}

@media (max-width: 600px) {
  .top-header { padding: 8px 0; }
  .top-header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 12px;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand .logo { width: 42px; height: 42px; }
  .brand-text h1 { font-size: 13px; }
  .brand-text p { display: none; }
  .auth-btns {
    width: 100%;
    justify-content: stretch;
  }
  .auth-btns .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
  }
  .news-ticker-inner {
    padding: 0 12px;
    font-size: 12px;
  }
  .news-ticker .label { font-size: 11px; }
  .page-content { padding: 16px 12px 32px; }
  .page-title { font-size: 18px; }
  .page-subtitle { font-size: 13px; padding-left: 0; }
  .content-card { padding: 16px; border-radius: 10px; }
  .footer { padding: 28px 14px 16px; }
  .footer h4 { font-size: 14px; }
  .footer p, .footer a { font-size: 13px; }
}

@media (max-width: 400px) {
  .brand-text h1 { font-size: 12px; }
  .auth-btns .btn { font-size: 12px; padding: 9px 8px; }
}
