/**
 * ACF Downloads Styling for GeneratePress
 * Nutzt bestehende GeneratePress Button-Styles
 */

/* Downloads Wrapper */
.acf-downloads-wrapper {
	margin: 2em 0;
	padding: 1.5em 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Downloads Titel */
.downloads-title {
	font-size: 1.2em;
	margin-bottom: 1em;
	font-weight: 600;
	color: inherit;
}

/* Downloads Liste */
.downloads-list {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

/* Download Button - erweitert GeneratePress .button Klasse */
.download-btn {
	display: flex !important;
	align-items: center;
	padding: 12px 20px !important;
	text-decoration: none;
	border-radius: 3px;
	transition: all 0.2s ease;
	font-size: 16px;
	line-height: 1.4;
	width: fit-content;
	max-width: 100%;
}

/* Download Icon */
.download-icon {
	font-size: 1.1em;
	margin-right: 10px;
	opacity: 0.8;
}

/* Download Details Container */
.download-details {
	display: flex;
	flex-direction: column;
	min-width: 0; /* Ermöglicht text-overflow */
}

/* Download Titel */
.download-title {
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}

/* Download Meta (Dateityp und Größe) */
.download-meta {
	font-size: 0.85em;
	opacity: 0.7;
	font-weight: 400;
}

.file-type {
	font-weight: 600;
	text-transform: uppercase;
}

/* Hover-Effekte */
.download-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.download-btn:hover .download-icon {
	opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
	.acf-downloads-wrapper {
		margin: 1.5em 0;
	}

	.downloads-list {
		gap: 0.5em;
	}

	.download-btn {
		padding: 10px 16px !important;
		font-size: 15px;
	}

	.download-details {
		min-width: 0;
	}

	.download-title {
		font-size: 0.95em;
	}
}

/* Kleine Verbesserungen für bessere Barrierefreiheit */
.download-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Integration mit GeneratePress Dark Mode (falls vorhanden) */
@media (prefers-color-scheme: dark) {
	.acf-downloads-wrapper {
		border-top-color: rgba(255, 255, 255, 0.1);
	}
}