/**
 * CutePress Editor Styles
 * Styles for the WordPress block editor to match the front-end appearance
 */

/* Base styles */
.editor-styles-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
.editor-styles-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.editor-styles-wrapper h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.editor-styles-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.editor-styles-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.editor-styles-wrapper h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.editor-styles-wrapper h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.editor-styles-wrapper p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Links */
.editor-styles-wrapper a {
    color: #ff6b9d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.editor-styles-wrapper a:hover {
    color: #e55a87;
}

/* Buttons */
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
    background: #ff6b9d;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
}

.editor-styles-wrapper .wp-block-button .wp-block-button__link:hover {
    background: #e55a87;
}

/* Quotes */
.editor-styles-wrapper .wp-block-quote {
    border-left: 4px solid #ff6b9d;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.editor-styles-wrapper .wp-block-quote cite {
    color: #999;
    font-size: 0.9rem;
    font-style: normal;
}

/* Images */
.editor-styles-wrapper .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.editor-styles-wrapper .wp-block-image figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 0.5rem;
    font-style: italic;
}

/* Lists */
.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.editor-styles-wrapper li {
    margin-bottom: 0.5rem;
}

/* Code */
.editor-styles-wrapper code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.editor-styles-wrapper pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* Tables */
.editor-styles-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.editor-styles-wrapper th,
.editor-styles-wrapper td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.editor-styles-wrapper th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Block styles */
.editor-styles-wrapper .is-style-cutepress-fancy-quote {
    background: linear-gradient(135deg, #ff6b9d 0%, #e55a87 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    border: none;
}

.editor-styles-wrapper .is-style-cutepress-outline-button .wp-block-button__link {
    background: transparent;
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
}

.editor-styles-wrapper .is-style-cutepress-outline-button .wp-block-button__link:hover {
    background: #ff6b9d;
    color: white;
}

/* Alignment classes */
.editor-styles-wrapper .alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.editor-styles-wrapper .alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.editor-styles-wrapper .aligncenter {
    display: block;
    margin: 0 auto 1rem auto;
    text-align: center;
}

/* Wide and full width */
.editor-styles-wrapper .alignwide {
    width: 100%;
    max-width: 1200px;
}

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