/**
 * NiPSA — Animations & Additional Styles
 * /assets/css/animations.css
 */

/* ── Site flash message ─────────────────────────────────── */
.site-flash {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  position: sticky;
  top: 80px;
  z-index: 999;
  border-bottom: 1px solid transparent;
}
.site-flash--success { background: #dcfce7; color: #15803d; border-color: #86efac; }
.site-flash--error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.site-flash--info    { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.site-flash--warning { background: #fef9c3; color: #854d0e; border-color: #fde047; }

/* ── Flash inside page ──────────────────────────────────── */
.flash-msg {
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Marquee animation ──────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-bar:hover .marquee-track { animation-play-state: paused; }

/* ── Scroll indicator ───────────────────────────────────── */
@keyframes scrollPulse {
  0%, 100% { height: 48px; opacity: 1; }
  50%       { height: 32px; opacity: 0.4; }
}

/* ── Shimmer skeleton ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Floating shapes in hero ────────────────────────────── */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(10px, -15px) rotate(5deg); }
  66%       { transform: translate(-8px, 10px) rotate(-3deg); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-12px, -20px); }
}
.shape.s1 { animation: float1 12s ease-in-out infinite; }
.shape.s2 { animation: float2 16s ease-in-out infinite; }
.shape.s3 { animation: float1 10s ease-in-out infinite reverse; }

/* ── Modal entrance ─────────────────────────────────────── */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ── Plan card popular pulse ────────────────────────────── */
@keyframes popularPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,140,69,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(45,140,69,0); }
}
.plan-card.popular { animation: popularPulse 3s ease-in-out infinite; }

/* ── Dashboard topbar brand ─────────────────────────────── */
.dash-nav-section {
  padding: 10px 24px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.nav-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

/* ── Admin editor buttons ───────────────────────────────── */
.editor-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-body);
}
.editor-btn:hover {
  background: var(--white);
  border-color: var(--gray-200);
}

/* ── Table actions ──────────────────────────────────────── */
.table-action {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  text-decoration: none;
  color: var(--gray-700);
  display: inline-block;
}
.table-action:hover  { background: var(--green-pale); border-color: var(--green-main); color: var(--green-dark); }
.table-action.danger:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

/* ── Badges ─────────────────────────────────────────────── */
.badge         { display: inline-flex; padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.badge-green   { background: #dcfce7; color: #15803d; }
.badge-yellow  { background: #fef9c3; color: #854d0e; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-blue    { background: #dbeafe; color: #1d4ed8; }
.badge-purple  { background: #fdf4ff; color: #7c3aed; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── Responsive admin/dashboard ─────────────────────────── */
@media (max-width: 1024px) {
  .admin-cards   { grid-template-columns: repeat(2,1fr) !important; }
  .form-2col     { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .admin-layout,
  .dashboard-layout  { grid-template-columns: 1fr !important; }
  .admin-sidebar,
  .dashboard-sidebar { display: none !important; }
  .dash-cards        { grid-template-columns: 1fr !important; }
  .contact-grid      { grid-template-columns: 1fr !important; }
  .news-grid         { grid-template-columns: 1fr !important; }
  .about-vision-grid { grid-template-columns: 1fr !important; }
  .board-grid        { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .board-grid        { grid-template-columns: 1fr !important; }
  .membership-plans  { grid-template-columns: 1fr !important; }
  .wg-grid           { grid-template-columns: 1fr !important; }
}
