/*
Theme Name: MJMDev Preview
Theme URI: https://www.mjmdev.co.uk/
Author: Martin Murphy
Author URI: https://www.mjmdev.co.uk/
Description: A Wordpress theme designed for headless previewing, embedding the frontend site within the Wordpress admin panel.
Version: 1.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mjmdev_preview
*/

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 40px;
    background: #eef1f5;
    color: #333;
}
.wrap {
    background: #fff;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin: auto;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f4f4f4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.page-name {
    font-size: 1.25rem;
    font-weight: 600;
}
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.status-indicator {
    padding: 8px 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
}
.publish {
    background: #28a745;
    color: #fff;
}
.draft {
    background: #ffc107;
    color: #333;
}
.trash {
    background: #dc3545;
    color: #fff;
}
.preview-button {
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 0;
}
.preview-button:hover {
    background: #005177;
    transform: translateY(-2px);
}
.iframe-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: inset 0px 2px 10px rgba(0,0,0,0.05);
}
iframe {
    width: 100%;
    height: 75vh;
    border: none;
}
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}
footer a {
    color: #0073aa;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}