/*
================================================
|                                              |
|        LANGUAGE CLUB PAGE - REDESIGN V4      |
|      Theme: The Scholar's Scroll             |
|   Inspiration: Illuminated Manuscripts       |
|                                              |
================================================
*/

/* 1. THEME & ROOT VARIABLES
------------------------------------------------ */
:root {
  /* Fonts */
  --font-title: 'Cinzel Decorative', serif;
  --font-body: 'EB Garamond', serif;

  /* Colors */
  --color-bg: linear-gradient(180deg, #FAF9F6, #e9e8e5);
  --color-text-primary: #333333;
  --color-text-secondary: #555555;
  --color-border: rgba(51, 51, 51, 0.15);
  --color-accent: #0077BE;
  --color-card-bg: rgba(255, 255, 255, 0.5);
  --color-glow: rgba(180, 150, 110, 0.15); /* Warm parchment glow */

  /* Effects & Variables */
  --transition-smooth: 350ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.05);
  --glow-y: 50%; /* For JS-powered background glow */
}

/* 2. GENERAL PAGE SETUP
------------------------------------------------ */
body.language-theme {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  padding-top: 80px;
  position: relative; /* Needed for pseudo-element */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url('/cursors/language-club-default.png'), pointer;
}
a, button, [role="button"] {
  cursor: url('/cursors/language-club-hover.png'), pointer;
}

/* New background glow effect */
body.language-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
    circle 80vmax at 50% var(--glow-y),
    var(--color-glow),
    transparent 70%
  );
  transition: background 0.8s ease-out;
}

.club-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* 3. HEADER SECTION
------------------------------------------------ */
.club-header {
  text-align: center;
  padding: 5rem 2rem 6rem;
  margin-bottom: 4rem;
  position: relative;
}

.header-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 700px;
  transform: translate(-50%, -50%) scale(1.1);
  stroke: var(--color-accent);
  stroke-width: 1;
  fill: none;
  opacity: 0.3;
}

.club-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 1rem 0;
}

.club-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

/* 4. NEW SINGLE-COLUMN LAYOUT
------------------------------------------------ */
.manuscript-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.manuscript-section:last-child {
  border-bottom: none;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.section-title::before,
.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--color-border);
}

.section-content p {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* Decorative Drop Cap (targets the new span) */
.drop-cap {
  font-family: var(--font-title);
  font-size: 4rem;
  color: var(--color-accent);
  float: left;
  line-height: 0.8;
  margin-right: 0.8rem;
  margin-top: 0.5rem;
}

/* 5. NEW "LANGUAGES" SECTION
------------------------------------------------ */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.language-item {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.language-item:hover {
  background: var(--color-card-bg);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}
.language-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-text-primary);
}
.language-info {
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-text-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: var(--card-shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.language-item:hover .language-info {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 6. JOIN BUTTON
------------------------------------------------ */
.join-section {
  text-align: center;
}
.button-primary {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  background-color: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  transition: var(--transition-smooth);
  margin-top: 1rem;
}
.button-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
  transform: scale(1.05);
}

/* Helper class for animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
}