/* ============================================
   PAGE LAYOUT WITH OVERLAPPING CARDS
   Shared component for all subpages
   ============================================ */

/* Hero Section - Copilot twilight gradient */
.page-hero {
  background: linear-gradient(
    135deg,
    #0b1120 0%,
    #0f1a2e 30%,
    #163348 60%,
    #1e4a5c 100%
  );
  color: #fff;
  padding: 30px 20px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

/* Quick Access Cards - Overlapping Design */
.page-quick-access {
  max-width: 1200px;
  margin: -50px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.page-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Support for different card counts */
.page-cards-grid.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.page-cards-grid.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.page-cards-grid.cards-5 {
  grid-template-columns: repeat(5, 1fr);
}

.page-cards-grid.cards-6 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .page-cards-grid.cards-3,
  .page-cards-grid.cards-4,
  .page-cards-grid.cards-5,
  .page-cards-grid.cards-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-cards-grid,
  .page-cards-grid.cards-3,
  .page-cards-grid.cards-4,
  .page-cards-grid.cards-5,
  .page-cards-grid.cards-6 {
    grid-template-columns: 1fr;
  }

  .page-quick-access {
    margin-top: -20px;
  }

  .page-hero {
    padding-bottom: 40px;
  }
}

/* Card Style */
.page-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

/* Card Icon - Circular with background */
.page-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}

/* Icon color variants */
.page-card-icon.icon-primary {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.page-card-icon.icon-secondary {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.page-card-icon.icon-accent {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.page-card-icon.icon-violet {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.page-card-icon.icon-rose {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
}

.page-card-icon.icon-blue {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.page-card-icon.icon-emerald {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.page-card-icon.icon-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

/* Default icon style */
.page-card-icon:not([class*="icon-"]) {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

/* For Lucide icons inside card icon */
.page-card-icon svg,
.page-card-icon i {
  width: 32px;
  height: 32px;
}

.page-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #f1f5f9;
}

.page-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

/* Main Content Area */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Alternative: Section without overlap for content below cards */
.page-section {
  padding: 40px 0;
}

.page-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 12px 0;
}

.page-section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
