/* SJ Speak Public Styles - Compatible with SayIt themes */

.sayit {
	cursor: pointer;
	position: relative;
	display: inline-block;
}

.sayit:hover {
	opacity: 0.8;
}

.sayit.active {
	opacity: 1;
}

.sayit-tooltip {
	display: inline-block;
	margin-left: 5px;
	font-size: 0.9em;
	opacity: 0.7;
}

/* Default theme (similar to SayIt theme1) */
.sayit {
	background: transparent;
	padding: 2px 4px;
	border-radius: 3px;
	transition: background-color 0.2s;
}

.sayit:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.sayit.active {
	background-color: rgba(0, 123, 255, 0.1);
}

/* Block type */
.sayit.block,
div.sayit {
	display: block;
	margin: 10px 0;
	padding: 10px;
	background-color: #f5f5f5;
	border-left: 3px solid #0073aa;
}

div.sayit:hover {
	background-color: #eeeeee;
}

div.sayit.active {
	background-color: #e3f2fd;
	border-left-color: #2196f3;
}

/* Auto-detect wrapper */
.sj-speak-auto-wrapper {
	display: inline;
	position: relative;
	white-space: nowrap;
}

/* Auto-detect words */
.sj-speak-auto-word {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: #0073aa;
	color: #0073aa;
	transition: all 0.2s;
	cursor: default; /* Word itself is not clickable, only play button */
}

.sj-speak-auto-word:hover {
	text-decoration-color: #0056b3;
	color: #0056b3;
}

.sj-speak-auto-word.sj-speak-playing {
	background-color: rgba(0, 123, 255, 0.15);
	color: #004085;
	font-weight: 600;
}

/* Play button - styled like Say It plugin */
.sj-speak-play-btn {
	display: inline-block;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
	margin-right: 5px;
	background: transparent;
	border: none;
	padding: 0;
	line-height: 1;
	transition: all 0.2s;
}

.sj-speak-play-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Play icon - using Say It's SVG icon style */
.sj-speak-play-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 2px;
	background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='UTF-8'?%3E%3Csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch --%3E%3Ctitle%3Ebutton%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='button' fill='%23ff4710' fill-rule='nonzero'%3E%3Cpolygon id='play' points='14 10 8 5.5 8 14.5'%3E%3C/polygon%3E%3Cpath d='M10,1 C5.05228475,1 1,5.05228475 1,10 C1,14.9477153 5.05228475,19 10,19 C14.9477153,19 19,14.9477153 19,10 C19,5.05228475 14.9477153,1 10,1 Z' id='circle' stroke='%23ff4710' stroke-width='2' fill-opacity='0'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transition: all 0.2s;
}

.sj-speak-play-btn:hover .sj-speak-play-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='UTF-8'?%3E%3Csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch --%3E%3Ctitle%3Ebutton%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='button' fill-rule='nonzero'%3E%3Cpath d='M10,1 C5.05228475,1 1,5.05228475 1,10 C1,14.9477153 5.05228475,19 10,19 C14.9477153,19 19,14.9477153 19,10 C19,5.05228475 14.9477153,1 10,1 Z' id='circle' stroke='%23FF510D' stroke-width='2' fill='%23FF4710'%3E%3C/path%3E%3Cpolygon id='play' fill='%23FFFFFF' points='14 10 8 5.5 8 14.5'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sj-speak-play-btn.sj-speak-playing {
	animation: sj-speak-pulse 1.5s infinite linear;
}

@keyframes sj-speak-pulse {
	0% { 
		box-shadow: 0 0 0px #f78da7; 
	}
	50% { 
		box-shadow: 0 0 10px #f78da7; 
	}
	100% { 
		box-shadow: 0 0 0px #f78da7; 
	}
}

