/* ═══════════════════════════════════════════════════════
   CPUJHS STUDENT COUNCIL – JAGUARS CONNECT
   Global Design System
   Colors: Navy #0d1b3e, Gold/Orange #f97316, Cream #fef9f0
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --navy:       #0d1b3e;
  --navy-light: #162447;
  --navy-mid:   #1e3163;
  --gold:       #f97316;
  --gold-dark:  #ea6c0a;
  --gold-light: #fed7aa;
  --cream:      #fef9f0;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --shadow-sm:  0 2px 8px rgba(13,27,62,0.08);
  --shadow-md:  0 8px 30px rgba(13,27,62,0.12);
  --shadow-lg:  0 20px 60px rgba(13,27,62,0.18);
  --radius:     16px;
  --radius-sm:  10px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  margin: 0;
  padding: 0;
}

/* ── NAVBAR ─────────────────────────────────────────── */
.jc-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(13,27,62,0.35);
}

.jc-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.jc-brand img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(249,115,22,0.4));
}

.jc-brand-text {
  display: flex;
  flex-direction: column;
}

.jc-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.jc-brand-sub {
  font-size: 10px;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.jc-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jc-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.jc-btn-nav-home {
  background: rgba(249,115,22,0.15);
  color: var(--gold-light);
  border: 1.5px solid rgba(249,115,22,0.35);
}
.jc-btn-nav-home:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.jc-btn-nav-admin {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.jc-btn-nav-admin:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ── HERO ────────────────────────────────────────────── */
.jc-hero {
  position: relative;
  background-image: url('https://huggingface.co/spaces/errereee/jagalert-secure-school-tip-line/resolve/main/images/champs2.jpg');
  background-size: cover;
  background-position: center;
  margin-top: 64px;
  overflow: hidden;
}

.jc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,62,0.85) 0%,
    rgba(13,27,62,0.60) 50%,
    rgba(249,115,22,0.25) 100%
  );
}

.jc-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.jc-hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(249,115,22,0.5));
  margin-bottom: 20px;
  animation: heroFadeIn 0.8s ease both;
}

.jc-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  animation: heroFadeIn 0.8s 0.1s ease both;
}

.jc-hero-title span {
  color: var(--gold);
}

.jc-hero-year {
  font-size: 18px;
  color: var(--gold-light);
  font-weight: 500;
  margin: 0 0 8px;
  animation: heroFadeIn 0.8s 0.2s ease both;
}

.jc-hero-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin: 0;
  animation: heroFadeIn 0.8s 0.3s ease both;
}

/* Smaller hero for inner pages */
.jc-hero-sm .jc-hero-content {
  padding: 50px 24px;
}
.jc-hero-sm .jc-hero-title {
  font-size: clamp(26px, 4vw, 38px);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION HEADER ─────────────────────────────────── */
.jc-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.jc-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.jc-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

/* ── CARDS ───────────────────────────────────────────── */
.jc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(13,27,62,0.06);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.jc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.jc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249,115,22,0.2);
}

.jc-card:hover::before {
  transform: scaleX(1);
}

.jc-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(249,115,22,0.3);
}

.jc-card-icon svg {
  width: 28px;
  height: 28px;
  color: white;
  stroke: white;
}

.jc-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.jc-card-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.jc-card-arrow {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.jc-card:hover .jc-card-arrow {
  background: var(--gold);
  transform: translate(2px,-2px);
}

.jc-card-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
  stroke: var(--gray-400);
  transition: color 0.2s, stroke 0.2s;
}

.jc-card:hover .jc-card-arrow svg {
  color: white;
  stroke: white;
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.jc-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.jc-main-sm {
  max-width: 800px;
}

/* ── ACCORDION ───────────────────────────────────────── */
.jc-accordion {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(13,27,62,0.06);
  overflow: hidden;
  margin-top: 48px;
}

.jc-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.jc-accordion-btn:hover {
  background: var(--gray-50);
}

.jc-accordion-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jc-accordion-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.06));
  border: 1.5px solid rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jc-accordion-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ── BUTTONS ─────────────────────────────────────────── */
.jc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.jc-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}

.jc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
}

.jc-btn-ghost {
  background: rgba(13,27,62,0.06);
  color: var(--navy);
}
.jc-btn-ghost:hover { background: rgba(13,27,62,0.1); }

.jc-btn-danger {
  background: #ef4444;
  color: white;
}
.jc-btn-danger:hover { background: #dc2626; }

/* ── FOOTER ──────────────────────────────────────────── */
.jc-footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
}

.jc-footer strong {
  color: var(--gold-light);
}

/* ── FORM ELEMENTS ───────────────────────────────────── */
.jc-input {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.jc-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

/* ── ANNOUNCEMENT CARD ───────────────────────────────── */
.ann-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(13,27,62,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
  border-left-width: 4px;
}
.ann-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── FILTER PILLS ────────────────────────────────────── */
.jc-filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
}
.jc-filter-btn.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* ── ADMIN PANEL ─────────────────────────────────────── */
.jc-admin-panel {
  background: linear-gradient(135deg, #fffbf5, #fff7ed);
  border: 2px solid rgba(249,115,22,0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

/* ── MODAL ───────────────────────────────────────────── */
.jc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,27,62,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.jc-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.jc-modal-header {
  background: var(--navy);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.jc-modal-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249,115,22,0.2);
  border: 1.5px solid rgba(249,115,22,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jc-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.jc-modal-sub {
  font-size: 12px;
  color: var(--gold-light);
  margin: 2px 0 0;
}

.jc-modal-body {
  padding: 24px;
}

/* ── CALENDAR ────────────────────────────────────────── */
.cal-day {
  border-radius: var(--radius-sm);
  min-height: 90px;
  padding: 8px;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.cal-day:hover {
  background: #fff7ed;
  border-color: rgba(249,115,22,0.25);
  transform: scale(1.02);
}
.cal-day.has-event {
  background: #fff7ed;
  border-color: rgba(249,115,22,0.35);
}
.cal-day.today-day {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.06));
  border-color: var(--gold);
}
.cal-day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cal-day.today-day .cal-day-num {
  color: var(--gold);
}

/* ── POLL ────────────────────────────────────────────── */
.poll-bar {
  height: 10px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 0.6s cubic-bezier(.34,1.56,.64,1);
}

/* ── PROFILE CARD ────────────────────────────────────── */
.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(13,27,62,0.06);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s ease;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.profile-card-top {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 28px 20px 20px;
  text-align: center;
  position: relative;
}
.profile-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 auto 10px;
  overflow: hidden;
}
.profile-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0;
}
.profile-card-role {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.profile-card-body {
  padding: 14px 16px;
}

/* ── TIP FORM ────────────────────────────────────────── */
.tip-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(13,27,62,0.06);
  overflow: hidden;
}
.tip-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 28px 28px 24px;
}

/* ── UTILITY ─────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 24px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: rgba(13,27,62,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* Fade-in animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeSlideUp 0.4s ease both; }
