:root {
    --primary-color: #007cba; /* WordPress Blue */
    --primary-hover: #006799;
    --bg-color: #f0f2f5;
    --text-color: #2c3338;
    --white: #ffffff;
    --border-color: #ccd0d4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f6f7f7;
}

.editor-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 500px;
}

/* Editor.js overrides */
.ce-block__content, .ce-toolbar__content {
    max-width: 100%;
}

/* Color Plugin Styles */
.cdx-marker {
    background-color: #FFBF00;
    padding: 2px 4px;
}

/* WooCommerce Preview Styles */
.wc-checklist {
    list-style: none;
    padding-left: 0;
}

.wc-checklist li {
    padding: 5px 0;
}

.wc-product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wc-product-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
}

.wc-product-table tr:first-child td {
    font-weight: 600;
    background-color: var(--bg-color);
}

.wc-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
}

.wc-warning strong {
    display: block;
    margin-bottom: 5px;
}

.wc-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.wc-button:hover {
    background-color: var(--primary-hover);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

textarea#html-output {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    padding: 10px;
    font-family: monospace;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
}

/* WooCommerce Product Elements Preview Styles */
.wc-checklist {
    list-style: none;
    padding-left: 0;
}

.wc-checklist li {
    padding: 5px 0;
}

.wc-product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.wc-product-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.wc-product-table tr:first-child td {
    font-weight: 600;
    background-color: #f9f9f9;
}

.wc-product-image {
    margin: 20px 0;
    text-align: center;
}

.wc-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.wc-product-image figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.wc-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
}

.wc-warning strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.wc-embed {
    margin: 20px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.wc-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Editor.js inline tools styling */
.cdx-marker {
    background-color: #ffeb3b;
    padding: 2px 4px;
}

mark {
    background-color: #ffeb3b;
    padding: 2px 4px;
}
