/* ============================================================
   Pushpodhara - Modern Portal Index Page Styles
   Clean, light, contemporary design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-300: #86efac;
  --brand-400: #4ade80;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;
  --accent-gold: #c8923a;
  --accent-gold-light: #e4a853;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 40%, #f0fdfa 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-900);
}

/* ---------- Animated Background Blobs ---------- */
.portal-bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.portal-bg-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobPulse 4s ease-in-out infinite alternate;
}

.portal-bg-blobs .blob-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: rgba(34, 197, 94, 0.12);
}

.portal-bg-blobs .blob-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: rgba(20, 184, 166, 0.12);
  animation-delay: 1s;
}

.portal-bg-blobs .blob-3 {
  width: 350px;
  height: 350px;
  top: 40%;
  left: 30%;
  background: rgba(34, 197, 94, 0.06);
  animation-delay: 2s;
}

@keyframes blobPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* ---------- Portal Page Container ---------- */
.portal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.portal-header {
  padding: 48px 0 32px;
  text-align: center;
}

.portal-header .container { max-width: 700px; }

.brand-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 12px;
  object-fit: contain;
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  font-weight: 500;
}

.brand-divider {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand-500), #0d9488);
  margin-top: 4px;
}

/* ---------- Cards Section ---------- */
.portal-cards-section {
  flex: 1;
  padding: 16px 0 48px;
}

.portal-cards-section .container {
  max-width: 1000px;
}

.section-label {
  text-align: center;
  margin-bottom: 32px;
}

.section-label h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
}

.section-label p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
  font-weight: 400;
}

/* ---------- Portal Cards ---------- */
.portal-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 229, 0.6);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  margin-bottom: 24px;
}

.portal-card:nth-child(1) { animation-delay: 0.1s; }
.portal-card:nth-child(2) { animation-delay: 0.2s; }
.portal-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

/* Featured card */
.portal-card-featured {
  border-color: rgba(200, 146, 58, 0.3);
  box-shadow: 0 4px 16px rgba(200, 146, 58, 0.08);
}

.portal-card-featured:hover {
  box-shadow: 0 12px 32px rgba(200, 146, 58, 0.15);
  border-color: rgba(200, 146, 58, 0.4);
}

/* Card Top */
.portal-card-top {
  padding: 28px 28px 20px;
  text-align: center;
}

.portal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}

.portal-icon-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.portal-card-top h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 6px;
}

.portal-badge {
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.top-featured .portal-badge {
  background: #fef3c7;
  color: #92400e;
}

/* Card Bottom */
.portal-card-bottom {
  padding: 0 28px 28px;
  text-align: center;
}

.portal-card-bottom p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Portal Buttons */
.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-admin {
  background: linear-gradient(135deg, #16a34a, #0d9488);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-admin:hover {
  background: linear-gradient(135deg, #15803d, #0f766e);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-featured {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 146, 58, 0.25);
}

.btn-featured:hover {
  background: linear-gradient(135deg, #b07d2e, var(--accent-gold));
  box-shadow: 0 6px 20px rgba(200, 146, 58, 0.35);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-customer {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-customer:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.portal-footer {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.5);
}

.portal-footer p {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0;
  font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .portal-header {
    padding: 32px 0 24px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .brand-name {
    font-size: 22px;
  }

  .portal-card {
    margin-bottom: 16px;
  }

  .portal-card-top {
    padding: 20px 20px 14px;
  }

  .portal-card-bottom {
    padding: 0 20px 20px;
  }

  .section-label {
    margin-bottom: 24px;
  }
}