/* ============================================================
   Pride Corner on Whyte — Landing Page Styles
   All rules scoped to .pc-landing to avoid leaking to inner pages
   ============================================================ */

/* Remove Material theme padding/background on the landing page */
.md-content:has(.pc-landing) {
  background: linear-gradient(145deg, #ffde59, #ff914d);
  max-width: 100%;
  padding: 0;
}

[data-md-color-scheme="slate"] .md-content:has(.pc-landing) {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* CSS Variables */
.pc-landing {
  --pride-yellow: #ffde59;
  --pride-orange: #ff914d;
  --pride-blue: #004aad;
  --pride-purple: #cb6ce6;
  --pride-text: #152039;
}

/* ---- Rainbow Header ---- */
.pc-landing .rainbow-header {
  background: linear-gradient(
    90deg,
    #ff0000 0%, #ff8700 14%, #ffd300 28%, #00ff00 42%,
    #0099ff 57%, #8000ff 71%, #ff00ff 85%, #ff0000 100%
  );
  padding: 0.75rem;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-size: 2.5rem;
  font-weight: bold;
  animation: pc-shimmer 60s linear infinite;
  background-size: 400% 100%;
}

@keyframes pc-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -400% 0; }
}

/* ---- Hero Background ---- */
.pc-landing .hero-background {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-bottom: 2rem;
}

.pc-landing .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.pc-landing .hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.pc-landing .logo-container {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pc-landing .logo-container img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: none;
}

/* ---- Content Grid ---- */
.pc-landing .content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: -5rem auto 0;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}

/* ---- Profile Section ---- */
.pc-landing .profile-section {
  background: linear-gradient(145deg, var(--pride-purple), var(--pride-blue));
  padding: 1.5rem;
  color: white;
  border-radius: 20px;
  animation: pc-subtleGlow 4s ease-in-out infinite;
  border: none;
  position: relative;
}

.pc-landing .claire-container {
  max-width: 250px;
  margin: 0;
}

.pc-landing .claire-image {
  width: 100%;
  border-radius: 15px;
}

.pc-landing .main-subtitle {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  color: white;
}

.pc-landing .claire-quote {
  font-style: italic;
  line-height: 1.5;
  opacity: 0.95;
  font-size: 0.9rem;
}

/* ---- Main Content Section ---- */
.pc-landing .main-content-section {
  background: linear-gradient(145deg, var(--pride-yellow), var(--pride-orange));
  padding: 1.5rem;
  color: var(--pride-text);
  border-radius: 20px;
  animation: pc-subtleGlow 4s ease-in-out infinite;
  border: none;
  position: relative;
}

[data-md-color-scheme="slate"] .pc-landing .main-content-section {
  color: white;
}

/* ---- Title with Shimmer ---- */
.pc-landing .main-title,
.pc-landing .social-section h2 {
  background: linear-gradient(
    90deg,
    var(--pride-purple) 0%, var(--pride-blue) 25%,
    var(--pride-orange) 50%, var(--pride-yellow) 75%, var(--pride-purple) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.2rem;
  font-weight: 900;
  text-align: center;
  margin: 1rem 0 2rem;
  padding: 0.5rem;
  position: relative;
  animation: pc-titleShimmer 6s linear infinite;
  background-size: 200% 100%;
  letter-spacing: 0.5px;
}

.pc-landing .social-section h2 {
  font-size: 2.4rem;
  margin: 0.5rem 0 1.5rem;
}

@keyframes pc-titleShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pc-landing .main-title::after,
.pc-landing .social-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 4px;
  background: linear-gradient(90deg,
    var(--pride-purple), var(--pride-blue),
    var(--pride-orange), var(--pride-yellow)
  );
  border-radius: 2px;
  animation: pc-borderGlow 3s ease-in-out infinite;
}

