/**
 * Custom Blocks Frontend Styles
 * Styles visible on the website frontend
 */

/* Hero Section Block */
.wp-block-trackship-hero-section {
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-align: center;
	margin: 40px 0;
}

.wp-block-trackship-hero-section h1 {
	font-size: clamp(36px, 6vw, 44px);
	font-weight: 700;
	margin: 0 0 20px 0;
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wp-block-trackship-hero-section p {
	font-size: clamp(16px, 5vw, 24px);
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Feature Grid Block */
.wp-block-trackship-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin: 60px 0;
	padding: 0 20px;
}

.wp-block-trackship-feature-grid .feature-item {
	text-align: center;
	padding: 20px 0;
}

.wp-block-trackship-feature-grid .feature-item img {
	max-height: 80px;
	width: auto;
	margin: 0 auto 20px;
	display: block;
}

.wp-block-trackship-feature-grid h3 {
	color: #1E3A5F;
	font-size: 20px;
	margin: 0 0 15px 0;
	font-weight: 600;
}

.wp-block-trackship-feature-grid p {
	color: #6B7280;
	margin: 0;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.wp-block-trackship-feature-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Pricing Table Block */
.wp-block-trackship-pricing-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin: 60px 0;
	padding: 0 20px;
}

.wp-block-trackship-pricing-table .pricing-plan {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 30px;
	background: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
}

.wp-block-trackship-pricing-table .pricing-plan:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transform: translateY(-5px);
}

.wp-block-trackship-pricing-table .pricing-plan.featured {
	border: 2px solid #1DB5C4;
	background: linear-gradient(135deg, #f0fffe 0%, white 100%);
	transform: scale(1.05);
}

.wp-block-trackship-pricing-table .pricing-plan.featured:hover {
	transform: scale(1.05) translateY(-5px);
}

.wp-block-trackship-pricing-table h3 {
	color: #1E3A5F;
	font-size: 20px;
	margin: 0 0 15px 0;
	font-weight: 600;
}

.wp-block-trackship-pricing-table .pricing-plan > div:nth-child(2) {
	margin: 0 0 15px 0;
}

.wp-block-trackship-pricing-table .pricing-plan > div:nth-child(2) > div:nth-child(1) {
	font-size: 28px;
	font-weight: 700;
	color: #1DB5C4;
	line-height: 1.2;
}

.wp-block-trackship-pricing-table .pricing-plan > div:nth-child(2) > p {
	color: #6B7280;
	margin: 5px 0 0 0;
	font-size: 14px;
}

.wp-block-trackship-pricing-table p:nth-of-type(2) {
	color: #6B7280;
	font-size: 14px;
	margin: 0 0 20px 0;
}

.wp-block-trackship-pricing-table ul {
	list-style: none;
	padding: 0;
	margin: 0 0 25px 0;
}

.wp-block-trackship-pricing-table li {
	padding: 12px 0;
	color: #374151;
	font-size: 14px;
	border-bottom: 1px solid #e5e7eb;
}

.wp-block-trackship-pricing-table li:last-child {
	border-bottom: none;
}

.wp-block-trackship-pricing-table li::before {
	content: '✓ ';
	color: #10B981;
	font-weight: bold;
	margin-right: 8px;
}

.wp-block-trackship-pricing-table .button {
	width: 100%;
	text-align: center;
	display: block;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.wp-block-trackship-pricing-table .pricing-plan.featured .button {
	background-color: #1DB5C4;
	color: white;
	border: 1px solid #1DB5C4;
}

.wp-block-trackship-pricing-table .pricing-plan.featured .button:hover {
	background-color: #1a8a95;
	border-color: #1a8a95;
}

.wp-block-trackship-pricing-table .pricing-plan:not(.featured) .button {
	background-color: #f3f4f6;
	color: #1DB5C4;
	border: 1px solid #e5e7eb;
}

.wp-block-trackship-pricing-table .pricing-plan:not(.featured) .button:hover {
	background-color: #e5e7eb;
	border-color: #1DB5C4;
}

@media (max-width: 768px) {
	.wp-block-trackship-pricing-table {
		grid-template-columns: 1fr;
		padding: 0;
	}

	.wp-block-trackship-pricing-table .pricing-plan.featured {
		transform: scale(1);
	}
}

/* Shipping Provider Card Block */
.wp-block-trackship-provider-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	display: inline-block;
	width: 100%;
	max-width: 350px;
}

.wp-block-trackship-provider-card:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border-color: #1DB5C4;
	transform: translateY(-4px);
}

