/**
 * TAV Houston Volleyball - Homepage Grid Sections
 * Two-column layouts:
 *  - Commits + Upcoming Calendar
 *  - Accomplishments + Social Media
 */

/* ==========================================================================
   Section Wrappers
   ========================================================================== */

.hp-commits-calendar,
.hp-accomplishments-social {
	padding: 60px 0;
	background: #f7f9fc;
}

.hp-accomplishments-social {
	background: #ffffff;
}

/* ==========================================================================
   Shared Card
   ========================================================================== */

.hp-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(10, 30, 60, 0.04);
}

.hp-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f3f8;
}

.hp-card__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--tav-primary, #0045af);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
	line-height: 1.2;
}

.hp-card__subtitle {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0;
}

.hp-card__cta {
	display: inline-flex;
	align-items: center;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--tav-secondary, #e71f95);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hp-card__cta:hover {
	color: var(--tav-primary, #0045af);
}

.hp-card__cta--block {
	margin-top: 16px;
	justify-content: center;
	padding: 12px 16px;
	background: var(--tav-primary, #0045af);
	color: #ffffff;
	border-radius: 8px;
	width: 100%;
}

.hp-card__cta--block:hover {
	background: #003a94;
	color: #ffffff;
}

.hp-card__empty {
	color: #9ca3af;
	font-style: italic;
	margin: 0;
}

/* ==========================================================================
   Commits Grid
   ========================================================================== */

.hp-commits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
}

.hp-commit-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #eef0f4;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-commit-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(10, 30, 60, 0.1);
	border-color: var(--tav-primary, #0045af);
	color: inherit;
}

.hp-commit-card__photo {
	aspect-ratio: 1 / 1;
	background: #f3f4f6;
	position: relative;
	overflow: hidden;
}

.hp-commit-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hp-commit-card__logo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: #ffffff;
}

.hp-commit-card__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.hp-commit-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: var(--tav-primary, #0045af);
	opacity: 0.35;
}

.hp-commit-card__body {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
}

.hp-commit-card__name {
	font-size: 0.85rem;
	font-weight: 700;
	color: #0a1e3d;
	line-height: 1.2;
}

.hp-commit-card__college {
	font-size: 0.75rem;
	color: var(--tav-primary, #0045af);
	font-weight: 600;
}

.hp-commit-card__position {
	font-size: 0.7rem;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* ==========================================================================
   Calendar List
   ========================================================================== */

.hp-calendar-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}

.hp-calendar-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f3f8;
}

.hp-calendar-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.hp-calendar-item__date {
	flex-shrink: 0;
	width: 52px;
	height: 56px;
	background: var(--tav-primary, #0045af);
	color: #ffffff;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.hp-calendar-item__month {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
	margin-bottom: 2px;
}

.hp-calendar-item__day {
	font-size: 1.25rem;
	font-weight: 800;
}

.hp-calendar-item__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hp-calendar-item__title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #0a1e3d;
	text-decoration: none;
	line-height: 1.3;
}

a.hp-calendar-item__title:hover {
	color: var(--tav-primary, #0045af);
}

.hp-calendar-item__location {
	font-size: 0.75rem;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 4px;
}

.hp-calendar-item__location i {
	font-size: 0.7rem;
}

/* ==========================================================================
   Accomplishments List
   ========================================================================== */

.hp-accomplishments-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hp-accomplishment {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	background: #f7f9fc;
	border-radius: 12px;
	transition: background 0.2s ease;
}

.hp-accomplishment:hover {
	background: #eef3f9;
}

.hp-accomplishment__image,
.hp-accomplishment__icon {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tav-primary, #0045af);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-accomplishment__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-accomplishment__icon i {
	color: #ffffff;
	font-size: 1.75rem;
}

.hp-accomplishment__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hp-accomplishment__date {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--tav-secondary, #e71f95);
	font-weight: 700;
}

.hp-accomplishment__title {
	font-size: 1rem;
	font-weight: 700;
	color: #0a1e3d;
	margin: 0;
	line-height: 1.3;
}

.hp-accomplishment__desc {
	font-size: 0.85rem;
	color: #4b5563;
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   Social Feed & Posts
   ========================================================================== */

.hp-social-feed {
	flex: 1;
	margin-bottom: 16px;
}

.hp-social-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	flex: 1;
}

.hp-social-post {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
	text-decoration: none;
	color: #ffffff;
}

.hp-social-post img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.hp-social-post:hover img {
	transform: scale(1.05);
}

.hp-social-post__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 10px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
	color: #ffffff;
	font-size: 0.7rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   Follow Us links
   ========================================================================== */

.hp-social-follow {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 2px solid #f0f3f8;
	text-align: center;
}

.hp-social-follow__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #6b7280;
	margin-bottom: 10px;
}

.hp-social-follow__links {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.hp-social-follow__link {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f3f8;
	border-radius: 50%;
	color: var(--tav-primary, #0045af);
	font-size: 1.1rem;
	transition: all 0.2s ease;
	text-decoration: none;
}

.hp-social-follow__link:hover {
	background: var(--tav-primary, #0045af);
	color: #ffffff;
	transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
	.hp-card {
		padding: 22px;
	}

	.hp-card__title {
		font-size: 1.2rem;
	}
}

@media (max-width: 575.98px) {
	.hp-commits-calendar,
	.hp-accomplishments-social {
		padding: 40px 0;
	}

	.hp-commits-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.hp-accomplishment {
		flex-direction: column;
	}

	.hp-accomplishment__image,
	.hp-accomplishment__icon {
		width: 100%;
		height: 140px;
	}
}
