/* ================================================ */
/* REUSABLE UI COMPONENTS                           */
/* Contains styles for common UI elements used      */
/* across multiple pages.                           */
/* ================================================ */

/* -------------------------
   BUTTON STYLES
   ------------------------- */
.btn {
  background: linear-gradient(90deg, var(--neon), var(--accent));
  color: #000;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,255,255,0.06);
  min-width: 120px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,191,255,0.10);
}

/* Secondary button variant */
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(0,191,255,0.06), rgba(0,255,255,0.02));
}

/* Neon green button (special style) */
.btn.neon-green {
  background-color: #39ff14;
  background: transparent;
  color: var(--text);
  font-weight: bold;
  box-shadow: 0 0 5px #39ff14, 0 0 10px #39ff14, 0 0 15px #39ff14;
  transition: all 0.3s ease-in-out;
}

.btn.neon-green:hover {
  box-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 30px #39ff14;
  transform: scale(1.05);
}

/* Button container */
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* -------------------------
   CARD STYLES (Base)
   ------------------------- */
.card {
  background: var(--secondary);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.02);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,191,255,0.12);
}

/* Category pill/chip */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;

  background: linear-gradient(90deg, rgba(0,255,255,0.06), rgba(0,191,255,0.03));
  border: 1px solid #00ffff; /* Bright cyan border */
  box-shadow: 0 0 8px #00ffff88; /* Soft neon glow */
}

/* Event date badge */
.event-date {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* -------------------------
   AVATAR STYLES
   ------------------------- */
.avatar {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  box-shadow: 0 0 10px var(--neon), 0 0 25px var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  margin-bottom: 8px;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

/* Avatar image container */
.avatar-img-container {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar image styling */
.avatar-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

/* Hover effects */
.avatar:hover .avatar-img-container img {
  transform: scale(1.05);
}

/* Officer card hover effects */
.officer:hover .avatar {
  transform: scale(1.05) rotate(2deg);
}

/* -------------------------
   CONTACT FORM STYLES
   ------------------------- */
form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 12px;
  color: var(--text);
  border-radius: 8px;
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition);
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0,191,255,0.06);
}

/* Loading spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--neon);
  animation: spin 1s ease-in-out infinite;
}

/* Error message styling */
.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

/* Success message */
.form-success {
  display: none;
  padding: 12px;
  background: rgba(57,255,20,0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  margin-top: 12px;
}

/* -------------------------
   FAQ SECTION STYLES
   ------------------------- */
details {
  background: rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.02);
  transition: var(--transition);
}

details[open] {
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  border-color: var(--accent);
  background: rgba(0,191,255,0.02);
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin-top: 8px;
  color: var(--text-muted);
}

/* -------------------------
   SOCIAL ICONS
   ------------------------- */
.socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.02);
  transition: var(--transition);
}

.social:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,191,255,0.06);
  background: rgba(0,191,255,0.05);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: var(--neon);
}

/* -------------------------
   BACK TO TOP BUTTON
   ------------------------- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--neon);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,191,255,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* Responsive Adjustments (Components) */
@media (max-width: 768px) {
  .avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .socials {
    justify-content: center;
  }
}