/* ==========================================================================
   Loaded only on the homepage
   ========================================================================== */

/* Homepage body background for hero effect */
body {
  background: black;
}

/* ==========================================================================
   NAVIGATION OVERRIDES FOR HOMEPAGE
   ========================================================================== */

/* Logo visibility for transparent nav */
.nav.nav-transparent .nav-logo-image-color { opacity: 0; }
.nav.nav-transparent .nav-logo-image-bw { opacity: 1; }
.nav.nav-transparent.scrolled .nav-logo-image-color { opacity: 1; transition: opacity var(--transition-medium); }
.nav.nav-transparent.scrolled .nav-logo-image-bw { opacity: 0; transition: opacity var(--transition-medium); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem 4rem;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/RSE-25-0064.jpg') center 35% / cover;
  background-attachment: fixed;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.5) 70%,
      rgba(0, 0, 0, 0.25) 90%,
      rgba(0, 0, 0, 0.35) 100%);
}

.hero-card {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  max-width: 820px;
  border-radius: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--light-blue);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: fit-content;
  border-bottom: 2px solid var(--light-blue);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.2rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-meta-item .label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--light-blue);
  font-size: 1rem;
  letter-spacing: 0.05em;
  min-width: 120px;
}

.hero-meta-item .value {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  color: white;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-photo-caption {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
  color: var(--light-gray);
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  border-radius: 4px;
}

.hero-photo-caption a {
  color: var(--light-blue);
  text-decoration: none;
}

.hero-photo-caption a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SECTION: Vision
   ========================================================================== */
.vision {
  padding: 8rem 0;
  background: var(--warm-white);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.vision-title {
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.vision-content {
  font-size: 1.15rem;
  color: var(--warmer-gray);
  line-height: 1.8;
}

.vision-content p {
  margin-bottom: 1.5rem;
}

.vision-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.vision-themes p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION: Venue (Homepage version)
   ========================================================================== */
.venue {
  padding: 8rem 0;
  background: var(--cream);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.venue-image-wrapper {
  position: relative;
}

.venue-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
}

.venue-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.venue-content .subtitle {
  font-size: 1.2rem;
  color: var(--plum);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.venue-content p {
  font-size: 1.05rem;
  color: var(--warmer-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.venue-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   SECTION: Accessibility Banner
   ========================================================================== */
.accessibility-banner {
  background: var(--plum);
  color: white;
  padding: 5rem 0;
}

.accessibility-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.accessibility-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.accessibility-banner p {
  font-size: 1rem;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   SECTION: Archive (RSECon25)
   ========================================================================== */
.archive {
  padding: var(--section-padding) 0;
  background: var(--cream);
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.archive-intro h2 {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.archive-intro p {
  font-size: 1rem;
  color: var(--warmer-gray);
  line-height: 1.6;
}

.archive-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.archive-link-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.archive-link-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-link-item .title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.archive-link-item p {
  font-size: 0.95rem;
  color: var(--warmer-gray);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   SECTION: Sponsors
   ========================================================================== */
.sponsors {
  padding: var(--section-padding) 0;
  background: var(--warm-white);
  text-align: center;
}

.sponsors h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.sponsors > .container > p {
  color: var(--warmer-gray);
  margin-bottom: 3rem;
}

.sponsor-tiers {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sponsor-tier {
  border-top: 1px solid var(--light-gray);
  padding-top: 2rem;
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.sponsor-logo {
  height: 50px;
  opacity: 0.7;
  filter: grayscale(100%);
  font-family: var(--font-ui);
  transition: all var(--transition-fast);
}

/* .sponsor-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
} */

.sponsor-logo.gold {
  height: 70px;
}

.sponsor-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
  font-family: var(--font-ui);
}

.sponsor-cta p {
  color: var(--warmer-gray);
  margin-bottom: 1rem;
}

/* ==========================================================================
   SECTION: Social Feed
   ========================================================================== */
.social {
  padding: var(--section-padding) 0;
  background: var(--warm-white);
}

.social-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.social h2 {
  font-size: 2rem;
}

.social-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.social-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

a.social-card-header {
  text-decoration: none;
  color: inherit;
}

a.social-card-header:hover .social-display-name {
  color: var(--plum);
  text-decoration: underline;
}

.social-card-header > div {
  overflow: hidden;
}

.social-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: var(--light-gray);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.social-display-name {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-handle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--warm-gray);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-card-content {
  flex: 1;
}

.social-card-content p {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
  text-wrap: pretty;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.social-card-content p:last-child {
  margin-bottom: 0;
}

.social-card-content a {
  color: var(--plum);
  text-decoration: none;
}

.social-card-content a:hover {
  text-decoration: underline;
}

.social-card-content a.mention,
.social-card-content a.hashtag {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--plum);
  background: var(--warm-white);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  margin: 0.1rem;
  display: inline-block;
}

.social-card-content a.mention:hover,
.social-card-content a.hashtag:hover {
  background: var(--light-gray);
  text-decoration: none;
}

/* Media attachments */
.social-media {
  position: relative;
  margin-top: 1rem;
}

.social-media img {
  width: 100%;
  border-radius: 8px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.social-media-more {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  text-decoration: none;
}

/* Footer */
.social-card-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--light-gray);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--warm-gray);
}

.social-footer-sep {
  color: var(--warm-gray);
}

.social-link {
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 400;
}

.social-link:hover {
  color: var(--plum);
  text-decoration: underline;
}

.social-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card > * {
  --base-delay: 0.1s;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-badge {
  animation-delay: calc(var(--base-delay) * 1);
}

.hero-title span {
  display: inline-block;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--base-delay) * 2 + (var(--order) * 0.1s));
}

.hero-tagline {
  animation-delay: calc(var(--base-delay) * 5);
}

.hero-meta {
  animation-delay: calc(var(--base-delay) * 6);
}

.hero-actions {
  animation-delay: calc(var(--base-delay) * 7);
}

.hero-photo-caption {
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: var(--base-delay);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0.5rem 1.5rem;
  }

  .hero {
    padding: 2rem;
  }

  .hero-card {
    max-width: 600px;
  }

  .hero-photo-caption {
    right: 2rem;
    bottom: 2rem;
  }

  .vision-grid,
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 1.5rem;
    padding-top: calc(1.5rem + 66px);
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-bg {
    background-position: center 65%;
  }

  .hero-bg::after {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.45) 90%,
        rgba(0, 0, 0, 0.55) 100%);
  }

  .hero-card {
    max-width: 100%;
    padding: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-photo-caption {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1rem;
    padding-top: calc(1rem + 66px);
  }

  .hero-card {
    padding: 1.5rem;
  }

  .vision-themes {
    grid-template-columns: 1fr;
  }

  .social-feed {
    grid-template-columns: 1fr;
  }
}
