/* ── Custom overrides on top of Bootstrap ─────────────── */

:root {
  --pc-primary:   #4f46e5;
  --pc-primary-d: #3730a3;
  --pc-accent:    #e11d48;
  --pc-dark:      #0f0f1a;
  --pc-dark2:     #1a1a2e;
  --pc-gray:      #6b7280;
}

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

body { font-family: 'Inter', sans-serif; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pc-primary) !important;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--pc-primary), #818cf8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 18px; height: 18px; }

.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  border-radius: 8px;
  transition: all 0.2s;
  color: #374151;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--pc-primary) !important;
  background: rgba(79,70,229,0.08);
}

.dropdown-menu {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 0.5rem;
}
.dropdown-item {
  border-radius: 8px;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  transition: all 0.15s;
}
.dropdown-item:hover { background: rgba(79,70,229,0.08); color: var(--pc-primary); }

/* Auth buttons */
.btn-login {
  background: transparent;
  border: 1.5px solid var(--pc-primary);
  color: var(--pc-primary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  transition: all 0.2s;
}
.btn-login:hover { background: var(--pc-primary); color: white; }

.btn-signup {
  background: var(--pc-primary);
  border: 1.5px solid var(--pc-primary);
  color: white;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  transition: all 0.2s;
}
.btn-signup:hover { background: var(--pc-primary-d); border-color: var(--pc-primary-d); color: white; }

/* Dark toggle */
.btn-dark-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.btn-dark-toggle:hover { border-color: var(--pc-primary); color: var(--pc-primary); }
.btn-dark-toggle svg { width: 16px; height: 16px; }

/* ── Carousel ──────────────────────────────────────────── */
.carousel { position: relative; }
.carousel-item img {
  height: 520px;
  object-fit: cover;
  filter: brightness(0.65);
}
.carousel-caption {
  bottom: 15%;
  text-align: left;
  left: 8%;
  right: auto;
  max-width: 560px;
}
.carousel-caption h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
}
.carousel-caption p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.carousel-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.carousel-tag:hover { transform: translateY(-1px); }
.tag-tech    { background: rgba(239,68,68,0.85);  color: white; }
.tag-webdev  { background: rgba(59,130,246,0.85); color: white; }
.tag-fun     { background: rgba(16,185,129,0.85); color: white; }

.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  border: none;
  opacity: 0.5;
  transition: all 0.3s;
}
.carousel-indicators [data-bs-target].active {
  width: 24px;
  border-radius: 4px;
  opacity: 1;
}

/* ── Trending bar ──────────────────────────────────────── */
.trending-bar {
  background: var(--pc-primary);
  color: white;
  padding: 0.6rem 0;
  font-size: 0.82rem;
  overflow: hidden;
}
.trending-label {
  background: var(--pc-accent);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.trending-ticker {
  overflow: hidden;
  flex: 1;
  margin-left: 1rem;
}
.ticker-inner {
  display: flex;
  gap: 2.5rem;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-inner span { opacity: 0.9; }
.ticker-inner span::before { content: "● "; opacity: 0.5; margin-right: 0.25rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section headings ──────────────────────────────────── */
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
}
.section-divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--pc-primary), #818cf8);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* ── Article cards ─────────────────────────────────────── */
.article-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
  background: white;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: rgba(79,70,229,0.25);
}
.article-card .card-img-wrap {
  height: 200px;
  overflow: hidden;
}
.article-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .card-img-wrap img { transform: scale(1.05); }
.article-card .card-body { padding: 1.25rem; }

.article-tag-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.tag-world    { background: rgba(59,130,246,0.1);  color: #2563eb; }
.tag-design   { background: rgba(16,185,129,0.1);  color: #059669; }
.tag-tech     { background: rgba(239,68,68,0.1);   color: #dc2626; }
.tag-trends   { background: rgba(245,158,11,0.1);  color: #d97706; }
.tag-coding   { background: rgba(79,70,229,0.1);   color: #4f46e5; }

.article-card h5 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.article-card:hover h5 { color: var(--pc-primary); }
.article-card .card-text { font-size: 0.85rem; color: #6b7280; line-height: 1.6; }
.article-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}
.read-link {
  color: var(--pc-primary);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}
.read-link:hover { gap: 0.5rem; color: var(--pc-primary-d); }

/* ── Newsletter ────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-d) 100%);
  padding: 3.5rem 1rem;
  border-radius: 20px;
}
.newsletter-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}
.newsletter-section p { color: rgba(255,255,255,0.8); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--pc-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-brand:hover { color: #818cf8; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: #818cf8; }
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 2rem 0 1rem; }
.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: white; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-content { border-radius: 16px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { border-bottom: 1px solid #f3f4f6; padding: 1.25rem 1.5rem; }
.modal-title { font-family: 'Syne', sans-serif; font-weight: 700; }
.modal-body { padding: 1.5rem; }

/* ── About page ────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  padding: 5rem 0;
  border-bottom: 1px solid #e0e7ff;
}
.about-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1e1b4b;
}
.featurette-section { padding: 4rem 0; border-bottom: 1px solid #f3f4f6; }
.featurette-section:last-child { border: none; }
/* Card variant used in About "values" grid */
.row .featurette-section {
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.25s;
  background: white;
}
.row .featurette-section:hover {
  box-shadow: 0 8px 28px rgba(79,70,229,0.12);
  border-color: rgba(79,70,229,0.3);
  transform: translateY(-3px);
}
.featurette-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.featurette-heading { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: #111827; }
.featurette-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
}
.featurette-section img { border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.stat-num, .stat-number { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--pc-primary); }
.stat-label { font-size: 0.82rem; color: #6b7280; margin-top: 0.25rem; }

/* ── Contact page ──────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid #e0e7ff;
}
.contact-hero h1 { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: #1e1b4b; }
.contact-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-info-icon {
  width: 36px; height: 36px;
  background: rgba(79,70,229,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--pc-primary);
}
.contact-info-icon svg { width: 16px; height: 16px; }

/* ── Dark Mode ─────────────────────────────────────────── */
[data-theme="dark"] body, body.dark-mode {
  background: #0f0f1a !important;
  color: #e5e7eb !important;
}
[data-bs-theme="dark"] .article-card,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .contact-card,
[data-bs-theme="dark"] .row .featurette-section { background: #1a1a2e; border-color: #2e2e4a; }
[data-bs-theme="dark"] .about-hero,
[data-bs-theme="dark"] .contact-hero { background: linear-gradient(135deg, #1a1a2e 0%, #2e2e4a 100%); border-color: #2e2e4a; }
[data-bs-theme="dark"] .about-hero h1,
[data-bs-theme="dark"] .contact-hero h1 { color: #e0e7ff; }
[data-bs-theme="dark"] .featurette-heading { color: #f3f4f6; }
[data-bs-theme="dark"] .section-title { color: #f9fafb; }
[data-bs-theme="dark"] .article-card h5 { color: #f3f4f6; }
[data-bs-theme="dark"] .footer-links a { color: rgba(255,255,255,0.5); }

/* ── Utilities ─────────────────────────────────────────── */
.letter-spacing { letter-spacing: 0.08em; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .carousel-item img { height: 320px; }
  .carousel-caption { bottom: 8%; }
  .carousel-caption h2 { font-size: 1.4rem; }
}
