/**
 * Familieberichten Stylesheet
 * Frontend styling voor formulier en overzichtspagina
 */

/* ========================================
   SUBMISSION FORMULIER
   ======================================== */

.hillegom-familiebericht-form-container {
	max-width: 800px;
	margin: 0 auto;
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fb-form-header h3 {
	margin: 0 0 10px 0;
	font-size: 28px;
	color: #333;
}

.fb-form-header p {
	color: #666;
	margin-bottom: 30px;
	line-height: 1.6;
}

.familiebericht-form .form-group {
	margin-bottom: 25px;
}

.familiebericht-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 15px;
}

.familiebericht-form input[type="text"],
.familiebericht-form input[type="email"],
.familiebericht-form input[type="tel"],
.familiebericht-form input[type="date"],
.familiebericht-form select,
.familiebericht-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e0e5eb;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.3s ease;
}

.familiebericht-form input[type="text"]:focus,
.familiebericht-form input[type="email"]:focus,
.familiebericht-form input[type="tel"]:focus,
.familiebericht-form input[type="date"]:focus,
.familiebericht-form select:focus,
.familiebericht-form textarea:focus {
	outline: none;
	border-color: #4A90E2;
}

.familiebericht-form input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 2px dashed #e0e5eb;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.familiebericht-form input[type="file"]:hover {
	border-color: #4A90E2;
}

.familiebericht-form small {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 13px;
}

.familiebericht-form textarea {
	resize: vertical;
	min-height: 100px;
}

.fb-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 40px;
	background: #4A90E2;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.fb-submit-btn:hover {
	background: #357ABD;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.fb-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
}

.fb-submit-btn .spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Response Messages */
.fb-form-response {
	margin-top: 20px;
	padding: 15px 20px;
	border-radius: 6px;
	font-size: 15px;
}

.fb-form-response.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.fb-form-response.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ========================================
   FAMILIEBERICHTEN GRID
   ======================================== */

.hillegom-familieberichten-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin: 40px 0;
}

.familiebericht-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.familiebericht-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.fb-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.fb-card-image {
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f5f5f5;
}

.fb-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.familiebericht-card:hover .fb-card-image img {
	transform: scale(1.05);
}

.fb-card-content {
	padding: 20px;
}

.fb-card-title {
	margin: 0 0 15px 0;
	font-size: 20px;
	color: #333;
	line-height: 1.3;
}

.fb-card-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.fb-type {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fb-type-overlijden {
	background: #333;
	color: #fff;
}

.fb-type-geboorte {
	background: #FFE5EC;
	color: #D63384;
}

.fb-type-huwelijk {
	background: #FFF3CD;
	color: #856404;
}

.fb-type-anders {
	background: #D1ECF1;
	color: #0C5460;
}

.fb-datum {
	font-size: 14px;
	color: #666;
}

/* ========================================
   SINGLE FAMILIEBERICHT
   ======================================== */

.single-familiebericht .entry-header {
	text-align: left;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e0e5eb;
}

.single-familiebericht .entry-title {
	margin: 0 0 20px 0;
	font-size: 32px;
	color: #333;
	font-weight: 700;
}

.familiebericht-meta {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	font-size: 14px;
}

.familiebericht-meta .posted-on {
	color: #666;
}

.familiebericht-kaart {
	margin: 30px 0;
	text-align: center;
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
}

.familiebericht-kaart img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.familiebericht-pdf-viewer {
	max-width: 100%;
	margin: 0 auto;
}

.familiebericht-pdf-viewer embed {
	display: block;
	width: 100%;
	min-height: 800px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: white;
}

.btn-download-pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #4A90E2;
	color: white !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.btn-download-pdf:hover {
	background: #357ABD;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-download-pdf:before {
	content: "⬇";
	font-size: 16px;
}

.single-familiebericht .entry-content {
	max-width: 800px;
	margin: 30px auto;
	font-size: 16px;
	line-height: 1.8;
	color: #444;
}

.familiebericht-footer {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #e0e5eb;
}

.familiebericht-footer .share-buttons {
	margin-bottom: 20px;
	text-align: center;
}

.familiebericht-footer .share-buttons strong {
	display: block;
	margin-bottom: 10px;
	color: #333;
}

.familiebericht-footer .share-buttons a {
	display: inline-block;
	margin: 0 5px;
	padding: 10px 20px;
	background: #4A90E2;
	color: white !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.familiebericht-footer .share-buttons a:hover {
	background: #357ABD;
	transform: translateY(-2px);
}

.familiebericht-footer .back-to-overview {
	text-align: center;
	margin-top: 20px;
}

.familiebericht-footer .btn-back {
	display: inline-block;
	padding: 12px 24px;
	background: #f8f9fa;
	color: #333 !important;
	text-decoration: none !important;
	border: 2px solid #e0e5eb;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.familiebericht-footer .btn-back:hover {
	background: #e0e5eb;
	border-color: #c0c5cb;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
	.hillegom-familiebericht-form-container {
		padding: 25px;
	}
	
	.fb-form-header h3 {
		font-size: 24px;
	}
	
	.hillegom-familieberichten-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.fb-card-image {
		height: 200px;
	}
}
