/* ========================================
   Burgundy Executive Premium Resume Template CSS
   Elegant Burgundy & Gold Professional Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-burgundy: #7c2d3f;
    --dark-burgundy: #5a1f2e;
    --light-burgundy: #9d3d52;
    --gold-accent: #d4af37;
    --text-dark: #2d2d2d;
    --text-gray: #555555;
    --text-light: #777777;
    --bg-gray: #f8f9fa;
    --border-gray: #e0e0e0;
}

body {
    font-family: 'Georgia', 'Times New Roman', 'Garamond', serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebef 100%);
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Main Container
   ======================================== */
.resume-builder-container {
    max-width: 1500px;
    width: 95vw;
    height: 92vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(124, 45, 63, 0.15);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 480px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    padding: 36px 32px;
    overflow-y: auto;
    border-right: 3px solid var(--primary-burgundy);
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-bottom: 28px;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-top: 32px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 0 3px rgba(124, 45, 63, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-light);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========================================
   Color Picker
   ======================================== */
.theme-color-section {
    background: linear-gradient(135deg, var(--bg-gray) 0%, white 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-gray);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid var(--primary-burgundy);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-input:hover {
    transform: scale(1.05);
}

.color-label {
    flex: 1;
    font-size: 12px;
    color: var(--text-gray);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.reset-color-btn {
    padding: 8px 16px;
    background: var(--primary-burgundy);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
}

.reset-color-btn:hover {
    background: var(--dark-burgundy);
    transform: translateY(-2px);
}

/* ========================================
   Photo Upload
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
}

/* ========================================
   Action Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--light-burgundy) 0%, var(--primary-burgundy) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 45, 63, 0.3);
}

.action-buttons {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-gray);
}

.sample-data-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold-accent);
    color: var(--dark-burgundy);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.sample-data-btn:hover {
    background: #c19a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ========================================
   Dynamic Form Items
   ======================================== */
.experience-item,
.education-item,
.competency-item,
.award-item {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-burgundy);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: #e8ebef;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--dark-burgundy) 100%);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(124, 45, 63, 0.3);
}

.preview-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.btn-header-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-header-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-header-success {
    background: var(--gold-accent);
    color: var(--dark-burgundy);
}

.btn-header-success:hover {
    background: #c19a2e;
    transform: translateY(-2px);
}

/* ========================================
   Preview Container
   ======================================== */
.preview-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.resume-preview {
    width: 210mm;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* ========================================
   Resume Header
   ======================================== */
.resume-header {
    background: var(--primary-burgundy);
    position: relative;
    height: 30px;
}

.accent-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-burgundy) 0%, 
        var(--light-burgundy) 50%, 
        var(--primary-burgundy) 100%);
}

/* ========================================
   Resume Body
   ======================================== */
.resume-body {
    padding: 0;
}

.content-columns {
    display: flex;
}

/* ========================================
   Left Column (Sidebar)
   ======================================== */
