/* ===== RESOURCES PAGE-SPECIFIC CSS ===== */
/* Overrides and unique rules not in base.css, nav.css, or components.css */

/* --- Shared selector overrides (different values from shared CSS) --- */

.grain {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.header {
  padding: 20px 48px;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45,27,61,0.08);
}

.nav {
  gap: 36px;
}

.nav a::after {
  background: var(--hot-pink);
  transition: transform 0.3s;
}

.header-cta {
  padding: 14px 32px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-cta:hover {
  transform: translateY(-3px) scale(1.02);
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.2;
}

.logo-text em {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hot-pink);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--hot-pink);
  letter-spacing: 2px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  width: 30px;
  background: linear-gradient(90deg, var(--hot-pink), var(--purple-warm));
}

.section-header {
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
}

.section-subtitle {
  font-size: 18px;
  color: var(--plum-muted);
  line-height: 1.7;
}

.btn-primary {
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  position: static;
  overflow: visible;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.35);
}

.footer-brand p {
  font-size: 15px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-title {
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 15px;
}

.footer-copyright {
  font-size: 14px;
}

.footer-powered {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

/* --- Page-unique rules --- */

/* Page Hero */
.page-hero {
  padding: 180px 48px 100px;
  background: linear-gradient(135deg, var(--lavender-mist), var(--cream));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 24px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 19px;
  color: var(--plum-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Blog Section */
.blog-section {
  padding: 100px 48px;
  background: var(--peach-glow);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.blog-view-all {
  text-align: center;
  margin-top: 20px;
}

.blog-card {
  background: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(200,0,255,0.08);
  border-top: 4px solid var(--purple);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(45,27,61,0.12);
}

.blog-card-content {
  padding: 28px;
}

.blog-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-soft), var(--cyan-soft));
  color: var(--plum);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.blog-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--plum-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-date {
  color: var(--plum-muted);
  font-size: 12px;
  opacity: 0.7;
}

.blog-link {
  color: var(--hot-pink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-link:hover {
  color: var(--purple);
}

/* Media Section */
.media-section {
  padding: 100px 48px;
  background: linear-gradient(145deg, var(--plum-dark), var(--plum-darker), var(--plum-dark));
  position: relative;
  overflow: hidden;
}

.media-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(168,85,247,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(224,64,251,0.1) 0%, transparent 50%);
}

.media-section .section-header {
  position: relative;
  z-index: 2;
}

.media-section .section-eyebrow {
  color: var(--purple-warm);
}

.media-section .section-eyebrow::before,
.media-section .section-eyebrow::after {
  background: linear-gradient(90deg, var(--purple-warm), var(--cyan-deep));
}

.media-section .section-title {
  color: white;
}

.media-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.media-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.media-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: all 0.4s;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.media-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.15);
}

.media-logo {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--purple-warm), var(--lavender-light));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--plum);
  overflow: hidden;
}

.media-logo.has-logo {
  background: white;
  border: 1px solid rgba(200,0,255,0.1);
  padding: 8px;
}

.media-logo.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.media-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  color: white;
  margin-bottom: 10px;
}

.media-card p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.media-link {
  color: var(--cyan-deep);
  font-weight: 600;
  font-size: 14px;
}

/* Newsletter Section */
.newsletter-section {
  padding: 100px 48px;
  background: var(--lavender-mist);
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 20px;
}

.newsletter-content p {
  color: var(--plum-muted);
  font-size: 17px;
  margin-bottom: 32px;
}

/* Page Nav Demo */
.page-nav-demo {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 24px 32px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 20px;
}

.page-nav-demo h4 {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-links a {
  padding: 10px 22px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s;
}

.page-links a:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.page-links a.current {
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  color: var(--plum);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero, .blog-section, .media-section, .newsletter-section {
    padding: 80px 24px;
  }
  .page-hero {
    padding-top: 140px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .media-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .media-logo {
    margin: 0 auto;
  }
}
