/**
 * CDK Homepage Styles
 */

/* Hero Section */
.cdk-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 80px 0;
  margin-bottom: 60px;
}

.cdk-hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cdk-hero__tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cdk-hero__actions {
  margin-top: 2rem;
}

.cdk-hero__actions .btn {
  padding: 12px 28px;
  font-weight: 500;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cdk-hero__actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Feature Cards */
.cdk-features {
  padding: 40px 0 80px;
}

.cdk-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cdk-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.cdk-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.cdk-card--blue .cdk-card__icon {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.cdk-card--green .cdk-card__icon {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.cdk-card--yellow .cdk-card__icon {
  background: rgba(255, 193, 7, 0.15);
  color: #cc9a06;
}

.cdk-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

.cdk-card__description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cdk-card__link {
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.cdk-card--blue .cdk-card__link { color: #0d6efd; }
.cdk-card--green .cdk-card__link { color: #198754; }
.cdk-card--yellow .cdk-card__link { color: #cc9a06; }

.cdk-card__link:hover {
  gap: 0.75rem;
}

/* Activity Section */
.cdk-activity {
  background: #f8f9fa;
  padding: 60px 0;
}

.cdk-activity__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdk-activity__list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cdk-activity__item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.cdk-activity__item:last-child {
  border-bottom: none;
}

.cdk-activity__item:hover {
  background-color: #f8f9fa;
}

.cdk-activity__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.cdk-activity__name {
  flex-grow: 1;
  font-weight: 500;
  color: #212529;
}

.cdk-activity__count {
  color: #6c757d;
  font-size: 0.875rem;
  background: #e9ecef;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* About Section */
.cdk-about {
  padding: 80px 0;
  background: #fff;
}

.cdk-about__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

.cdk-about__text {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cdk-hero {
    padding: 60px 0;
  }

  .cdk-hero__title {
    font-size: 2rem;
  }

  .cdk-hero__tagline {
    font-size: 1rem;
  }

  .cdk-hero__actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .cdk-hero__actions .btn.me-3 {
    margin-right: 0 !important;
  }

  .cdk-features {
    padding: 40px 0;
  }

  .cdk-card {
    margin-bottom: 1rem;
  }
}

/* Remove default Drupal page title when on homepage */
.path-welcome .page-title {
  display: none;
}

/* Ensure full width for homepage */
.path-welcome .region-content {
  max-width: 100%;
  padding: 0;
}

.path-welcome main.main-content {
  padding-top: 0;
}
