/* Pull Quote Styles with Curly Quotes */
.wp-block-quote,
blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    background-color: color-mix(in srgb, var(--primary-color) 10%, white);
    border-radius: 0.5rem;
    font-size: 1.1rem; /* Slightly larger than paragraph text */
    line-height: 1.6;
    color: var(--text-color);
	text-align: left;
}

.wp-block-quote::before,
blockquote::before {
    content: '\201C'; /* Left double quotation mark */
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.wp-block-quote cite,
blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
    font-style: normal;
	text-align: left;
}

/* AI Prompt Styles */
/* Chat Bubble Base Styles */
.is-style-ai-prompt-bubble,
.is-style-user-prompt-bubble {
    position: relative;
    max-width: 80%;
    width: fit-content;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    clear: both;
}

/* Conversation and Chat Bubble Spacing */
.wp-block-group.is-conversation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    clear: both; /* Ensure it clears any floated elements */
    margin-bottom: 2rem; /* Add space after the conversation block */
}

.is-style-ai-prompt-bubble,
.is-style-user-prompt-bubble {
    position: relative;
    max-width: 80%;
    width: fit-content;
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    clear: both; /* Prevent floating elements from colliding */
}

/* AI Bubble Styles */
.is-style-ai-prompt-bubble {
    background-color: color-mix(in srgb, var(--primary-color) 10%, white);
    float: none;
    margin-right: auto;
    padding-left: 3.5rem;
}

.is-style-ai-prompt-bubble::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    transform: rotate(45deg);
}

.is-style-ai-prompt-bubble::after {
    content: 'AI';
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* User Bubble Styles */
.is-style-user-prompt-bubble {
    background-color: #f0f0f0;
    float: none;
    margin-left: auto;
}

.is-style-user-prompt-bubble::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: #f0f0f0;
    transform: rotate(45deg);
}

.wp-block-group.is-conversation + * {
    clear: both;
}

/* Special Text Block Style */
.is-style-special-text {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    font-family: inherit;
    color: #444;
    line-height: 1.6;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 4px;
    position: relative;
}

/* Add subtle highlight effect on hover */
.is-style-special-text:hover {
    background-color: color-mix(in srgb, var(--primary-color) 5%, white);
    transition: background-color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .is-style-special-text {
        padding: 1rem;
    }
}