.wp-block-trackship-provider-card .provider-card-header {
	background: #f3f4f6;
	padding: 20px;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-trackship-provider-card .provider-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-trackship-provider-card .provider-logo img {
	max-height: 70px;
	max-width: 100%;
	width: auto;
}

.wp-block-trackship-provider-card .provider-card-body {
	padding: 20px;
}

.wp-block-trackship-provider-card .provider-name {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 600;
}

.wp-block-trackship-provider-card .provider-name a {
	color: #1E3A5F;
	text-decoration: none;
}

.wp-block-trackship-provider-card .provider-name a:hover {
	color: #1DB5C4;
}

.wp-block-trackship-provider-card .provider-excerpt {
	color: #6B7280;
	font-size: 13px;
	margin: 0 0 10px 0;
	line-height: 1.4;
}

.wp-block-trackship-provider-card .provider-countries {
	font-size: 12px;
	color: #374151;
	margin: 0;
	font-weight: 500;
}

.wp-block-trackship-provider-card .provider-card-footer {
	padding: 15px 20px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

.wp-block-trackship-provider-card .button {
	width: 100%;
	text-align: center;
	display: block;
	padding: 10px 15px;
	background-color: #1DB5C4;
	color: white;
	border: 1px solid #1DB5C4;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-trackship-provider-card .button:hover {
	background-color: #1a8a95;
	border-color: #1a8a95;
}

/* Testimonial Block */
.wp-block-trackship-testimonial {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 30px;
	background: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin: 40px 0;
	max-width: 500px;
	position: relative;
}

.wp-block-trackship-testimonial.featured {
	background: linear-gradient(135deg, #f0fffe 0%, white 100%);
	border-color: #1DB5C4;
	border-width: 2px;
}

.wp-block-trackship-testimonial::before {
	content: '"';
	position: absolute;
	top: 10px;
	left: 20px;
	font-size: 48px;
	color: #1DB5C4;
	opacity: 0.2;
	line-height: 1;
}

.wp-block-trackship-testimonial .testimonial-rating {
	color: #FBBF24;
	font-size: 18px;
	margin-bottom: 15px;
	letter-spacing: 2px;
}

.wp-block-trackship-testimonial .testimonial-quote {
	font-style: italic;
	color: #374151;
	font-size: 16px;
	margin: 0 0 25px 0;
	line-height: 1.8;
}

.wp-block-trackship-testimonial .testimonial-author {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.wp-block-trackship-testimonial .testimonial-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.wp-block-trackship-testimonial .testimonial-author-info strong {
	display: block;
	color: #1E3A5F;
	font-weight: 600;
	margin-bottom: 4px;
}

.wp-block-trackship-testimonial .testimonial-author-info p {
	margin: 0;
	font-size: 13px;
}

.wp-block-trackship-testimonial .testimonial-author-info p:first-of-type {
	color: #6B7280;
	margin-bottom: 2px;
}

.wp-block-trackship-testimonial .testimonial-author-info p:last-of-type {
	color: #9CA3AF;
}

@media (max-width: 768px) {
	.wp-block-trackship-hero-section {
		min-height: 300px;
	}

	.wp-block-trackship-hero-section h1 {
		font-size: 32px;
	}

	.wp-block-trackship-testimonial {
		padding: 20px;
		margin: 20px 0;
	}
}
