/* =============================================
   The Savage Saints – Creative Arts Page Styles
   ============================================= */

/* Root Variables */
:root {
  --page: #f5f3e7;
  --ink: #0b1d14;
  --brand: #166534;
  --brand-700: #14532d;
  --brand-800: #0b4228;
  --muted: #e7efe9;
  --border: #d7e3db;
  --paper: #fbfaf5;
}

/* Base Body */
body {
  background: var(--page);
  color: var(--ink);
}

/* Tailwind Adjustments */
.bg-slate-50 {
  background-color: var(--page) !important;
}
.text-slate-900 {
  color: var(--ink) !important;
}

/* =============================================
   Creative Arts Hero Background (Final Clean Version)
   ============================================= */

.arts-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;

  /* Base gradient + warm ambient light */
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 150, 0.25), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 165, 100, 0.2), transparent 60%),
    linear-gradient(to bottom right, #1e293b, #0f172a);
}

/* Ambient Glow Orbs */
.arts-hero::before,
.arts-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  z-index: 0;
  animation: drift 22s ease-in-out infinite alternate;
}

.arts-hero::before {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 230, 180, 0.6), transparent 70%);
  animation-delay: 0s;
}

.arts-hero::after {
  bottom: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 170, 120, 0.5), transparent 70%);
  animation-delay: 5s;
}

/* Moving Gradient Layer */
.finisher-header {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 240, 210, 0.15), transparent 70%),
    linear-gradient(120deg, rgba(255, 200, 120, 0.15),
                            rgba(255, 160, 90, 0.1),
                            rgba(50, 80, 120, 0.25));
  animation: ambientFlow 30s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

/* Keyframes for drift and flow */
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.2); }
}

@keyframes ambientFlow {
  0% {
    background-position: 0% 50%;
    filter: brightness(0.9) saturate(1.1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.1) saturate(1.3);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(0.95) saturate(1);
  }
}

/* Firefly Layer */
.firefly-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,200,0.7), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,160,0.8), transparent),
    radial-gradient(2.5px 2.5px at 80% 40%, rgba(255,240,160,0.8), transparent);
  animation: twinkle 12s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes twinkle {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Optional soft center glow (candlelight) */
.arts-hero::after,
.arts-hero::before {
  mix-blend-mode: screen;
}
.arts-hero::before {
  background: radial-gradient(circle at 50% 30%, rgba(255, 240, 200, 0.15), transparent 70%);
}

/* =============================================
   Hero Text Formatting – Title & Paragraphs
   ============================================= */

.arts-hero .hero-text-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff9e8;
  text-shadow: 0 4px 25px rgba(255, 190, 120, 0.4);
  margin-bottom: 1.5rem;
}

.hero-subtext {
  color: #fefaf0;
  font-size: 1.15rem;
  line-height: 1.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.hero-subtext.italic {
  font-style: italic;
  color: #fff8d8;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.arts-hero .mt-6 {
  margin-top: 3rem !important;
}

.hero-title {
  animation: fadeUp 1.5s ease-out both;
}
.hero-subtext {
  animation: fadeUp 1.5s ease-out both;
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* =============================================
   Enhanced Bubbly Buttons – Savage Saints Glow
   ============================================= */

.bubbly-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s ease;
  user-select: none;
  backdrop-filter: blur(6px);
}

/* Soft white-glass button */
.bubbly-button.bg-white\/10 {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fffdf5;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.bubbly-button.bg-white\/10:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Glowing amber gradient button */
.bubbly-button.gradient-btn {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #fde68a);
  color: #1a1305;
  font-weight: 800;
  border: none;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 200, 100, 0.4);
  transition: all 0.4s ease;
}

/* Subtle glow pulse */
.bubbly-button.gradient-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 230, 140, 0.4), transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bubbly-button.gradient-btn:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.bubbly-button.gradient-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px rgba(255, 210, 120, 0.6), 0 0 10px rgba(255, 240, 180, 0.4);
}

/* Pressed / active effect */
.bubbly-button:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

/* Simple glow animation (optional, can remove) */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 210, 120, 0.4); }
  50% { box-shadow: 0 0 28px rgba(255, 220, 150, 0.55); }
}

.bubbly-button.gradient-btn {
  animation: glowPulse 4s ease-in-out infinite;
}

/* Responsiveness */
@media (max-width: 640px) {
  .bubbly-button {
    width: 100%;
    max-width: 260px;
  }
}


/* Hero layout adjustments for smaller screens */
@media (max-width: 640px) {
  .arts-hero {
    min-height: auto;
    padding-top: 4rem;       /* reduce big gap at top */
    padding-bottom: 2rem;    /* tighten bottom space */
  }

  .arts-hero .hero-text-block {
    padding: 1.5rem;         /* balance inner spacing */
  }

  .hero-title {
    font-size: 2.25rem;      /* scale title nicely on phones */
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;     /* add rhythm between paragraphs */
  }

  .arts-hero .mt-6 {
    flex-direction: column;
    gap: 1rem;
  }

  .bubbly-button {
    width: 100%;
    max-width: 240px;
  }
}

/* =============================================
   Arts Photos
   ============================================= */
.arts-photo {
  max-width: 20rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.arts-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.arts-photo figcaption {
  padding: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  color: #f3f4f6;
  background: rgba(0, 0, 0, 0.4);
}
.arts-photo.pink:hover {
  box-shadow: 0 0 25px rgba(255, 182, 193, 0.4);
  transform: scale(1.03);
}
.arts-photo.indigo:hover {
  box-shadow: 0 0 25px rgba(147, 197, 253, 0.4);
  transform: scale(1.03);
}

/* =============================================
   The Savage Saints – Pillars & Creative Programs
   ============================================= */

/* Overview Grid */
.pillars-section {
  background: #fafafa;
  padding: 4rem 1.5rem;
  text-align: center;
}

.pillars-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.pillars-intro {
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.pillar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.05);
  transition: all 0.25s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(2, 6, 23, 0.1);
}

.pillar .emoji {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.pillar p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Expandable Pillar Details */
.pillar-details-section {
  background: linear-gradient(180deg, #fffaf3, #fdf7ed);
  padding: 4rem 1.5rem;
  font-family: 'Inter', sans-serif;
}

.pillar-details-section details {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.pillar-details-section details:hover {
  border-color: #fbbf24;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25);
}

.pillar-details-section summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: #78350f;
  background: linear-gradient(to right, #fef3c7, #fde68a);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-details-section summary::after {
  content: '＋';
  font-weight: bold;
  transition: transform 0.3s ease;
}

.pillar-details-section details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.pillar-details-section details[open] summary {
  background: linear-gradient(to right, #fde68a, #fef3c7);
  border-bottom: 1px solid #fcd34d;
}

.pillar-details-section .content {
  padding: 1.75rem;
  color: #374151;
  background: #fffdf9;
}

.pillar-details-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.pillar-details-section ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.pillar-details-section li {
  background: #fff8e1;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.15);
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pillar-details-section li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.pillar-details-section .highlight {
  background: #fff8dc;
  border-left: 4px solid #facc15;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.98rem;
  color: #7c2d12;
  margin: 1.25rem 0;
  box-shadow: 0 3px 10px rgba(251, 191, 36, 0.15);
  line-height: 1.65;
}

.pillar-details-section strong {
  color: #78350f;
}

.pillar-details-section em {
  color: #92400e;
  font-style: italic;
}
