/**
 * TTS Reader - Components (boutons, inputs, etc.)
 * Styles des composants individuels
 */

/* Play Button */
.tts-play-button {
    width: 85%;
	background: #4CAF50;
	color: #FFFFFF;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 6px;
    box-shadow: none;
	transition: all 0.3s ease;
}

.tts-play-button:hover {
	background: #45a049;
}


.tts-play-button[aria-pressed="true"] {
	background: #3d8b40;
}

.tts-play-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
}

/* Volume Button */
.tts-volume-button {
	background-color: rgba(76, 175, 80, 0.15);
	color: #FFFFFF;
	padding: 12px;
	border-radius: 6px;
	font-size: 18px;
	transition: all 0.3s ease;
}

.tts-volume-button:hover {
	background-color: rgba(76, 175, 80, 0.25);
	color: #4CAF50;
}

/* Options Button */
.tts-options-button {
	background-color: rgba(76, 175, 80, 0.15);
	color: #FFFFFF;
	padding: 12px;
	border-radius: 6px;
	font-size: 18px;
	transition: all 0.3s ease;
}

.tts-options-button:hover {
	background-color: rgba(76, 175, 80, 0.25);
	color: #4CAF50;
	transform: rotate(20deg);
}

/* Input Range Slider (scoped to widget) */
.tts-widget input[type="range"] {
	width: 100%;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: #E0E0E0;
	border-radius: 3px;
	outline: none;
	margin: 8px 0;
	padding: 0;
	border: none;
}

.tts-widget input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background: var(--tts-primary, #4CAF50);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

.tts-widget input[type="range"]::-webkit-slider-thumb:hover {
	background: var(--tts-primary-dark, #45a049);
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
	transform: scale(1.1);
}

.tts-widget input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: var(--tts-primary, #4CAF50);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

.tts-widget input[type="range"]::-moz-range-thumb:hover {
	background: var(--tts-primary-dark, #45a049);
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
	transform: scale(1.1);
}

.tts-widget input[type="range"]::-moz-range-track {
	background: transparent;
	border: none;
}

.tts-widget input[type="range"]::-moz-range-progress {
	background: var(--tts-primary, #4CAF50);
	border-radius: 3px;
}

/* Icons */
.tts-widget i {
	line-height: 1;
	display: inline-block;
	vertical-align: middle;
}

/* Focus visible para accessibility */
.tts-play-button:focus-visible,
.tts-volume-button:focus-visible,
.tts-options-button:focus-visible {
	outline-style: solid;
	outline-color: var(--tts-focus-color, #4CAF50);
	outline-width: var(--tts-focus-width, 2px);
	outline-offset: var(--tts-focus-offset, 2px);
}

.tts-widget input[type="range"]:focus-visible {
	outline-style: solid;
	outline-color: var(--tts-focus-color, #4CAF50);
	outline-width: var(--tts-focus-width, 2px);
	outline-offset: var(--tts-focus-offset, 2px);
}

/* TTS section currently being read */
.tts-reading-active {
	background-color: var(--tts-highlight-bg, rgba(76, 175, 80, 0.08)) !important;
	transition: background-color 0.3s ease, font-size 0.3s ease, font-weight 0.3s ease;
}

/* TTS word currently being read */
.tts-word {
	display: inline;
	line-height: inherit;
	border-radius: 3px;
	padding: 2px 4px;
	margin: 0 -4px;
	transition: background-color 0.25s ease, font-size 0.25s ease, font-weight 0.25s ease;
}

.tts-word-upcoming {
	transition: background-color 0.15s ease, font-size 0.15s ease, font-weight 0.15s ease;
}

.tts-word-active {
	transition: background-color 0.08s ease, font-size 0.08s ease, font-weight 0.08s ease;
}

.tts-word-fading {
	transition: background-color 0.35s ease 0.1s, font-size 0.35s ease 0.1s, font-weight 0.35s ease 0.1s;
}
