/**
 * @file
 * Premium Card styles for church nodes.
 */

/* Premium Card Container */
.church-premium-card {
  border: 2px solid #7db500; /* Green border */
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 20px;
}

.church-premium-card__wrapper {
  display: flex;
  flex-direction: row;
  min-height: 200px;
}

/* Left: Image Section (30%) */
.church-premium-card__image {
  width: 30%;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
  border-right: 2px solid #7db500; /* Green border on the right of image */
}

.church-premium-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.church-premium-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  min-height: 200px;
}

/* Right: Content Section (70%) */
.church-premium-card__content {
  width: 70%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Church Title */
.church-premium-card__title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.church-premium-card__title a {
  color: #0097db; /* Site link blue color */
  text-decoration: none;
}

.church-premium-card__title a:hover {
  text-decoration: underline;
}

/* Rating Section */
.church-premium-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.church-premium-card__stars {
  display: flex;
  gap: 2px;
}

.church-premium-card__stars .star {
  color: #F97316; /* Orange color for stars */
  font-size: 18px;
  line-height: 1;
}

.church-premium-card__rating-text {
  color: #333333;
  font-size: 14px;
  font-weight: 500;
}

/* Pastor Name */
.church-premium-card__pastor {
  color: #333333;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Meta Section - Three items in one line */
.church-premium-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
  align-items: center;
}

.church-premium-card__meta-item {
  color: #0097db; /* Site link blue color */
  font-size: 14px;
}

.church-premium-card__meta-item a {
  color: #0097db;
  text-decoration: none;
}

.church-premium-card__meta-item a:hover {
  text-decoration: underline;
}

.church-premium-card__meta-item span {
  color: #0097db;
}

/* Members item - ensure blue color and hide any icons */
.church-premium-card__meta-item--members {
  color: #0097db;
}

.church-premium-card__meta-item--members span {
  color: #0097db;
}

.church-premium-card__meta-item--members img,
.church-premium-card__meta-item--members svg,
.church-premium-card__meta-item--members .icon,
.church-premium-card__meta-item--members::before {
  display: none !important;
}

/* Footer Section - Address and Button in two columns */
.church-premium-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  /* Removed border-top */
}

.church-premium-card__address {
  color: #666666;
  font-size: 14px;
  flex: 1;
  max-width: 250px;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Church Profile Button */
.church-premium-card__button {
  flex-shrink: 0;
}

.church-premium-card__profile-btn {
  display: inline-block;
  padding: 6px 20px; /* Reduced top and bottom padding */
  background-color: #7db500; /* Green background */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: 2px solid #7db500;
}

.church-premium-card__profile-btn:hover {
  background-color: #6a9a00; /* Darker green on hover */
  color: #ffffff;
  text-decoration: none;
  border-color: #6a9a00;
}

/* Responsive Design */
@media (max-width: 768px) {
  .church-premium-card__wrapper {
    flex-direction: column;
  }
  
  .church-premium-card__image {
    width: 100%;
    height: 200px;
  }
  
  .church-premium-card__content {
    width: 100%;
  }
  
  .church-premium-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .church-premium-card__button {
    width: 100%;
  }
  
  .church-premium-card__profile-btn {
    width: 100%;
    text-align: center;
  }
  
  .church-premium-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
