/**
 * styles/contactInfo.css
 *
 * Copyright (c) 2026 Aeirya Mohammadi
 * Distributed under the GNU GPL v3. See LICENSE for details.
 */

.contactInfo__grid {
	display: grid;
	gap: 1rem;
}

.contactInfo__card {
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.025);
}

.contactInfo__card > :first-child {
	margin-top: 0;
}

.contactInfo__card > :last-child {
	margin-bottom: 0;
}

.contactInfo__address {
	white-space: pre-wrap;
}

.contactInfo__socialLinks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.65rem;
}

.contactInfo__socialLink {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	padding: 0.65rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

.contactInfo__socialLink:hover,
.contactInfo__socialLink:focus-visible {
	box-shadow: 0 3px 9px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

.contactInfo__socialLink img {
	display: block;
	flex: 0 0 2.5rem;
	width: 2.5rem;
	height: 2.5rem;
}

.contactInfo__socialText {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.contactInfo__socialText span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.contactInfo__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.contactInfo__social,
	.contactInfo__address {
		grid-column: 1 / -1;
	}
}
