@import '../../../../../../src/assets/styles/design-tokens';

.meeting-url-badge {
	margin: var(--ov-meet-spacing-sm) auto;
	.meeting-url-badge-title {
		text-align: center;
		font-size: var(--ov-meet-font-size-sm);
		font-weight: var(--ov-meet-font-weight-light);
		color: var(--ov-meet-text-on-surface);
		margin-bottom: var(--ov-meet-spacing-sm);

		&.sm {
			font-size: var(--ov-meet-font-size-sm);
		}
		&.md {
			font-size: var(--ov-meet-font-size-md);
		}
		&.lg {
			font-size: var(--ov-meet-font-size-lg);
		}
		&.xl {
			font-size: var(--ov-meet-font-size-xl);
		}

		&.light {
			font-weight: var(--ov-meet-font-weight-light);
		}
		&.semibold {
			font-weight: var(--ov-meet-font-weight-semibold);
		}
		&.bold {
			font-weight: var(--ov-meet-font-weight-bold);
		}
		&.normal {
			font-weight: var(--ov-meet-font-weight-normal);
		}
	}

	.meeting-url-badge-subtitle{
		text-align: center;
		font-size: var(--ov-meet-font-size-md);
		color: var(--ov-meet-text-on-surface);
		margin: var(--ov-meet-spacing-sm);
	}
	.meeting-url-badge-container {
		@include ov-flex-center;
		@include ov-theme-transition;
		gap: var(--ov-meet-spacing-sm);
		padding: var(--ov-meet-spacing-sm) var(--ov-meet-spacing-md);
		background-color: var(--ov-meet-surface-color);
		border: 1px solid var(--ov-meet-border-color-light);
		border-radius: var(--ov-meet-radius-lg);
		max-width: fit-content;
		margin: auto;
		cursor: pointer;

		&:hover {
			background-color: var(--ov-meet-surface-hover);
			border-color: var(--ov-meet-border-color);
		}

		.meeting-url-text {
			font-family: var(--ov-meet-font-family-mono, 'Roboto Mono', monospace);
			font-size: var(--ov-meet-font-size-sm);
			color: var(--ov-meet-text-on-surface);
			font-weight: var(--ov-meet-font-weight-medium);
			letter-spacing: 0.025em;
			user-select: none;
			word-break: break-all;
			text-overflow: ellipsis;
			white-space: nowrap;
			overflow: hidden;
		}

		.copy-url-btn {
			@include ov-button-base;
			width: 32px;
			height: 32px;
			min-width: 32px;
			padding: 0;
			color: var(--ov-meet-text-hint);
			cursor: pointer;
			background: transparent;
			border: 0;

			.mat-icon {
				@include ov-icon(sm);
			}
		}
	}
}

@include ov-mobile-down {
	.meeting-url-badge-container {
		margin: var(--ov-meet-spacing-md) auto;
		padding: var(--ov-meet-spacing-xs) var(--ov-meet-spacing-sm);

		.meeting-url-text {
			font-size: var(--ov-meet-font-size-xs);
		}

		.copy-url-btn {
			width: 28px;
			height: 28px;
			min-width: 28px;
		}
	}
}
