/**
 * High-Tech Theme - Block Styles for Frontend
 * Styles for Gutenberg blocks on the frontend
 */

/* Wide and full alignment */
.alignwide {
	margin-left: -50px;
	margin-right: -50px;
	max-width: 620px;
	width: auto;
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

/* Alignment */
.alignleft {
	float: left;
	margin-right: 1em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1em;
	margin-bottom: 1em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Block: Quote */
.wp-block-quote {
	border-left: 4px solid #CF0303;
	padding-left: 1em;
	margin: 1em 0;
	font-style: italic;
}

.wp-block-quote cite {
	font-style: normal;
	color: #535353;
	font-size: 0.9em;
}

/* Block: Pullquote */
.wp-block-pullquote {
	border-top: 4px solid #CF0303;
	border-bottom: 4px solid #CF0303;
	padding: 1.5em 0;
	text-align: center;
	margin: 2em 0;
}

.wp-block-pullquote blockquote {
	font-size: 1.5em;
	margin: 0;
	border: none;
	padding: 0;
}

.wp-block-pullquote cite {
	font-size: 0.8em;
	color: #535353;
	text-transform: uppercase;
	font-style: normal;
}

/* Block: Button */
.wp-block-button {
	margin: 1em 0;
}

.wp-block-button__link {
	background-color: #CF0303;
	color: #ffffff;
	padding: 0.75em 1.5em;
	text-decoration: none;
	border-radius: 3px;
	display: inline-block;
	font-size: 1em;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wp-block-button__link:hover {
	background-color: #E10000;
	color: #ffffff;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid #CF0303;
	color: #CF0303;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #CF0303;
	color: #ffffff;
}

/* Block: Code */
.wp-block-code {
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 1em;
	font-family: "Courier New", Courier, monospace;
	font-size: 0.9em;
	overflow-x: auto;
}

.wp-block-code code {
	background: none;
	padding: 0;
	color: inherit;
}

/* Block: Preformatted */
.wp-block-preformatted {
	background: #f5f5f5;
	border: 1px solid #ddd;
	padding: 1em;
	font-family: "Courier New", Courier, monospace;
	overflow-x: auto;
	white-space: pre-wrap;
}

/* Block: Verse */
.wp-block-verse {
	background: #f9f9f9;
	border-left: 3px solid #CF0303;
	padding: 1em;
	font-family: inherit;
	font-style: italic;
	white-space: pre-wrap;
}

/* Block: Table */
.wp-block-table {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid #ddd;
	padding: 0.5em;
}

.wp-block-table th {
	background-color: #f5f5f5;
	font-weight: bold;
	text-align: left;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: #f9f9f9;
}

/* Block: Separator */
.wp-block-separator {
	border: none;
	border-top: 2px solid #ddd;
	margin: 2em auto;
	max-width: 100px;
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
	border-top-width: 1px;
}

.wp-block-separator.is-style-dots {
	border: none;
	text-align: center;
	max-width: none;
	line-height: 1;
	height: auto;
}

.wp-block-separator.is-style-dots::before {
	content: "···";
	color: #303030;
	font-size: 1.5em;
	letter-spacing: 1em;
	padding-left: 1em;
	font-family: serif;
}

/* Block: Image */
.wp-block-image {
	margin: 1em 0;
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.wp-block-image figcaption {
	color: #535353;
	font-size: 11px;
	text-align: center;
	margin-top: 0.5em;
	font-style: italic;
}

.wp-block-image.is-style-rounded img {
	border-radius: 8px;
}

/* Block: Gallery */
.wp-block-gallery {
	margin: 1em 0;
}

.wp-block-gallery .blocks-gallery-item figcaption {
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	font-size: 11px;
	padding: 0.5em;
}

/* Block: Cover */
.wp-block-cover {
	margin: 1em 0;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover h4,
.wp-block-cover p {
	color: #ffffff;
}

/* Block: Media & Text */
.wp-block-media-text {
	margin: 1em 0;
}

/* Block: Columns */
.wp-block-columns {
	margin: 1em 0;
}

/* Block: Group */
.wp-block-group {
	margin: 1em 0;
}

/* Block: Embed */
.wp-block-embed {
	margin: 1em 0;
}

.wp-block-embed figcaption {
	color: #535353;
	font-size: 11px;
	text-align: center;
	margin-top: 0.5em;
}

/* Block: File */
.wp-block-file {
	margin: 1em 0;
}

.wp-block-file a.wp-block-file__button {
	background-color: #CF0303;
	color: #ffffff;
	padding: 0.5em 1em;
	text-decoration: none;
	border-radius: 3px;
	display: inline-block;
	margin-left: 0.5em;
}

.wp-block-file a.wp-block-file__button:hover {
	background-color: #E10000;
}

/* Color classes */
.has-red-color {
	color: #CF0303 !important;
}

.has-red-background-color {
	background-color: #CF0303 !important;
}

.has-dark-red-color {
	color: #E10000 !important;
}

.has-dark-red-background-color {
	background-color: #E10000 !important;
}

.has-dark-gray-color {
	color: #303030 !important;
}

.has-dark-gray-background-color {
	background-color: #303030 !important;
}

.has-medium-gray-color {
	color: #535353 !important;
}

.has-medium-gray-background-color {
	background-color: #535353 !important;
}

.has-black-color {
	color: #000000 !important;
}

.has-black-background-color {
	background-color: #000000 !important;
}

.has-white-color {
	color: #ffffff !important;
}

.has-white-background-color {
	background-color: #ffffff !important;
}

/* Font sizes */
.has-small-font-size {
	font-size: 11px !important;
}

.has-regular-font-size {
	font-size: 12px !important;
}

.has-medium-font-size {
	font-size: 16px !important;
}

.has-large-font-size {
	font-size: 20px !important;
}

.has-huge-font-size {
	font-size: 28px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.alignwide,
	.alignfull {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
		width: 100%;
	}

	.wp-block-columns {
		flex-direction: column;
	}
}