.left-column {
    width: 35%;
    background: linear-gradient(180deg, #f8f8f8 0%, #eeeeee 100%);
    padding: 40px 30px;
    border-right: 3px solid var(--primary-burgundy);
}

.profile-section {
    text-align: center;
    margin-bottom: 35px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 5px solid var(--primary-burgundy);
    box-shadow: 0 8px 25px rgba(124, 45, 63, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 64px;
    color: var(--primary-burgundy);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.contact-divider {
    width: 40px;
    height: 3px;
    background: var(--gold-accent);
    margin-bottom: 20px;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.contact-icon {
    font-size: 18px;
    color: var(--primary-burgundy);
    min-width: 24px;
}

.contact-text {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    word-break: break-word;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Competencies */
.competencies-list {
    list-style: none;
    padding: 0;
}

.competencies-list li {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.competencies-list li:before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-burgundy);
    font-size: 10px;
}

/* Education in Sidebar */
.education-entry {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d0d0d0;
}

.education-entry:last-child {
    border-bottom: none;
}

.edu-degree {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.edu-institution {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.edu-year {
    font-size: 11px;
    color: var(--primary-burgundy);
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.edu-honors {
    font-size: 11px;
    color: var(--gold-accent);
    font-style: italic;
    font-family: 'Georgia', serif;
}

/* Awards */
.awards-list {
    list-style: none;
    padding: 0;
}

.awards-list li {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.awards-list li:before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* ========================================
   Right Column (Main Content)
   ======================================== */
.right-column {
    width: 65%;
    padding: 40px 45px;
    background: white;
}

/* Name Section */
.name-section {
    margin-bottom: 35px;
    border-bottom: 3px solid var(--primary-burgundy);
    padding-bottom: 20px;
}

.name {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
}

.job-title {
    font-size: 18px;
    color: var(--gold-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Main Sections */
.main-section {
    margin-bottom: 35px;
}

.main-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-accent);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Summary */
.summary-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: justify;
    font-family: 'Georgia', serif;
}

/* Experience */
.experience-entry {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.experience-entry:last-child {
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.exp-left {
    flex: 1;
}

.exp-right {
    text-align: right;
}

.exp-position {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-family: 'Georgia', serif;
}

.exp-company {
    font-size: 13px;
    color: var(--primary-burgundy);
    font-weight: 600;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.exp-dates {
    font-size: 12px;
    color: var(--gold-accent);
    font-weight: 600;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.exp-achievements {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.exp-achievements li {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.exp-achievements li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-burgundy);
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-section::-webkit-scrollbar-thumb {
    background: var(--primary-burgundy);
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover {
    background: var(--dark-burgundy);
}

.preview-container::-webkit-scrollbar-thumb {
    background: var(--gold-accent);
    border-radius: 5px;
}

.preview-container::-webkit-scrollbar-thumb:hover {
    background: #c19a2e;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-builder-container {
        box-shadow: none;
        border-radius: 0;
        height: auto;
        max-width: 100%;
    }

    .form-section,
    .preview-header {
        display: none !important;
    }

    .preview-section {
        background: white;
    }

    .preview-container {
        padding: 0;
    }

    .resume-preview {
        box-shadow: none;
        width: 100%;
    }
}

/* ========================================
   Responsive Design - Mobile First
   ======================================== */

/* Tablets and Below (1200px) */
@media screen and (max-width: 1200px) {
    .resume-builder-container {
        width: 98vw;
        height: 95vh;
    }

    .form-section {
        width: 420px;
        padding: 28px 24px;
    }

    .form-section h2 {
        font-size: 24px;
    }

    .right-column {
        padding: 35px 40px;
    }

    .name {
        font-size: 34px;
    }
}

/* Tablets Portrait (992px) */
@media screen and (max-width: 992px) {
    body {
        padding: 10px;
        overflow: auto;
    }

    .resume-builder-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        border-radius: 12px;
    }

    .form-section {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid var(--primary-burgundy);
        max-height: none;
        padding: 28px 24px;
    }

    .preview-section {
        width: 100%;
    }

    .preview-container {
        padding: 24px;
    }

    .resume-preview {
        width: 100%;
        min-height: auto;
    }

    .content-columns {
        min-height: auto;
    }
}

/* Mobile Landscape (768px) */
@media screen and (max-width: 768px) {
    .form-section {
        padding: 24px 20px;
    }

    .form-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-section-title {
        font-size: 13px;
        margin-top: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .preview-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .preview-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-header-secondary,
    .btn-header-success {
        flex: 1;
        padding: 10px 14px;
        font-size: 13px;
    }

    .content-columns {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .left-column {
        border-right: none;
        border-bottom: 3px solid var(--primary-burgundy);
        padding: 30px 25px;
    }

    .right-column {
        padding: 30px 25px;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .job-title {
        font-size: 16px;
    }

    .exp-header {
        flex-direction: column;
    }

    .exp-right {
        text-align: left;
        margin-top: 4px;
    }
}

/* Mobile Portrait (576px) */
@media screen and (max-width: 576px) {
    body {
        padding: 5px;
    }

    .resume-builder-container {
        border-radius: 8px;
    }

    .form-section {
        padding: 20px 16px;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .color-picker-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .color-input {
        width: 100%;
    }

    .reset-color-btn {
        width: 100%;
    }

    .preview-container {
        padding: 16px;
    }

    .left-column,
    .right-column {
        padding: 25px 20px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .photo-placeholder {
        font-size: 48px;
    }

    .name {
        font-size: 24px;
    }

    .job-title {
        font-size: 14px;
    }

    .section-title,
    .main-section-title {
        font-size: 14px;
    }

    .contact-text,
    .competencies-list li,
    .awards-list li,
    .edu-institution,
    .summary-text,
    .exp-achievements li {
        font-size: 11px;
    }

    .add-btn,
    .sample-data-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (400px) */
@media screen and (max-width: 400px) {
    .form-section {
        padding: 16px 12px;
    }

    .left-column,
    .right-column {
        padding: 20px 16px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .name {
        font-size: 20px;
    }

    .job-title {
        font-size: 13px;
    }

    .experience-item,
    .education-item,
    .competency-item,
    .award-item {
        padding: 16px;
    }
}
