/* ============================================================
   FACULTY RESEARCH SEMINARS — STYLES
   UAPB Gold & Black Editorial Theme
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --gold:        #efa522;
  --gold-light:  #E8B84B;
  --gold-dim:    #9A7230;
  --black:       #0D0D0D;
  --dark:        #141414;
  --dark-2:      #1E1E1E;
  --dark-3:      #2A2A2A;
  --white:       #FFF;
  --white-dim:   #B8B0A0;
  --card-bg:     #181818;
  --card-radius: 14px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 8px 40px rgba(0,0,0,0.6);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Bebas Neue Pro", sans-serif;
  background-color: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Header / Hero ---------- */
.site-header {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-3);
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(200,151,58,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.header-eyebrow {
  font-family: "Bebas Neue Pro", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}

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

.header-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.header-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
}

/* ---------- Section Label ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 48px 48px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.section-label h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.section-label .label-line {
  flex: 1;
  height: 1px;
  background: var(--dark-3);
}

.section-label .event-count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---------- Carousel Wrapper ---------- */
.carousel-outer {
  position: relative;
  padding: 0 0 48px;
}

.carousel-track-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 48px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--dark-2);
  cursor: grab;
  user-select: none;
}

.carousel-track-wrapper:active { cursor: grabbing; }

.carousel-track-wrapper::-webkit-scrollbar { height: 5px; }
.carousel-track-wrapper::-webkit-scrollbar-track { background: var(--dark-2); }
.carousel-track-wrapper::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 10px; }

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-bottom: 8px;
}

/* ---------- Event Card ---------- */
.event-card {
  width: 380px;
  height: 560px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--dark-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow);
}

/* Card Image (60%) */
.card-image-wrap {
  position: relative;
  height: 60%;
  overflow: hidden;
  cursor: zoom-in;
  flex-shrink: 0;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.event-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.card-image-wrap:hover .card-image-overlay {
  background: rgba(0,0,0,0.4);
}

.zoom-icon {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
  color: var(--white);
  background: rgba(200,151,58,0.9);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.card-image-wrap:hover .zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Card Info (40%) */
.card-info {
  height: 40%;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-bg);
}

.card-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--white-dim);
  line-height: 1.4;
}

.card-meta-row svg {
  flex-shrink: 0;
  color: var(--gold);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-cal {
  flex: 1;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}

.btn-cal:active { transform: scale(0.97); }

.btn-ics {
  background: var(--gold);
  color: var(--black);
}

.btn-ics:hover { background: var(--gold-light); }

.btn-gcal {
  background: var(--dark-3);
  color: var(--white);
  border: 1px solid #3A3A3A;
}

.btn-gcal:hover { background: #333; border-color: var(--gold-dim); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.lightbox.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
  position: relative;
  max-width: 880px;
  width: 100%;
  animation: scaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes scaleIn { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-inner img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-close:hover { background: var(--gold-light); }

.lightbox-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--white-dim);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--white-dim);
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  border-top: 3px solid var(--gold);
  padding: 60px 48px 32px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-brand .footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--dark-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #555;
}

.footer-bottom a { color: #666; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-label, .carousel-track-wrapper { padding-left: 20px; padding-right: 20px; }
  .site-header { padding: 60px 20px 48px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .event-card { width: 310px; height: 520px; }
  .site-footer { padding: 48px 20px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
