/**
 * Homepage Cards Component
 *
 * Three-card layout for homepage top section
 * Matches legacy Ontmoeting homepage visual design
 *
 * Structure:
 * - .home-cards (wrapper)
 * - .home-card (individual card)
 * - .home-card__title (card heading)
 * - .home-card__content (card body)
 * - .home-card__footer (card action area)
 * - .home-card__link (button-style link)
 */

/* ==========================================================================
   Card Container
   ========================================================================== */

/**
 * Cards wrapper section
 * Creates 3-column grid layout on desktop
 */
.home-cards {
	position: relative;
	margin: var(--spacing-unit) 0 0 0;
}

.home-cards__inner {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: var(--spacing-half);
	max-width: var(--container-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* ==========================================================================
   Individual Card
   ========================================================================== */

/**
 * Base card styling
 * White background, rounded corners, subtle shadow
 */
.home-card {
	background: var(--color-white);
	border-radius: 8px;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	flex: 1;
	align-items: center;
}

.home-card__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Card Title
   ========================================================================== */

/**
 * Card heading
 * Pink/secondary color, prominent sizing
 * Matches legacy .widget__label styling
 */
.home-card__title {
	display: block;
	line-height: 50px;
	font-size: 22px;
	font-weight: 500;
	color: var(--color-secondary);
	padding: 0 20px;
	text-align: left;
	margin: 0;
}

/* ==========================================================================
   Card Content
   ========================================================================== */

/**
 * Card body text area
 * Flexible grow to fill available space
 */
.home-card__content {
	padding: 20px;
	flex-grow: 1;
	align-self: flex-start;
	width: 100%;
}

.home-card__content ul {
	list-style: none;
}

.home-card__content p {
	margin: 0 0 10px 0;
	line-height: var(--line-height-base);
}

.home-card__content p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Card Footer & Button
   ========================================================================== */

/**
 * Footer area with call-to-action link
 */
.home-card__footer {
	margin: var(--spacing-half);
}

/**
 * Button-style link
 * Matches legacy "Meer …" button style:
 * - White background
 * - Pink border (2px)
 * - Rounded corners
 * - Pink text
 * - Hover: pink background, white text
 */
.home-card__link {
	display: inline-block;
	position: relative;
	background: var(--color-white);
	color: var(--color-secondary);
	border-radius: var(--radius-button-small);
	border: 2px solid var(--color-pink);
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	line-height: 1;
	padding: 10px 20px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.home-card__link:hover,
.home-card__link:focus {
	background-color: var(--color-secondary);
	color: var(--color-white);
}

/* ==========================================================================
   Card Type Modifiers
   ========================================================================== */

/**
 * Optional card type variations
 * Can be used to style specific card types differently if needed
 */
.home-card--kerkdiensten {
	/* Church services card - can add specific styling if needed */
}

.home-card--agenda {
	/* Agenda/events card - can add specific styling if needed */
}

.home-card--nieuws {
	/* News card - can add specific styling if needed */
}

/* ==========================================================================
   Nieuws Card List
   ========================================================================== */

.home-card__list {
	padding: 0;
	margin: 0;
}

.home-card__list-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 0;
}

.home-card__list-item:first-child {
	padding-top: 0;
}

.home-card__list-item:last-child {
	padding-bottom: 0;
}

.home-card__date {
	flex-shrink: 0;
	min-width: 48px;
	font-size: var(--font-size-small);
	color: var(--color-red-light);
	white-space: nowrap;
}

.home-card__list-link {
	font-size: var(--font-size-small);
	color: var(--color-body);
	text-decoration: none;
	line-height: var(--line-height-base);
}

.home-card__list-link:hover {
	color: var(--color-secondary);
	text-decoration: underline;
}

/* ==========================================================================
   Responsive: Tablet (max-width: 1024px)
   ========================================================================== */

@media screen and (max-width: 1024px) {
	/**
	 * Maintain 3-column layout on tablet
	 * Reduce spacing slightly
	 */
	.home-cards {
		margin: var(--spacing-half) 0 0 0;
	}

	.home-cards__inner {
		gap: var(--spacing-small);
	}

	.home-card__title {
		font-size: 20px;
		line-height: 45px;
	}

	.home-card__content {
		padding: var(--spacing-small);
		font-size: var(--font-size-small);
	}
}

/* ==========================================================================
   Responsive: Mobile (max-width: 875px)
   ========================================================================== */

@media screen and (max-width: 875px) {
	/**
	 * Stack cards vertically on mobile
	 * Full width for better readability
	 */
	.home-cards {
		margin: var(--spacing-half) 0;
	}

	.home-cards__inner {
		flex-direction: column;
		gap: var(--spacing-half);
	}

	.home-card {
		width: 100%;
	}

	.home-card__title {
		font-size: 22px;
		line-height: 50px;
	}

	.home-card__content {
		padding: 20px;
		font-size: var(--font-size-base);
	}

	.home-card__footer {
		margin: var(--spacing-small) var(--spacing-half);
	}
}

