/* =========================================================
   Rohilla Sanstha - Main Stylesheet
   ========================================================= */

:root {
  --saffron: #ff6b00;
  --saffron-lt: #ff8729;
  --deep: #1a1a2e;
  --deep-md: #0f3460;
  --gold: #f5c518;
  --white: #ffffff;
  --gray-100: #f9fafb;
}

/* ── Base ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  color: #1e293b;
}

/* ── Headings ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
}

/* ── Navbar ── */
#navbar {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 30, 0.9) 0%,
    transparent 100%
  );
}
#navbar.scrolled {
  background: rgba(15, 15, 35, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Hero ── */
.hero-gradient {
  background: linear-gradient(135deg, #0d0d2b 0%, #1a1a4e 40%, #2d0a0a 100%);
}
.hero-text-gradient {
  background: linear-gradient(90deg, #ff6b00, #ffd700, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 3s infinite linear;
}
@keyframes shimmer {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

/* ── Section Headings ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.12),
    rgba(245, 197, 24, 0.12)
  );
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--saffron);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: UPpercase;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #0d0d2b;
  line-height: 1.2;
}
.section-title span {
  color: var(--saffron);
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  margin: 12px 0;
}

/* ── Cards ── */
.card-hover {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-card {
  background: linear-gradient(135deg, var(--saffron) 0%, #ff8c00 100%);
}
.stat-card-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}
.stat-card-green {
  background: linear-gradient(135deg, #14532d 0%, #22c55e 100%);
}
.stat-card-purple {
  background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%);
}

/* ── Buttons ── */
.btn-saffron {
  background: linear-gradient(135deg, #ff6b00, #ff8c00);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-saffron:hover {
  background: linear-gradient(135deg, #e65c00, #ff6b00);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--saffron);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--saffron);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--saffron);
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--saffron);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-white:hover {
  background: #fff3e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ── Forms ── */
.form-input {
  width: 100%;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #374151;
  transition: border-color 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.08);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ── Donation card ── */
.donate-card {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.donate-card:hover,
.donate-card.selected {
  border-color: var(--saffron);
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

/* ── ID Card ── */
.id-card {
  width: 340px;
  min-height: 540px;
  background: linear-gradient(145deg, #1a1a2e 0%, #0f3460 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 107, 0, 0.2);
  position: relative;
  color: white;
  font-family: "Poppins", sans-serif;
}
.id-card-accent {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ff6b00, #ffd700, #ff6b00);
}
.id-card-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #ff6b00;
  object-fit: cover;
}

/* ── Certificate ── */
.cert-wrapper {
  width: 842px;
  min-height: 595px;
  background: white;
  border: 12px solid #1a1a2e;
  box-shadow: inset 0 0 0 4px #ff6b00;
  padding: 40px;
  position: relative;
}
.cert-border-inner {
  border: 2px dashed rgba(255, 107, 0, 0.3);
  padding: 30px;
  min-height: 100%;
}

/* ── Gallery ── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.gallery-item img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Progress Bar ── */
.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 4px;
  transition: width 1.5s ease;
}

/* ── Counter ── */
.counter-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ff6b00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Testimonials ── */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--saffron);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ── Admin Sidebar ── */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0d0d2b 0%, #1a1a2e 100%);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: #f8fafc;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s;
  margin: 2px 8px;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 107, 0, 0.15);
  color: white;
  padding-left: 20px;
}
.admin-nav-link .icon {
  width: 18px;
  color: rgba(255, 107, 0, 0.8);
}
.admin-nav-link.active .icon {
  color: #ff6b00;
}
.admin-nav-groUP {
  padding: 8px 16px 4px;
  font-size: 0.7rem;
  text-transform: UPpercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* ── Member Sidebar ── */
.member-sidebar {
  width: 240px;
}
.member-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #4b5563;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s;
}
.member-nav-link:hover,
.member-nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.1),
    rgba(245, 197, 24, 0.1)
  );
  color: var(--saffron);
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: #1a1a2e;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: UPpercase;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.87rem;
  color: #374151;
}
.data-table tr:hover td {
  background: #fef9f5;
}

/* ── Status Badges ── */
.badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-active {
  background: #dcfce7;
  color: #15803d;
}
.badge-pending {
  background: #fef9c3;
  color: #854d0e;
}
.badge-inactive {
  background: #f1f5f9;
  color: #64748b;
}
.badge-rejected {
  background: #fee2e2;
  color: #dc2626;
}
.badge-completed {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ── Utilities ── */
.text-gradient {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-saffron-gradient {
  background: linear-gradient(135deg, #ff6b00, #ff8c00);
}
.bg-deep-gradient {
  background: linear-gradient(135deg, #0d0d2b, #1a1a2e);
}
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}
.fade-in {
  animation: fadeIn 0.4s ease-in;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .id-card {
    width: 100%;
    max-width: 340px;
  }
  .cert-wrapper {
    width: 100%;
  }
}
