/* ─────────────────────────────────────────────────────────────────
   VYBR — Custom Enhancements
   NO dark mode. NO :root overrides. Extends styles.css only.
   ───────────────────────────────────────────────────────────────── */

/* ── Focus / Accessibility ──────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Profile ────────────────────────────────────────────────────── */
.user-profile-header {
  background: var(--grad-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.profile-pic {
  width: 100px; height: 100px; object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.user-profile-header a { color: var(--primary); }
.user-profile-header a:hover { color: var(--primary-dark); }
.profile-header-bg { height: 140px; border-radius: var(--radius) var(--radius) 0 0; }
.bio-section { line-height: 1.6; }
.bio-section a { color: var(--primary); }
.bio-section a:hover { text-decoration: underline; }

/* ── Community Cards ────────────────────────────────────────────── */
.community-icon-sm,
.community-icon-lg {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: white; flex-shrink: 0;
}
.community-icon-sm { width: 44px; height: 44px; font-size: 1.1rem; }
.community-icon-lg { width: 56px; height: 56px; font-size: 1.5rem; }

.community-card {
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--secondary);
  transition: all .15s;
}
.community-card-link .community-card { box-shadow: var(--shadow); }
.community-card-link:hover .community-card {
  box-shadow: 0 6px 28px rgba(99,102,241,.12);
  transform: translateY(-2px);
  border-color: var(--n-300);
}

/* ── Community Header ───────────────────────────────────────────── */
.community-icon-xl {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: white; font-size: 2rem; flex-shrink: 0;
}

/* ── Create Post Pills ──────────────────────────────────────────── */
.post-type-pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border: 2px solid var(--border);
  border-radius: 20px; cursor: pointer;
  transition: all .15s;
  background: var(--bg2); color: var(--text-secondary);
  font-weight: 700; font-size: .9rem;
}
.post-type-pill:hover { border-color: var(--primary); color: var(--primary); }
input[type="radio"]:checked + .post-type-pill {
  background: var(--grad); color: #fff; border-color: transparent;
}

.content-pane { display: none; }
.content-pane.show { display: block; animation: fadeUp .2s var(--ease); }
@keyframes fadeUp { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

.upload-area {
  transition: all .15s;
  border: 2px dashed var(--border) !important;
  background: var(--n-50) !important;
  border-radius: var(--radius) !important;
}
.upload-area:hover { background: var(--grad-soft) !important; border-color: var(--primary) !important; }

/* ── Loading Spinner ────────────────────────────────────────────── */
.spinner {
  border: 3px solid var(--n-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ── Notification Pulse ─────────────────────────────────────────── */
.notification-badge::after {
  content:''; position:absolute; top:-2px; right:-2px;
  width:12px; height:12px; background:var(--danger);
  border-radius:50%; border:2px solid #fff;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* ── Save / Bookmark ────────────────────────────────────────────── */
.save-btn.saved { color: var(--primary); }
.save-btn.saved i { animation: bookmarkBounce .6s ease-out; }
@keyframes bookmarkBounce { 0%{transform:scale(1)} 50%{transform:scale(1.2) rotate(-8deg)} 100%{transform:scale(1)} }

/* ── Footer ─────────────────────────────────────────────────────── */
.vybr-footer {
  background: var(--bg2); border-top: 1.5px solid var(--border);
  padding-top: 3rem; margin-top: 4rem;
}
.vybr-footer a { color: var(--text-secondary); }
.vybr-footer a:hover { color: var(--primary); }

.footer-social-icons { display: flex; gap: .75rem; }
.footer-social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); background: var(--n-100); color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all .15s;
}
.footer-social-link:hover {
  background: var(--grad); color: #fff; border-color: transparent;
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(255,69,0,.25);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { font-size: .875rem; font-weight: 600; }

.footer-legal-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; justify-content: flex-end; gap: 1.5rem; flex-wrap: wrap;
}
.footer-legal-links a { font-size: .8rem; color: var(--text-secondary); font-weight: 600; }
.footer-legal-links a:hover { color: var(--primary); }

/* ── Back to Top ────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; background: var(--grad); color: #fff;
  border: none; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 14px rgba(255,69,0,.30); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ── Page Fade-in ───────────────────────────────────────────────── */
main, .page-content { animation: fadeIn .4s var(--ease); }

/* ── Mobile Touch Targets ───────────────────────────────────────── */
@media (max-width: 768px) {
  .form-control, .form-select { min-height: 44px; font-size: 16px; }
  .footer-legal-links { flex-direction: column; gap: .6rem; text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; width: 48px; height: 48px; }
}
