/*
	Kimmax - Dog Profile CSS
	Styles specific to the individual dog profile pages (dogs/*.html)
*/

/* =============================================
   BACK LINK
   ============================================= */

.dog-back {
	margin-bottom: 1.5em;
}

.dog-back a {
	font-family: 'Raleway', Helvetica, sans-serif;
	font-size: 0.85em;
	letter-spacing: 0.1em;
	color: #888 !important;
	text-decoration: none;
}

.dog-back a:hover {
	color: #ff0000 !important;
}


/* =============================================
   DOG HEADER — hero image + identity side by side
   ============================================= */

.dog-header {
	display: flex;
	gap: 3em;
	align-items: flex-start;
	margin-bottom: 3em;
}

.dog-hero {
	flex: 0 0 300px;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}

.dog-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.dog-identity {
	flex: 1;
	padding-top: 0.5em;
}

.dog-identity h1 {
	margin-bottom: 0.15em;
}

.dog-kennel-name {
	font-family: 'Raleway', Helvetica, sans-serif;
	font-size: 1em;
	letter-spacing: 0.15em;
	color: #888;
	margin-bottom: 1.25em;
}

/* Badge pills */
.dog-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	list-style: none;
	padding: 0;
	margin: 0;
}

.dog-badges li {
	font-family: 'Raleway', Helvetica, sans-serif;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 0.35em 0.85em;
	border-radius: 2em;
	border: 2px solid currentColor;
}

.badge-sex-female  { color: #c75b9b; border-color: #c75b9b; }
.badge-sex-male    { color: #7ecaf6; border-color: #7ecaf6; }
.badge-colour      { color: #888;    border-color: #ccc; }
.badge-status-active  { color: #7bd0c1; border-color: #7bd0c1; }
.badge-status-retired { color: #aaa;    border-color: #aaa; }


/* =============================================
   SECTIONS
   ============================================= */

.dog-section {
	margin-bottom: 3em;
	padding-bottom: 3em;
	border-bottom: 1px solid rgba(160, 160, 160, 0.3);
}

.dog-section:last-child {
	border-bottom: none;
}

.dog-section h2 {
	font-size: 1em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #ff0000;
	margin-bottom: 1.25em;
}


/* =============================================
   DETAILS GRID
   ============================================= */

.dog-details-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5em 2em;
}

.dog-detail {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.dog-detail .label {
	font-family: 'Raleway', Helvetica, sans-serif;
	font-size: 0.7em;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #aaa;
}

.dog-detail .value {
	font-size: 1em;
	color: #313131;
}


/* =============================================
   TITLES LIST
   ============================================= */

.dog-titles {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dog-titles li {
	padding: 0.5em 0 0.5em 1.25em;
	border-bottom: 1px solid rgba(160, 160, 160, 0.2);
	position: relative;
}

.dog-titles li:last-child {
	border-bottom: none;
}

.dog-titles li:before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ff0000;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}


/* =============================================
   GALLERY
   ============================================= */

.dog-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1em;
}

.dog-gallery-item {
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.dog-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.dog-gallery-item:hover img {
	transform: scale(1.05);
}


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

@media screen and (max-width: 980px) {
	.dog-header {
		flex-direction: column;
		gap: 2em;
	}

	.dog-hero {
		flex: none;
		width: 100%;
		max-width: 300px;
	}

	.dog-details-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dog-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 736px) {
	.dog-details-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dog-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 480px) {
	.dog-details-grid {
		grid-template-columns: 1fr;
	}

	.dog-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
