﻿/* --- Modern Resume Editor (mre) & Preview (mrp) Shared Layout Styles --- */
/* Your existing .modern-resume-editor, .mre-header, .mre-body, .mre-main-col, .mre-sidebar-col styles
   will define the layout for BOTH the editor and the preview. This is good for consistency. */

/* --- Modern Resume PREVIEW (mrp) Specific Styles --- */

/* Controls whether edit icons are visible based on parent hover */
.modern-resume-preview.is-editable .btn-icon-edit {
    opacity: 0; /* Hidden by default */
}

.modern-resume-preview.is-editable .mrp-section-header-with-edit:hover .btn-icon-edit {
    opacity: 0.7; /* Show on hover of the header/item */
}

.btn-icon-edit:hover {
    opacity: 1 !important; /* Always show fully on direct hover */
    color: var(--primary-color);
}

.mrp-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.mrp-job-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0;
}

.contact-list-preview {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

    .contact-list-preview li {
        font-size: 0.9em;
        color: var(--text-color);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }

        .contact-list-preview li i {
            color: var(--primary-color);
            margin-right: 0.75rem;
            width: 18px;
            text-align: center;
        }

    .contact-list-preview a {
        color: var(--text-color);
        text-decoration: none;
        word-break: break-all;
    }

        .contact-list-preview a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

.mrp-summary-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.mre-list-item { /* This style is for the container of each experience/project in editor AND preview */
    position: relative;
    padding: 1rem 1rem 1rem 1.5rem;
    border-left: 3px solid var(--border-color);
    margin-bottom: 1.5rem;
    background-color: transparent; /* Preview doesn't need its own bg if parent has one */
    transition: border-color 0.2s ease;
}

    .mre-list-item:hover {
        border-left-color: var(--primary-color);
    }

.mre-item-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

.mre-item-subtitle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95em;
    font-style: italic;
    color: var(--secondary-color);
}

.mrp-entry-details {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

    .mrp-entry-details li {
        margin-bottom: 0.3rem;
    }

.mrp-project-link {
    margin-top: 0.5rem;
    font-size: 0.9em;
}

/* Sidebar Preview Styles */
.mre-sidebar-col .mre-section-title { /* Section titles in sidebar */
    font-size: 1.15rem; /* Make sidebar titles slightly smaller */
    border-bottom-width: 2px;
}

.mre-skill-category-preview {
    margin-bottom: 1rem;
}

.mre-skill-category-title-preview {
    font-size: 1em;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.mrp-skill-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .mrp-skill-tags li {
        background-color: var(--primary-color-soft, #e6f2ff);
        color: var(--primary-hover);
        font-weight: 500;
        padding: 3px 10px;
        border-radius: 15px;
        font-size: 0.85em;
    }

.mrp-entry-sidebar {
    margin-bottom: 1rem;
}

.mrp-entry-title-sidebar {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0;
}

.mrp-entry-subtitle-sidebar {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 0;
}

.mrp-sidebar-item-meta {
    font-size: 0.85em;
    color: var(--secondary-color);
}
