/*
 * Editor Styles for Cinesist Child Theme
 * This CSS applies ONLY within the WordPress Gutenberg editor.
 */

/* Override default link color in the editor */
:where(.editor-styles-wrapper) a {
    color: var(--cinesist-accent-color) !important; /* Force Cinesist Red */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease; /* Added for 3D effect */
}
:where(.editor-styles-wrapper) a:hover{
    color: var(--cinesist-heading-color) !important; /* General links are Gold on hover */
    text-decoration: none; 
    transform: translateY(-1px); /* Subtle lift for 3D effect */
    text-shadow: 0 0 5px rgba(226, 179, 4, 0.5); /* Subtle glow for 3D effect */
    cursor: pointer; /* Ensure pointer cursor */
}

/* Ensure your custom variables are available in the editor context */
:root {
    --cinesist-black: #000;
    --cinesist-dark-grey: #1a1a1a;
    --cinesist-dark-grey-lighter: #2a2a2a;
    --cinesist-light-grey: #cccccc;
    --cinesist-text-color: #f0f0f0; /* Off-white for general text */
    --cinesist-header-text-color: #f0f0f0; /* Off-white for header text */
    --cinesist-heading-color: #e2b304; /* Cinesist Gold for headings */
    --cinesist-accent-color: #e50914; /* Cinesist Red for accents */
    --cinesist-button-text-color: #f0f0f0; /* White for button text */
    --cinesist-border-color: rgba(255, 255, 255, 0.1); /* Subtle white border */
    --cinesist-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --cinesist-purple: #6a0dad; /* Example: If you use a purple accent */
    --cinesist-body-font: 'Montserrat', sans-serif;
    --cinesist-heading-font: 'Oswald', sans-serif;
}

/* Add any other specific editor styling here if needed */
/* For example, to make your custom subtitle look correct in the editor */
.entry-subtitle {
    font-family: var(--cinesist-body-font);
    font-size: 1.2em;
    font-weight: 400;
    color: var(--cinesist-light-grey);
    text-align: center; /* Or left, depending on how you want it in the editor */
    margin-top: 10px;
    margin-bottom: 25px;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Add styling for your custom metadata in the editor if it's not looking right */
.cinesist-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    font-size: 0.95em;
    color: var(--cinesist-light-grey);
    width: 100%;
    margin: 30px 0 40px 0;
    padding: 15px 20px;
    background-color: var(--cinesist-dark-grey-lighter);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.cinesist-post-meta strong {
    color: var(--cinesist-text-color);
    font-weight: 700;
    margin-right: 5px;
}

.cinesist-post-meta .cinesist-meta-item {
    display: inline-flex;
    align-items: center;
    background: none;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
}

.cinesist-post-meta .cinesist-meta-item .gp-icon svg {
    fill: var(--cinesist-heading-color);
    margin-right: 8px;
    width: 1em;
    height: 1em;
}

.cinesist-post-meta .cinesist-meta-item a {
    color: var(--cinesist-accent-color); /* Red for links in editor */
    text-decoration: none;
}
/* Make them titles POP! */
h1 {
    font-family: var(--cinesist-heading-font);
    color: var(--base);
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.2; 
}
/* Make our headers Gleam Cinematic GOLD!*/
h2, h3, h6 {
    font-family: var(--cinesist-heading-font);
    color: var(--cinesist-heading-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
/* Really want them small header to standout RED! */
h4 {
    font-family: var(--cinesist-heading-font);
    color: var(--cinesist-accent-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
h5 {
    font-family: var(--cinesist-heading-font);
    color: var(--cinesist-purple);
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.2
}