/*
 * Block Editor Styles for Doctors Profile Theme
 * Styles specifically for the WordPress Block Editor (Gutenberg)
 */

/* === Editor Color Classes === */
.has-primary-blue-color { color: #2c5aa0 !important; }
.has-primary-blue-background-color { background-color: #2c5aa0 !important; }
.has-medical-green-color { color: #28a745 !important; }
.has-medical-green-background-color { background-color: #28a745 !important; }
.has-trust-blue-color { color: #007cba !important; }
.has-trust-blue-background-color { background-color: #007cba !important; }
.has-soft-gray-color { color: #f8f9fa !important; }
.has-soft-gray-background-color { background-color: #f8f9fa !important; }
.has-dark-text-color { color: #212529 !important; }
.has-dark-text-background-color { background-color: #212529 !important; }
.has-accent-orange-color { color: #fd7e14 !important; }
.has-accent-orange-background-color { background-color: #fd7e14 !important; }

/* === Custom Block Styles === */

/* Medical CTA Button Style */
.wp-block-button.is-style-medical-cta .wp-block-button__link {
	background: linear-gradient(135deg, #2c5aa0 0%, #28a745 100%);
	border: none;
	border-radius: 30px;
	padding: 15px 30px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.wp-block-button.is-style-medical-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Medical Card Group Style */
.wp-block-group.is-style-medical-card {
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	padding: 30px;
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
}

.wp-block-group.is-style-medical-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Medical Heading Style */
.wp-block-heading.is-style-medical-heading {
	position: relative;
	padding-bottom: 15px;
	margin-bottom: 25px;
}

.wp-block-heading.is-style-medical-heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(135deg, #2c5aa0 0%, #28a745 100%);
	border-radius: 2px;
}

.wp-block-heading.is-style-medical-heading.has-text-align-center::after {
	left: 50%;
	transform: translateX(-50%);
}

.wp-block-heading.is-style-medical-heading.has-text-align-right::after {
	left: auto;
	right: 0;
}

/* Testimonial Quote Style */
.wp-block-quote.is-style-testimonial-style {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: none;
	border-left: 5px solid #28a745;
	border-radius: 10px;
	padding: 30px;
	position: relative;
	font-style: italic;
}

.wp-block-quote.is-style-testimonial-style::before {
	content: '\201C';
	font-size: 60px;
	color: #28a745;
	position: absolute;
	top: 10px;
	left: 20px;
	opacity: 0.3;
}

.wp-block-quote.is-style-testimonial-style cite {
	font-weight: 600;
	color: #2c5aa0;
	font-style: normal;
}

/* === Enhanced Block Patterns Styles === */

/* Medical Services Section */
.medical-services-section .wp-block-column {
	text-align: center;
	transition: all 0.3s ease;
}

.medical-services-section .wp-block-column:hover {
	transform: translateY(-5px);
}

.medical-services-section .fas {
	margin-bottom: 20px !important;
	transition: all 0.3s ease;
}

.medical-services-section .wp-block-column:hover .fas {
	transform: scale(1.1);
}

/* Doctor Profile Card */
.doctor-profile-card {
	transition: all 0.3s ease;
	overflow: hidden;
}

.doctor-profile-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.doctor-profile-card .wp-block-image img {
	transition: all 0.3s ease;
}

.doctor-profile-card:hover .wp-block-image img {
	transform: scale(1.05);
}

/* Testimonial Card */
.testimonial-card {
	position: relative;
	overflow: hidden;
}

.testimonial-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	transform: rotate(45deg);
	transition: all 0.5s ease;
}

.testimonial-card:hover::before {
	right: 100%;
}

/* === Gradient Backgrounds === */
.has-medical-gradient-background {
	background: linear-gradient(135deg, #2c5aa0 0%, #28a745 100%) !important;
}

.has-trust-gradient-background {
	background: linear-gradient(135deg, #007cba 0%, #2c5aa0 100%) !important;
}

/* === Block Editor Specific Styles === */
.block-editor-page .wp-block {
	max-width: 1170px;
}

/* Wide and Full Width Blocks */
.wp-block[data-align="wide"] {
	max-width: 1200px;
}

.wp-block[data-align="full"] {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* === Medical Icon Utilities === */
.medical-icon {
	color: #28a745;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.medical-icon:hover {
	transform: scale(1.1);
	color: #2c5aa0;
}

/* === Responsive Design === */
@media (max-width: 768px) {
	.wp-block-group.is-style-medical-card {
		padding: 20px;
	}
	
	.wp-block-button.is-style-medical-cta .wp-block-button__link {
		padding: 12px 24px;
		font-size: 14px;
	}
	
	.medical-services-section .wp-block-columns {
		flex-direction: column;
	}
	
	.doctor-profile-card .wp-block-columns {
		flex-direction: column;
		text-align: center;
	}
}

/* === Animation Classes === */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

/* === Medical Theme Specific Utilities === */
.text-medical-green { color: #28a745 !important; }
.text-primary-blue { color: #2c5aa0 !important; }
.text-trust-blue { color: #007cba !important; }

.bg-medical-green { background-color: #28a745 !important; }
.bg-primary-blue { background-color: #2c5aa0 !important; }
.bg-trust-blue { background-color: #007cba !important; }

/* === Enhanced Typography === */
.medical-heading {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	line-height: 1.2;
}

.medical-text {
	font-family: 'Saira', sans-serif;
	line-height: 1.6;
}

/* === Block Spacing === */
.wp-block-group.has-custom-spacing {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

/* === Accessibility Improvements === */
.wp-block-button.is-style-medical-cta .wp-block-button__link:focus {
	outline: 3px solid #fd7e14;
	outline-offset: 2px;
}

.medical-services-section .wp-block-column:focus-within {
	outline: 2px solid #2c5aa0;
	outline-offset: 4px;
	border-radius: 10px;
}

/* === Print Styles === */
@media print {
	.wp-block-button.is-style-medical-cta .wp-block-button__link {
		background: #2c5aa0 !important;
		color: white !important;
		text-decoration: none !important;
	}
	
	.wp-block-group.is-style-medical-card {
		border: 2px solid #e9ecef !important;
		box-shadow: none !important;
	}
}
