/*
================================================
|                                              |
|      PHOTOGRAPHY CLUB PAGE - REDESIGN V6     |
|      Theme: Minimalist, Clean, High-Fashion  |
|      Enhancements: GSAP Micro-animations     |
|                                              |
================================================
*/

/* 1. THEME & ROOT VARIABLES
------------------------------------------------ */
:root {
  /* Colors inspired by high-fashion and classic cameras */
  --photo-bg-dark: #121212; /* Softer Charcoal Background */
  --photo-bg-card: #1c1c1c; /* Off-black for cards */
  --photo-text-primary: #f5f5f5; /* Soft off-white */
  --photo-text-secondary: #a1a1a1; /* Muted grey for secondary text */
  --photo-accent-brown: #5d4037; /* Rich leather brown */
  --photo-accent-beige: #f5f5dc; /* Classic beige */
  --photo-border-color: rgba(161, 161, 161, 0.2);
  --photo-hero-border: rgba(245, 245, 245, 0.25);
  --photo-border-hover: rgba(245, 245, 220, 0.5);

  /* Typography */
  --font-title: "astroz", "Helvetica Neue", sans-serif; /* FONT CHANGED */
  --font-main: "Luxia", "Helvetica Neue", sans-serif;
  --font-body: "Antipasto", "Helvetica Neue", sans-serif; 

  /* Effects */
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --hover-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

/* 2. GENERAL PAGE SETUP
------------------------------------------------ */
body.photo-theme {
  background-color: var(--photo-bg-dark);
  color: var(--photo-text-primary);
  font-family: var(--font-body);
  padding-top: 80px;
  cursor: url('/cursors/photography-club-default.png'), pointer;
}
a, button, [role="button"] {
  cursor: url('/cursors/photography-club-hover.png'), pointer;
}
a:hover, button:hover, [role="button"]:hover {
  cursor: url('/cursors/photography-club-hover.png'), pointer;
}

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

/* 3. HEADER SECTION
------------------------------------------------ */
.club-header {
  text-align: center;
  padding: 6rem 2rem;
  margin-bottom: 5rem;
  position: relative;
  border: 1px solid var(--photo-hero-border);
  border-radius: 16px;
  overflow: hidden;
  /* For GSAP 3D perspective animation */
  transform-style: preserve-3d;
  will-change: transform;
}

/* Decorative frames for hero section */
.club-header::before,
.club-header::after {
  content: '';
  position: absolute;
  border: 1px solid var(--photo-hero-border);
  border-radius: 12px;
  transition: all var(--transition-smooth);
}

.club-header::before {
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

 .club-header::after {
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  opacity: 0.6;
}

.club-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: bold;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--photo-text-primary);
  margin: 0;
  letter-spacing: 2px;
}

.club-subtitle {
  font-family: var(--font-title);
  font-weight: bold;
  color: var(--photo-text-primary);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 1.2;
  margin: 0.5rem 0 0 0;
  padding-left: 0.3em; /* Nudge for letter-spacing */
}

.club-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--photo-text-secondary);
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}


/* 4. SPLIT LAYOUT FOR ABOUT/GALLERY
------------------------------------------------ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 992px) {
  .split-layout {
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 4rem;
  }
}

/* 5. ABOUT CONTENT
------------------------------------------------ */
.about-content {
  padding: 2rem 0;
  /* Prepare for animation */
  opacity: 0;
}

.about-content h2 {
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--photo-border-color);
  color: var(--photo-accent-beige);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--photo-text-secondary);
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  padding: 2.5rem;
  margin-top: 3rem;
  background-color: var(--photo-bg-card);
  border: 1px solid var(--photo-border-color);
  border-radius: 12px;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
}
.features-list li:last-child { margin-bottom: 0; }
.features-list i { color: var(--photo-accent-beige); stroke-width: 1.5; }

/* 6. PHOTO GALLERY
------------------------------------------------ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
  border-radius: 16px;
  opacity: 0; /* Prepare for animation */
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  /* Let GSAP handle transforms for smoother animations */
  transition: box-shadow var(--transition-smooth); 
}

.gallery-item:hover {
  z-index: 10;
  box-shadow: var(--hover-shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth),
    filter 0.4s var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.gallery-item:nth-child(1) { grid-column: 1 / 3; }
.gallery-item:nth-child(4) { grid-row: 2 / 4; grid-column: 2 / 3; }

/* 7. JOIN CTA SECTION
------------------------------------------------ */
.join-cta {
  padding: 6rem 2rem;
  text-align: center;
  background-color: var(--photo-bg-card);
  border: 1px solid var(--photo-border-color);
  border-radius: 16px;
  opacity: 0; /* Prepare for animation */
}

.join-cta h2 {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--photo-accent-beige);
}

.join-cta p {
  color: var(--photo-text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 8px;
  background-color: var(--photo-accent-beige);
  color: var(--photo-bg-dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(245, 245, 220, 0.1);
}

.cta-button:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(245, 245, 220, 0.2);
}

/* 8. RESPONSIVE ADJUSTMENTS
------------------------------------------------ */
@media (max-width: 767px) {
  .club-header { padding: 5rem 1rem; }
  .photo-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
  .join-cta { padding: 4rem 1.5rem; }
}