/* UDG Google Reviews — Elementor widget styles */

.udg-gr {
	--udg-gr-text: #1f1f1f;
	--udg-gr-muted: #8a8a8a;
	--udg-gr-clamp: 3;
	font-family: inherit;
	color: var(--udg-gr-text);
	width: 100%;
	box-sizing: border-box;
}

.udg-gr *,
.udg-gr *::before,
.udg-gr *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.udg-gr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: #f6f6f6;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 16px;
}

.udg-gr-header-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.udg-gr-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.udg-gr-google {
	font-weight: 700;
	letter-spacing: -0.5px;
	display: inline-flex;
}

.udg-gr-google span:nth-child(1) { color: #4285f4; }
.udg-gr-google span:nth-child(2) { color: #ea4335; }
.udg-gr-google span:nth-child(3) { color: #fbbc05; }
.udg-gr-google span:nth-child(4) { color: #4285f4; }
.udg-gr-google span:nth-child(5) { color: #34a853; }
.udg-gr-google span:nth-child(6) { color: #ea4335; }

.udg-gr-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.udg-gr-score {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1px;
}

.udg-gr-count {
	color: var(--udg-gr-muted);
	font-size: 14px;
}

.udg-gr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 16px 22px;
	border-radius: 6px;
	text-decoration: none !important;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color .2s ease, transform .15s ease;
}

.udg-gr-btn:hover {
	background: #333;
	transform: translateY(-1px);
}

/* ---------- Stars ---------- */
.udg-gr-stars {
	--udg-gr-star: #f5b301;
	--udg-gr-star-empty: #d9d9d9;
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.udg-gr-star {
	--fill: 100%;
	display: inline-block;
	width: 16px;
	height: 16px;
	background: linear-gradient(90deg, var(--udg-gr-star) var(--fill), var(--udg-gr-star-empty) var(--fill));
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5l2.95 6.17 6.8.86-5 4.72 1.3 6.75L12 17.7 5.95 21l1.3-6.75-5-4.72 6.8-.86z'/></svg>") no-repeat center / contain;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5l2.95 6.17 6.8.86-5 4.72 1.3 6.75L12 17.7 5.95 21l1.3-6.75-5-4.72 6.8-.86z'/></svg>") no-repeat center / contain;
}

.udg-gr-summary .udg-gr-star {
	width: 18px;
	height: 18px;
}

.udg-gr-card .udg-gr-star {
	width: 13px;
	height: 13px;
}

/* ---------- Carousel ---------- */
.udg-gr-carousel {
	position: relative;
}

.udg-gr-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
	cursor: grab;
}

.udg-gr-track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.udg-gr-track::-webkit-scrollbar {
	display: none;
}

.udg-gr-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #1f1f1f;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	transition: opacity .2s ease, background-color .2s ease;
}

.udg-gr-carousel:hover .udg-gr-arrow,
.udg-gr-arrow:focus-visible {
	opacity: 1;
}

.udg-gr-arrow[disabled] {
	opacity: 0 !important;
	pointer-events: none;
}

.udg-gr-prev { left: -8px; }
.udg-gr-next { right: -8px; }

/* ---------- Card ---------- */
.udg-gr-card {
	flex: 0 0 220px;
	width: 220px;
	min-height: 270px;
	scroll-snap-align: start;
	background: #f6f6f6;
	border-radius: 12px;
	padding: 22px 18px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.udg-gr-text {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--udg-gr-text);
	display: -webkit-box;
	-webkit-line-clamp: var(--udg-gr-clamp);
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
	word-break: break-word;
}

.udg-gr-card.is-expanded .udg-gr-text {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.udg-gr-more {
	margin-top: auto;
	padding: 14px 0 10px;
	background: none;
	border: 0;
	font: inherit;
	font-size: 12px;
	color: #9a9a9a;
	cursor: pointer;
	text-decoration: none;
	transition: color .15s ease;
}

.udg-gr-more:hover {
	color: var(--udg-gr-text);
}

/* overflow etmeyen metinlerde butonu gizle */
.udg-gr-card.no-overflow .udg-gr-more-toggle {
	visibility: hidden;
	pointer-events: none;
}

.udg-gr-author {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.udg-gr-avatar {
	--udg-gr-av1: #1ea6b8;
	--udg-gr-av2: #0c7f93;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--udg-gr-av1), var(--udg-gr-av2));
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.udg-gr-avatar-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.udg-gr-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 2px;
}

.udg-gr-date {
	font-size: 12px;
	color: var(--udg-gr-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.udg-gr-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px;
	}

	.udg-gr-btn {
		width: 100%;
		white-space: normal;
		text-align: center;
	}

	.udg-gr-score {
		font-size: 28px;
	}

	.udg-gr-arrow {
		opacity: 1;
	}

	.udg-gr-prev { left: 4px; }
	.udg-gr-next { right: 4px; }
}