@keyframes pc-borderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- Info Grid & Cards ---- */
.pc-landing .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.pc-landing .info-card {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  padding: 1.25rem;
  border-radius: 20px;
  animation: pc-subtleGlow 4s ease-in-out infinite;
  border: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pc-landing .info-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.pc-landing .info-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pc-landing .info-card p {
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  margin: 0;
}

.pc-landing .info-card.about { background: linear-gradient(145deg, #D84B8F, #CC3366); }
.pc-landing .info-card.events { background: linear-gradient(145deg, #008B8B, #006666); }
.pc-landing .info-card.heritage { background: linear-gradient(145deg, #9932CC, #7B1FA2); }
.pc-landing .info-card.community { background: linear-gradient(145deg, #2E8B57, #1B5E20); }

/* Dark theme info cards */
[data-md-color-scheme="slate"] .pc-landing .info-card {
  background: linear-gradient(145deg, rgba(35,35,35,0.95), rgba(45,45,45,0.85));
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

[data-md-color-scheme="slate"] .pc-landing .main-title,
[data-md-color-scheme="slate"] .pc-landing .info-card h3 {
  color: white;
}

/* ---- Animations ---- */
@keyframes pc-subtleGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 25px rgba(255,255,255,0.3); }
}

@keyframes pc-glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(203,108,230,0.3); }
  50% { box-shadow: 0 0 50px rgba(203,108,230,0.5); }
}

/* ---- Connect + Subscribe Wrapper ---- */
.pc-landing .connect-subscribe-wrapper {
  width: min(100%, 1200px);
  margin: 1.5rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.pc-landing .connect-subscribe-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
}

/* ---- Social Section ---- */
.pc-landing .social-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pc-landing .social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

.pc-landing .social-card {
  display: block;
  padding: 1.25rem;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pc-subtleGlow 4s ease-in-out infinite;
  border: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
}

.pc-landing .social-card.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pc-landing .social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.25);
}

.pc-landing .social-card h3 {
  margin: 0 0 0.3rem 0;
  color: white;
}

.pc-landing .social-card p {
  margin: 0;
  opacity: 0.9;
}

.pc-landing .facebook { background: linear-gradient(145deg, #1877f2, #166fe0); }
.pc-landing .instagram { background: linear-gradient(145deg, #833AB4, #E1306C); }
.pc-landing .tiktok { background: linear-gradient(145deg, #000000, #25F4EE); }
.pc-landing .resources { background: linear-gradient(145deg, #4CAF50, #388E3C); }

/* ---- Newsletter Section ---- */
.pc-landing .newsletter-section {
  background: linear-gradient(145deg, var(--pride-purple), var(--pride-blue));
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  animation: pc-glowPulse 3s ease-in-out infinite;
}

.pc-landing .newsletter-section h3 {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.pc-landing .listmonk-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.pc-landing .listmonk-form input[type="email"],
.pc-landing .listmonk-form input[type="text"] {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--pride-text);
  font-size: 1rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 0.5rem 0;
  box-sizing: border-box;
}

.pc-landing .listmonk-form input[type="email"]::placeholder,
.pc-landing .listmonk-form input[type="text"]::placeholder {
  color: rgba(21, 32, 57, 0.7);
}

[data-md-color-scheme="slate"] .pc-landing .listmonk-form input[type="email"],
[data-md-color-scheme="slate"] .pc-landing .listmonk-form input[type="text"] {
  background: rgba(255, 255, 255, 0.9);
  color: var(--pride-text);
}

[data-md-color-scheme="slate"] .pc-landing .listmonk-form input[type="email"]::placeholder,
[data-md-color-scheme="slate"] .pc-landing .listmonk-form input[type="text"]::placeholder {
  color: rgba(21, 32, 57, 0.7);
}

.pc-landing .listmonk-form input[type="email"]:focus,
.pc-landing .listmonk-form input[type="text"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  outline: none;
}

.pc-landing .listmonk-form input[type="submit"] {
  background: linear-gradient(145deg, #ff914d, #ffde59);
  color: var(--pride-text);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  width: 100%;
  white-space: normal;
  line-height: 1.2;
  min-height: 44px;
}

.pc-landing .listmonk-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,145,77,0.4);
}

.pc-landing .listmonk-form p { margin: 0; }

.pc-landing .listmonk-form label {
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.pc-landing .newsletter-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.pc-landing .newsletter-image:hover {
  transform: scale(1.02);
}

/* ---- Mobile Responsive ---- */
@media screen and (max-width: 768px) {
  .pc-landing .rainbow-header {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .pc-landing .hero-background {
    height: 35vh;
  }

  .pc-landing .logo-container {
    top: 1rem; right: 1rem;
    width: 100px; height: 100px;
  }

  .pc-landing .content-grid {
    grid-template-columns: 1fr;
    margin-top: -3rem;
    gap: 1rem;
  }

  .pc-landing .claire-container {
    max-width: 200px;
    margin: 0 auto;
  }

  .pc-landing .profile-section,
  .pc-landing .main-content-section {
    padding: 1.5rem;
  }

  .pc-landing .info-card,
  .pc-landing .social-card {
    padding: 1.5rem;
  }

  .pc-landing .main-title {
    font-size: 2rem;
  }

  .pc-landing .info-grid {
    grid-template-columns: 1fr;
  }

  .pc-landing .connect-subscribe-wrapper {
    width: 100%;
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .pc-landing .connect-subscribe-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .pc-landing .social-card,
  .pc-landing .newsletter-section {
    width: 100%;
    margin: 0;
    min-width: 0;
  }

  .pc-landing .newsletter-section {
    padding: 1.5rem;
  }

  .pc-landing .newsletter-section h3 {
    font-size: 1.3rem;
    padding: 0 0.5rem;
  }

  .pc-landing .listmonk-form input[type="submit"] {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .pc-landing .newsletter-image {
    margin-top: 1rem;
  }
}
