/**
 * Royal Links Gutenberg Block Styles
 */

/* Search Interface */
.royal-links-gutenberg-search {
    width: 100%;
    max-width: 400px;
}

.royal-links-gutenberg-results {
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.royal-links-gutenberg-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    width: 100%;
    padding: 12px !important;
    border-bottom: 1px solid #eee;
    text-align: left;
    height: auto !important;
}

.royal-links-gutenberg-result:last-child {
    border-bottom: none;
}

.royal-links-gutenberg-result:hover {
    background: #f6f7f7;
}

.royal-links-gutenberg-result strong {
    font-weight: 600;
    margin-bottom: 4px;
}

.royal-links-gutenberg-result span {
    font-size: 12px;
    color: #666;
}

/* Block Preview */
.wp-block-royal-links-link {
    margin: 20px 0;
}

.wp-block-royal-links-link.alignleft {
    text-align: left;
}

.wp-block-royal-links-link.aligncenter {
    text-align: center;
}

.wp-block-royal-links-link.alignright {
    text-align: right;
}

/* Button Style */
.royal-links-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.royal-links-button:hover {
    background: #135e96;
    color: #fff;
}

/* Editor Preview Styling */
.editor-styles-wrapper .wp-block-royal-links-link {
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.editor-styles-wrapper .royal-links-button {
    pointer-events: none;
}
