/* Nikah Service — фронтенд стили (MVP) */

.nikah-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}

.nikah-notice-success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #2e7d32;
}

.nikah-notice-error {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	color: #c62828;
}

.nikah-notice-error ul {
	margin: 0;
	padding-left: 20px;
}

.nikah-profile-form .nikah-field {
	margin-bottom: 16px;
}

.nikah-profile-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.nikah-profile-form input[type="text"],
.nikah-profile-form input[type="date"],
.nikah-profile-form select,
.nikah-profile-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
}

.nikah-profile-form .nikah-field-checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
}

.nikah-wali-fields {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px;
	margin: 16px 0;
	display: none;
}

.nikah-wali-fields.is-visible {
	display: block;
}

.nikah-btn {
	display: inline-block;
	background: #2e7d32;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
}

.nikah-btn:hover {
	background: #276b2b;
	color: #fff;
}

.nikah-field-legal {
	font-size: 13px;
	color: #666;
}

/* Поиск анкет */

.nikah-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	margin-bottom: 24px;
}

.nikah-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.nikah-profile-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.nikah-profile-photo img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	filter: blur(0); /* блюр применяется на стороне сервера к самому изображению */
}

.nikah-profile-info {
	padding: 12px 14px;
}

.nikah-profile-info h3 {
	margin: 0 0 8px;
}

.nikah-profile-city,
.nikah-profile-mazhab {
	font-size: 14px;
	color: #555;
	margin: 4px 0;
}

.nikah-profile-about {
	font-size: 14px;
	color: #333;
	margin: 8px 0;
}

.nikah-btn-like,
.nikah-btn-interest {
	width: 100%;
	text-align: center;
	margin-top: 8px;
}

.nikah-btn-like.is-sent {
	background: #9e9e9e;
	pointer-events: none;
}

.nikah-btn-like.is-matched {
	background: #c2185b;
	pointer-events: auto;
}

.nikah-pagination {
	margin-top: 24px;
	display: flex;
	gap: 8px;
	justify-content: center;
}

/* Список мэтчей */

.nikah-matches-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.nikah-match-card {
	display: block;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.nikah-match-card:hover {
	border-color: #2e7d32;
}

.nikah-match-photo {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.nikah-match-info {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Чат */

.nikah-chat {
	max-width: 640px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.nikah-chat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
	background: #fafafa;
}

.nikah-chat-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.nikah-chat-city {
	display: block;
	font-size: 13px;
	color: #666;
}

.nikah-chat-back {
	margin-left: auto;
	font-size: 13px;
	color: #2e7d32;
	text-decoration: none;
}

.nikah-chat-notice {
	padding: 10px 16px;
	background: #fff8e1;
	color: #8a6d3b;
	font-size: 13px;
	border-bottom: 1px solid #e0e0e0;
}

.nikah-chat-messages {
	height: 360px;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f5f5f5;
}

.nikah-message {
	max-width: 75%;
	display: flex;
	flex-direction: column;
}

.nikah-message-mine {
	align-self: flex-end;
	align-items: flex-end;
}

.nikah-message-theirs {
	align-self: flex-start;
	align-items: flex-start;
}

.nikah-message-bubble {
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	word-break: break-word;
}

.nikah-message-mine .nikah-message-bubble {
	background: #2e7d32;
	color: #fff;
}

.nikah-message-theirs .nikah-message-bubble {
	background: #fff;
	color: #333;
	border: 1px solid #e0e0e0;
}

.nikah-message-report {
	background: none;
	border: none;
	color: #999;
	font-size: 11px;
	cursor: pointer;
	padding: 2px 0;
	text-decoration: underline;
}

.nikah-message-system-notice {
	align-self: center;
	font-size: 12px;
	color: #c62828;
	background: #ffebee;
	padding: 4px 10px;
	border-radius: 10px;
}

.nikah-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid #e0e0e0;
}

.nikah-chat-form textarea {
	flex: 1;
	resize: none;
	height: 44px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}
