/* ============================================
   SAINTS STARTER — Bold & Colorful Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Primary palette */
  --coral:       #FF6B6B;
  --sunflower:   #FFD93D;
  --mint:        #6BCB77;
  --sky:         #4D96FF;
  --violet:      #9B59B6;
  --peach:       #FFAB76;

  /* Neutrals */
  --ink:         #1a1a2e;
  --slate:       #3d3d5c;
  --mist:        #f0f0f5;
  --white:       #ffffff;

  /* Functional */
  --bg:          var(--white);
  --text:        var(--ink);
  --text-muted:  var(--slate);
  --accent:      var(--coral);
  --gold:        #C9A84C;

  /* Typography */
  --font-sans:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    2rem;
  --space-lg:    4rem;
  --space-xl:    6rem;

  /* Misc */
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
  --transition:  0.3s ease;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg:         #0f0f23;
  --text:       #e8e8f0;
  --text-muted: #a0a0c0;
  --ink:        #e8e8f0;
  --mist:       #1a1a2e;
  --white:      #0f0f23;
  --shadow:     0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.4);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--violet);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px solid var(--sunflower);
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--text);
}

.logo-accent {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: var(--space-sm);
}

.highlight {
  background: linear-gradient(135deg, var(--coral), var(--sunflower));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 480px;
}

/* Decorative Shapes */
.hero-shapes {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
}

.shape {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.shape-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--peach));
  opacity: 0.7;
  top: 20px;
  right: 20px;
  animation-delay: 0s;
}

.shape-square {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky), var(--mint));
  opacity: 0.6;
  bottom: 40px;
  right: 140px;
  animation-delay: -2s;
  transform: rotate(15deg);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--sunflower);
  opacity: 0.5;
  top: 60px;
  right: 200px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--peach));
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--sunflower));
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: var(--space-md);
  border-left: 5px solid var(--coral);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-accent-1 { border-left-color: var(--coral); }
.card-accent-2 { border-left-color: var(--sky); }
.card-accent-3 { border-left-color: var(--mint); }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--sunflower);
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.card h3 a {
  color: var(--text);
}

.card h3 a:hover {
  color: var(--accent);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.card time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Today's Saint Section --- */
.today-saint {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(77, 150, 255, 0.1));
  border: 2px solid var(--violet);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-lg);
}

.today-saint .section-title {
  color: var(--accent);
  text-align: center;
}

/* Highlight card for today */
.today-highlight {
  box-shadow: 0 8px 16px rgba(155, 89, 182, 0.2);
  border-left-width: 8px !important;
}

/* Loading placeholder */
.loading-placeholder {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
  font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Small hashtag display for cards */
.saint-hashtags-small {
  margin-top: var(--space-xs);
  font-size: 0.75rem;
}

.saint-hashtags-small .hashtag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--mist);
  border: 1px solid var(--mint);
  border-radius: 50px;
  color: var(--violet);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Summary preview styling */
.saint-summary-preview {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.patronage-preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .today-saint {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(77, 150, 255, 0.2));
}

[data-theme="dark"] .today-highlight {
  box-shadow: 0 8px 16px rgba(155, 89, 182, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .today-saint {
    padding: var(--space-md) var(--space-sm);
  }

  .saint-summary-preview {
    font-size: 0.85rem;
  }
}

/* --- Newsletter --- */
.newsletter {
  text-align: center;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--ink), var(--slate));
  color: var(--mist);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .newsletter-box {
  background: linear-gradient(135deg, #1a1a3e, #2a2a4e);
}

.newsletter-box h2 {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.newsletter-box p {
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--mist);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
  border-color: var(--coral);
}

/* --- Blog Listing --- */
.page-header {
  text-align: center;
  padding-bottom: var(--space-sm);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
}

.page-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-preview {
  background: var(--mist);
  border-radius: var(--radius);
  padding: var(--space-md);
  border-left: 5px solid var(--coral);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.post-preview:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.post-meta time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-preview h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.post-preview h2 a {
  color: var(--text);
}

.post-preview h2 a:hover {
  color: var(--accent);
}

.post-preview p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.read-more {
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Blog Post --- */
.blog-post {
  max-width: 760px;
}

.post-header {
  margin-bottom: var(--space-md);
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-top: var(--space-xs);
}

.post-meta-full {
  display: flex;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--text);
}

.post-body p {
  margin-bottom: var(--space-sm);
}

.post-body .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  border-left: 4px solid var(--sunflower);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-md);
}

.post-body ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.post-body li {
  margin-bottom: var(--space-xs);
}

.post-body pre {
  background: var(--ink);
  color: #e8e8f0;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 4px solid var(--sky);
}

[data-theme="dark"] .post-body pre {
  background: #1a1a3e;
}

.post-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--mist);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.about-text h3 {
  font-size: 1.3rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.fun-facts {
  background: var(--mist);
  padding: var(--space-md);
  border-radius: var(--radius);
  border-top: 4px solid var(--sunflower);
}

.fun-facts h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.fun-facts ul {
  list-style: none;
}

.fun-facts li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
  color: var(--text-muted);
}

.fun-facts li::before {
  content: '✦ ';
  color: var(--coral);
}

[data-theme="dark"] .fun-facts li {
  border-bottom-color: rgba(255,255,255,0.06);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 2px solid var(--mist);
  margin-top: var(--space-lg);
}

.heart {
  color: var(--coral);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 3px solid var(--sunflower);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: var(--space-lg) var(--space-md);
    min-height: auto;
  }

  .hero-shapes {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

/* ============================================
   SAINT PROFILE PAGE STYLES
   ============================================ */

/* Profile Hero */
.profile-hero {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.profile-hero-image {
  flex-shrink: 0;
  width: 260px;
}

.profile-hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--sunflower);
}

.profile-hero-placeholder {
  width: 260px;
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  font-weight: 900;
  color: white;
  opacity: 0.8;
}

.profile-hero-info {
  flex: 1;
}

.profile-hero-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.profile-dates {
  display: flex;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Saint Summary */
.saint-summary {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(77, 150, 255, 0.1));
  border: 2px solid var(--violet);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.saint-summary p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .saint-summary {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(77, 150, 255, 0.2));
}

/* Modern Headline */
.modern-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Saint Hashtags */
.saint-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.hashtag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--mist);
  border: 2px solid var(--mint);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
}

.hashtag:hover {
  background: var(--mint);
  color: var(--white);
  transform: translateY(-2px);
}

/* Saint Quote */
.saint-quote {
  background: linear-gradient(135deg, var(--ink), var(--slate));
  color: var(--mist);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  margin: var(--space-md) 0;
  border-left: 5px solid var(--sunflower);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .saint-quote {
  background: linear-gradient(135deg, #1a1a3e, #2a2a4e);
}

/* Patronage Grid */
.patronage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.patronage-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--mist);
  border: 2px solid var(--sunflower);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
}

.patronage-tag:hover {
  background: var(--sunflower);
  color: var(--ink);
}

/* Veneration List */
.veneration-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.veneration-list li {
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
  background: var(--mist);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--sky);
  font-weight: 600;
}

/* Profile footer links */
.post-footer {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-hero-image {
    width: 200px;
  }

  .profile-dates {
    justify-content: center;
  }

  .patronage-grid {
    justify-content: center;
  }

  .saint-hashtags {
    justify-content: center;
  }

  .saint-summary p {
    font-size: 1rem;
  }

  .modern-headline {
    font-size: 0.95rem;
  }
}
