/*
 Theme Name: YLYN Bootstrap
 Theme URI: https://ylyn.org
 Description: Modern Bootstrap NGO-style theme for YLYN – Support for Every Step
 Author: YLYN
 Version: 1.0
*/

:root {
  --ylyn-primary: #4f46e5;   /* indigo */
  --ylyn-secondary: #a855f7; /* purple */
  --ylyn-bg: #f4f5fb;
  --ylyn-text: #111827;
  --ylyn-muted: #6b7280;
  --ylyn-radius: 16px;
}

/* Basic reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ylyn-bg);
  color: var(--ylyn-text);
  margin: 0;
}

/* Links */
a {
  color: var(--ylyn-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.navbar-brand span.ylyn-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #a855f7, #4f46e5);
  color: #fff;
  font-size: 0.9rem;
  margin-right: 6px;
  font-weight: 700;
}

/* Dark mode toggle button */
.ylyn-dark-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 4px 10px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
}
.ylyn-dark-toggle:hover {
  background: #e5e7eb;
}

/* Main container wrapper */
.site-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ------------------------------- */
/*  HERO SECTION (full width)      */
/* ------------------------------- */

.ylyn-hero-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: radial-gradient(circle at 10% 0%, #6366f1 0%, #4f46e5 35%, #312e81 80%, #0f172a 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 60px 0 70px;
}

.ylyn-hero-wrapper::before,
.ylyn-hero-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
}
.ylyn-hero-wrapper::before {
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.6);
  top: -80px;
  left: -60px;
}
.ylyn-hero-wrapper::after {
  width: 320px;
  height: 320px;
  background: rgba(168, 85, 247, 0.5);
  bottom: -120px;
  right: -80px;
}

.ylyn-hero-inner {
  position: relative;
  z-index: 1;
}

/* Hero text */
.ylyn-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.ylyn-hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ylyn-hero-text {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 540px;
}

/* Hero buttons */
.ylyn-hero-actions .btn {
  border-radius: 999px;
  font-weight: 600;
}
.ylyn-hero-actions .btn-primary {
  background: #ffffff;
  color: #1d4ed8;
  border: none;
}
.ylyn-hero-actions .btn-primary:hover {
  background: #e5f0ff;
}
.ylyn-hero-actions .btn-outline-light {
  border-width: 1px;
}

/* Hero metrics */
.ylyn-hero-metrics {
  margin-top: 1.5rem;
}
.ylyn-hero-metrics .metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.ylyn-hero-metrics .metric-value {
  font-size: 1rem;
  font-weight: 600;
}

/* Hero right card */
.ylyn-hero-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(14px);
}
.ylyn-hero-card ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0.8rem;
}
.ylyn-hero-card li + li {
  margin-top: 6px;
}

/* Three pillars cards */
.ylyn-pillars .card {
  border-radius: var(--ylyn-radius);
  border: 1px solid #e5e7eb;
}

/* Blog preview cards */
.ylyn-blog-card .card {
  border-radius: 16px;
}

/* Icons (emoji) */
.ylyn-emoji {
  font-size: 1.8rem;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #cbd5f5;
}
.site-footer a {
  color: #e5e7eb;
}
.site-footer a:hover {
  color: #ffffff;
}

/* ------------------------------- */
/* Dark Mode                       */
/* ------------------------------- */

body.ylyn-dark {
  background: #020617;
  color: #e5e7eb;
}

body.ylyn-dark .site-header {
  background: #020617;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.9);
}
body.ylyn-dark .navbar-light {
  background: transparent !important;
}
body.ylyn-dark .navbar-light .navbar-nav .nav-link {
  color: #e5e7eb;
}
body.ylyn-dark .navbar-light .navbar-nav .nav-link:hover {
  color: #a5b4fc;
}
body.ylyn-dark .ylyn-pillars .card,
body.ylyn-dark .ylyn-blog-card .card {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
}
body.ylyn-dark .site-footer {
  background: #000;
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .ylyn-hero-text {
    max-width: 100%;
  }
}
.site-footer,
.site-footer p,
.site-footer li,
.site-footer small {
  color: #e2e8f0 !important; /* light grey */
}

.site-footer a {
  color: #f0f5ff !important;
}

.site-footer a:hover {
  color: #ffffff !important;
}
body.ylyn-dark .card {
  background: #0f172a !important;
  color: #e5e7eb !important;
  border-color: #1e293b !important;
}

body.ylyn-dark .ylyn-hero-wrapper {
  background: radial-gradient(circle at 10% 0%, #312e81 0%, #1e1b4b 50%, #000 100%) !important;
}
/* ---------------------------------------- */
/* Fix Dark Mode Card Text Visibility       */
/* ---------------------------------------- */

body.ylyn-dark .card,
body.ylyn-dark .ylyn-card,
body.ylyn-dark .ylyn-pillars .card,
body.ylyn-dark .ylyn-blog-card .card {
    background: #0b1120 !important;    /* Deep navy */
    border-color: #1e293b !important;
    color: #f1f5f9 !important;         /* Light slate */
}

/* Text inside card */
body.ylyn-dark .card p,
body.ylyn-dark .card h1,
body.ylyn-dark .card h2,
body.ylyn-dark .card h3,
body.ylyn-dark .card h4,
body.ylyn-dark .card h5,
body.ylyn-dark .card h6,
body.ylyn-dark .card a,
body.ylyn-dark .ylyn-card p,
body.ylyn-dark .ylyn-card a {
    color: #e2e8f0 !important;         /* Soft white */
}

/* Links inside cards */
body.ylyn-dark .card a:hover,
body.ylyn-dark .ylyn-card a:hover {
    color: #a5b4fc !important;         /* Purple hover */
}

/* Icons/emoji inside cards */
body.ylyn-dark .ylyn-emoji {
    filter: brightness(1.4);
}
/* Fix: light gray subtitle text in dark mode */
body.ylyn-dark .text-muted,
body.ylyn-dark p.text-muted,
body.ylyn-dark .ylyn-subtext {
  color: #9ca3af !important;   /* softer light gray */
  opacity: 0.9 !important;
}

body.ylyn-dark .ylyn-project-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}
body.ylyn-dark .ylyn-project-card .card-text {
  color: #cbd5e1;
}
body.ylyn-dark .ylyn-project-card:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.05);
}

/* Project Card Hover */
.ylyn-project-card {
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.ylyn-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Coming soon badge */
.ylyn-badge-coming {
  display: inline-block;
  background: #fbbf24;
  color: #1f2937;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Dark Mode */
body.ylyn-dark .ylyn-project-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}
body.ylyn-dark .ylyn-badge-coming {
  background: #fbbf24;
  color: #111;
}

body.ylyn-dark input,
body.ylyn-dark textarea {
    background: #0f172a;
    border-color: #1e293b;
    color: #e5e7eb;
}

body.ylyn-dark input::placeholder,
body.ylyn-dark textarea::placeholder {
    color: #94a3b8;
}