/*
Copyright (C) 2026 amorphea

This file is part of Grevillea.

Grevillea is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

Grevillea is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License
along with Grevillea. If not, see <https://www.gnu.org/licenses/>.
*/

.section-links {
	padding-inline: 13px;
}

.section-links .links-list {
	display: flex;
	flex-flow: column nowrap;
	gap: 1.25rem;
}

.section-links .caption.url-title {
	text-align: center;
	font-size: 0.7em;
}

.url-preview-row {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	gap: 0.8rem;
	align-items: stretch;
}
.url-preview {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	flex-grow: 1;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem;
	border-radius: 4px;
	background-color: #f1f1f1;
	overflow-x: scroll;
	-webkit-overflow-scrolling: touch;
}
.url-preview:focus-visible {
	outline: 1px solid #1d7484;
}
.url-preview .url-base {
	text-transform: uppercase;
	font-size: 0.7em;
	font-weight: bold;
	color: #A57BB0;
	white-space: nowrap;
	word-break: keep-all;
	text-wrap: nowrap;
	text-wrap-mode: nowrap;
}
.url-preview .hash-icon-container {
	display: inline-grid;
	place-items: center;
}
.url-preview svg.hash-icon {
	grid-area: 1 / 2 / 1 / 2;
	min-width: 1.25rem;
	height: 1.25rem;
	width: 1.25rem;
	color: #A57BB0;
}
.url-preview .hash-text {
	grid-area: 1 / 2 / 1 / 2;
	font-size: 0.75rem;
	color: transparent;
}
.url-preview code {
	white-space: nowrap;
	flex-grow: 1;
	padding: 0;
}
.url-preview-row .copy-button {
	width: calc(2em + 12px);
	min-width: calc(2em + 12px);
	max-width: calc(2em + 12px);
}
.url-preview-row .copy-button svg {
	height: 1.5rem;
	width: 1.5rem;
}

.url-stats {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	column-gap: 0.4em;
	margin-block-start: 0.5em;
	margin-block-end: 0.5em;
}
.url-stats .url-stats-items {
	column-gap: 0.4em;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
}
.url-stats .caption {
	margin-block-start: 0.1em; /* add a tiny bit of space for better vertical centering */
}
