/**
 * Custom Block Styles
 *
 * @package Developry_Nexus
 * @since 1.0.0
 */

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

/* Outline Button */
.wp-block-button.is-style-developry-nexus-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 2px solid currentColor;
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-developry-nexus-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base);
}

/* Ghost Button */
.wp-block-button.is-style-developry-nexus-ghost .wp-block-button__link {
	background-color: transparent !important;
	border: none;
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.wp-block-button.is-style-developry-nexus-ghost .wp-block-button__link:hover {
	color: var(--wp--preset--color--contrast);
	text-decoration-thickness: 2px;
}

/* Pill Button */
.wp-block-button.is-style-developry-nexus-pill .wp-block-button__link {
	border-radius: 50px !important;
}

/* Shadow Button */
.wp-block-button.is-style-developry-nexus-shadow .wp-block-button__link {
	box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.wp-block-button.is-style-developry-nexus-shadow .wp-block-button__link:hover {
	box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

/* ==========================================================================
   QUOTE STYLES
   ========================================================================== */

/* Bordered Quote */
.wp-block-quote.is-style-developry-nexus-bordered {
	background-color: var(--wp--preset--color--tertiary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 0.5rem;
	padding: 1.5rem;
}

.wp-block-quote.is-style-developry-nexus-bordered::before {
	content: none;
}

/* Highlight Quote */
.wp-block-quote.is-style-developry-nexus-highlight {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0.25rem;
	font-style: italic;
	padding: 1.5rem;
}

/* Minimal Quote */
.wp-block-quote.is-style-developry-nexus-minimal {
	border: none;
	font-style: normal;
	padding-left: 0;
}

.wp-block-quote.is-style-developry-nexus-minimal p {
	font-size: 1.25em;
	line-height: 1.6;
}

.wp-block-quote.is-style-developry-nexus-minimal cite {
	color: var(--wp--preset--color--secondary);
	display: block;
	font-size: 0.875em;
	margin-top: 1rem;
}

/* ==========================================================================
   IMAGE STYLES
   ========================================================================== */

/* Rounded Image */
.wp-block-image.is-style-developry-nexus-rounded img {
	border-radius: 1rem;
}

/* Shadow Image */
.wp-block-image.is-style-developry-nexus-shadow img {
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s ease;
}

.wp-block-image.is-style-developry-nexus-shadow:hover img {
	box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25);
}

/* Bordered Image */
.wp-block-image.is-style-developry-nexus-bordered img {
	background-color: var(--wp--preset--color--base);
	border: 3px solid var(--wp--preset--color--primary);
	padding: 0.5rem;
}

/* ==========================================================================
   LIST STYLES
   ========================================================================== */

/* Checkmark List */
.wp-block-list.is-style-developry-nexus-checkmark {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-developry-nexus-checkmark li {
	margin-bottom: 0.75rem;
	padding-left: 2rem;
	position: relative;
}

.wp-block-list.is-style-developry-nexus-checkmark li::before {
	color: var(--wp--preset--color--success);
	content: "✓";
	font-size: 1.25em;
	font-weight: bold;
	left: 0;
	position: absolute;
}

/* Arrow List */
.wp-block-list.is-style-developry-nexus-arrow {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-developry-nexus-arrow li {
	margin-bottom: 0.75rem;
	padding-left: 2rem;
	position: relative;
}

.wp-block-list.is-style-developry-nexus-arrow li::before {
	color: var(--wp--preset--color--primary);
	content: "→";
	font-size: 1.25em;
	font-weight: bold;
	left: 0;
	position: absolute;
}

/* No Bullets List */
.wp-block-list.is-style-developry-nexus-no-bullets {
	list-style: none;
	padding-left: 0;
}

/* ==========================================================================
   HEADING STYLES
   ========================================================================== */

/* Underline Heading */
.is-style-developry-nexus-underline {
	padding-bottom: 0.5rem;
	position: relative;
}

.is-style-developry-nexus-underline::after {
	background-color: var(--wp--preset--color--primary);
	border-radius: 2px;
	bottom: 0;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	width: 60px;
}

/* Gradient Text Heading */
.is-style-developry-nexus-gradient {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Highlight Heading */
.is-style-developry-nexus-highlight {
	background: linear-gradient(180deg, transparent 60%, rgba(251, 191, 36, 0.3) 60%);
	display: inline-block;
	padding: 0 0.25em;
}

/* ==========================================================================
   PARAGRAPH STYLES
   ========================================================================== */

/* Styled Drop Cap */
.is-style-developry-nexus-dropcap-styled.has-drop-cap::first-letter {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 0.25rem;
	color: var(--wp--preset--color--base);
	margin-right: 0.15em;
	padding: 0.25em 0.3em;
}

/* Callout Paragraph */
.is-style-developry-nexus-callout {
	background-color: var(--wp--preset--color--tertiary);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0.25rem;
	font-size: 1.1em;
	line-height: 1.6;
	padding: 1.5rem;
}

.is-style-developry-nexus-callout strong,
.is-style-developry-nexus-callout b {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   GROUP / CONTAINER STYLES
   ========================================================================== */

/* Card Group */
.wp-block-group.is-style-developry-nexus-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0.75rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 2rem;
	transition: all 0.3s ease;
}

.wp-block-group.is-style-developry-nexus-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Shadow Group */
.wp-block-group.is-style-developry-nexus-shadow {
	border-radius: 0.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 2rem;
}

/* Bordered Group */
.wp-block-group.is-style-developry-nexus-bordered {
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 0.5rem;
	padding: 2rem;
}

/* ==========================================================================
   SEPARATOR STYLES
   ========================================================================== */

/* Dots Separator */
.wp-block-separator.is-style-developry-nexus-dots {
	background: none;
	border: none;
	height: auto;
	line-height: 1;
	max-width: 100%;
	text-align: center;
}

.wp-block-separator.is-style-developry-nexus-dots::before {
	color: var(--wp--preset--color--secondary);
	content: "···";
	font-size: 2em;
	letter-spacing: 1em;
}

/* Gradient Separator */
.wp-block-separator.is-style-developry-nexus-gradient {
	background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--primary) 50%, transparent 100%);
	border: none;
	height: 2px;
}

/* ==========================================================================
   COVER STYLES
   ========================================================================== */

/* Gradient Overlay Cover */
.wp-block-cover.is-style-developry-nexus-gradient-overlay::before {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 781px) {

	.wp-block-group.is-style-developry-nexus-card,
	.wp-block-group.is-style-developry-nexus-shadow,
	.wp-block-group.is-style-developry-nexus-bordered {
		padding: 1.5rem;
	}

	.is-style-developry-nexus-callout {
		font-size: 1em;
		padding: 1rem;
	}

	.wp-block-list.is-style-developry-nexus-checkmark li,
	.wp-block-list.is-style-developry-nexus-arrow li {
		padding-left: 1.5rem;
	}
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	.wp-block-group.is-style-developry-nexus-card {
		background-color: rgba(255, 255, 255, 0.05);
		border-color: rgba(255, 255, 255, 0.1);
	}

	.is-style-developry-nexus-callout {
		background-color: rgba(255, 255, 255, 0.05);
	}

	.wp-block-quote.is-style-developry-nexus-bordered {
		background-color: rgba(255, 255, 255, 0.05);
		border-color: var(--wp--preset--color--primary);
	}
}
