/* Custom Blockquote Block Styles */

.wp-block-custom-blockquote {
    margin: 24px 0;
    padding: 16px;
    background: #F2F2FF;
    border-radius: 8px;
    flex-direction: column;
    gap: 12px;
}

.custom-blockquote__quote-symbol {
    flex-shrink: 0;
    color: #3002B2;
    line-height: 1;
    margin-bottom: 1rem;
    align-self: center;
}

.custom-blockquote__quote-symbol .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.custom-blockquote__content {
    flex: 1;
    min-width: 0;
}

.custom-blockquote__text {
    font-weight: bold;
    margin-bottom: 12px;
    color: #17161A;
    font-size: 0.95rem;
    line-height: 1.6;
}

.custom-blockquote__text:last-child {
    margin-bottom: 0;
}

.custom-blockquote__source {
    color: #5C5966;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.custom-blockquote__source::before {
    content: "- ";
}

/* Editor Styles */
.wp-block-custom-blockquote--editing {
    border: 1px solid #e2e4e7;
    background: #fff;
}

.custom-blockquote__content--editing {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-blockquote__text-editor {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #17161A;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 80px;
}

.custom-blockquote__text-editor:focus {
    border-color: #3002B2;
    outline: none;
    box-shadow: 0 0 0 1px #3002B2;
}

.custom-blockquote__text-editor:empty::before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
    font-weight: normal;
}

.custom-blockquote__source-editor {
    display: flex;
    flex-direction: column;
}

.custom-blockquote__source-input {
    width: 100%;
}

.custom-blockquote__source-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    font-style: italic;
    color: #5C5966;
}

.custom-blockquote__source-input input:focus {
    border-color: #3002B2;
    outline: none;
    box-shadow: 0 0 0 1px #3002B2;
}

/* Preview Mode Styles */
.custom-blockquote__preview {
    cursor: pointer;
    border: 2px dashed transparent;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.custom-blockquote__preview:hover {
    border-color: #22027E;
}

.custom-blockquote__preview-placeholder {
    cursor: pointer;
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 4px;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.custom-blockquote__preview-placeholder:hover {
    border-color: #3002B2;
    background-color: #f0f6fc;
    color: #3002B2;
}

/* Responsive */
@media (min-width: 481px) {
    .wp-block-custom-blockquote {
        padding: 1rem;
    }

    .custom-blockquote__quote-symbol .dashicons {
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    .custom-blockquote__text {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (min-width: 769px) {
    .wp-block-custom-blockquote {
        flex-direction: unset;
        gap: 1rem;
        padding: 1.5rem;
        margin: 40px 0;
    }

    .custom-blockquote__quote-symbol {
        align-self: unset;
    }

    .custom-blockquote__text {
        font-size: 18px;
        margin-bottom: 1rem;
    }
}
