﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --accent: #C66A2F;
    --accent-2: #8F4A1F;
    --accent-soft: #F4E2D6;
    --ink: #1F2933;
    --ink-soft: #4A5560;
    --mist: #F5F1EA;
    --paper: #FFFBF7;
    --steel: #28323A;
    --border: #E3DDD3;
    --shadow: rgba(15, 23, 42, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at top left, #f7f2ea 0%, #e6e0d8 40%, #d7dde2 100%);
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F2933;
}

.resume-builder-container {
    max-width: 1650px;
    width: 96vw;
    height: 94vh;
    margin: 0 auto;
    display: flex;
    background: #FFFBF7;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    animation: riseIn 0.8s ease forwards;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    width: 470px;
    background: linear-gradient(180deg, #faf6f1 0%, #f2ece3 100%);
    padding: 34px 30px;
    overflow-y: auto;
    border-right: 3px solid #E3DDD3;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 800;
    color: #28323A;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #FFFBF7;
    background: linear-gradient(135deg, #28323A 0%, #111827 100%);
    padding: 10px 14px;
    border-radius: 10px;
    margin: 26px 0 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid #E3DDD3;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C66A2F;
    box-shadow: 0 0 0 3px rgba(198, 106, 47, 0.15);
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.theme-color-section {
    background: linear-gradient(135deg, #fff4ea 0%, #f3e3d2 100%);
    padding: 18px;
    border-radius: 14px;
    border: 2px solid #efd9c7;
    margin-bottom: 18px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #C66A2F;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px;
}

.color-label {
    flex: 1;
    font-size: 12px;
    color: #4A5560;
    font-weight: 600;
}

.reset-color-btn {
    padding: 8px 16px;
    background: #28323A;
    color: #FFFBF7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.reset-color-btn:hover {
    background: #111827;
    transform: translateY(-2px);
}

.photo-upload-section input[type="file"] {
    padding: 10px;
    border: 2px dashed #C66A2F;
    background: #fff6ee;
    cursor: pointer;
}

.photo-upload-section input[type="file"]:hover {
    border-color: #8F4A1F;
    background: #fdebdc;
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #C66A2F 0%, #8F4A1F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(198, 106, 47, 0.35);
}

.sample-data-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.35);
}

.action-buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid #E3DDD3;
}

.experience-item,
.education-item,
.competency-item,
.certification-item {
    background: white;
    padding: 18px;
    border-radius: 14px;
    border: 2px solid #E3DDD3;
}

.preview-section {
    flex: 1;
    background: #edf1f4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #C66A2F;
}

.preview-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-header-secondary {
    background: #9f2d2d;
    color: white;
}

.btn-header-secondary:hover {
    background: #7f1d1d;
    transform: translateY(-2px);
}

.btn-header-success {
    background: #C66A2F;
    color: white;
}

.btn-header-success:hover {
    background: #8F4A1F;
    transform: translateY(-2px);
}

.preview-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.resume-preview {
    width: 210mm;
    min-height: 297mm;
    background: #FFFBF7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    opacity: 1;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-header {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
    padding: 34px 45px;
    display: flex;
    gap: 26px;
    align-items: center;
    border-bottom: 4px solid #C66A2F;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(198, 106, 47, 0.35) 0%, rgba(198, 106, 47, 0) 70%);
    transform: rotate(20deg);
}

.resume-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #C66A2F 0%, transparent 100%);
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.profile-photo-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid #f8fafc;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
    background: #fff;
}

.profile-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    font-size: 18px;
    font-weight: 600;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-badge {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(198, 106, 47, 0.2);
    color: #f9fafb;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.header-right {
    flex: 1;
    position: relative;
    z-index: 1;
}

.header-name {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 40px;
    font-weight: 800;
    color: #f9fafb;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: #f1e7dc;
    margin: 0 0 16px 0;
}

.contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #e5e7eb;
}

.contact-item {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-separator {
    color: rgba(255, 255, 255, 0.4);
}

.resume-body {
    padding: 38px 45px 45px;
}

.resume-section {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    color: #28323A;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #C66A2F;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-content {
    padding-top: 10px;
}

.summary-text {
    font-size: 15px;
    line-height: 1.8;
    color: #1F2933;
}

.summary-text::first-letter {
    font-size: 36px;
    font-weight: 700;
    color: #C66A2F;
    padding-right: 4px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience-entry {
    padding-left: 24px;
    border-left: 3px solid #F4E2D6;
    position: relative;
}

.experience-entry::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #C66A2F;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.exp-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 14px;
    font-weight: 600;
    color: #8F4A1F;
}

.exp-dates {
    font-size: 12px;
    font-weight: 700;
    color: #4A5560;
    background: #f4f4f5;
    padding: 6px 10px;
    border-radius: 8px;
}

.exp-achievements {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.exp-achievements li {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.exp-achievements li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #C66A2F;
    font-weight: 700;
}

.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 30px;
}

.education-entry {
    background: #fdf4ec;
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid #C66A2F;
}

.edu-degree {
    font-size: 14px;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 6px;
}

.edu-institution {
    font-size: 13px;
    font-weight: 600;
    color: #8F4A1F;
    margin-bottom: 4px;
}

.edu-details {
    font-size: 12px;
    color: #4A5560;
}

.competencies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.competency-tag {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #C66A2F;
    color: #8F4A1F;
    font-size: 12px;
    font-weight: 700;
    background: #fffaf5;
}

.certifications-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.8;
}

.cert-item {
    color: #1F2933;
    font-weight: 600;
}

.cert-separator {
    color: #C66A2F;
    font-weight: bold;
}

.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,
.preview-container::-webkit-scrollbar-thumb {
    background: #C66A2F;
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: #8F4A1F;
}

@media screen and (max-width: 1200px) {
    .resume-builder-container {
        width: 98vw;
        height: auto;
        min-height: 95vh;
        flex-direction: column;
    }

    .form-section {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 3px solid #E3DDD3;
    }

    .preview-section {
        width: 100%;
    }

    .resume-preview {
        width: 100%;
        min-height: auto;
    }

    .preview-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .preview-actions {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        overflow: visible !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    .resume-builder-container {
        border-radius: 12px;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: auto;
    }

    .form-section {
        padding: 20px 18px;
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .preview-section {
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .form-section h2 {
        font-size: 22px;
    }

    .form-section-title {
        font-size: 11px;
        padding: 8px 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .preview-container {
        padding: 15px;
    }

    .resume-header {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }

    .header-left {
        margin: 0 auto;
    }

    .profile-photo-wrapper {
        width: 110px;
        height: 110px;
    }

    .header-name {
        font-size: 30px;
    }

    .header-title {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .contact-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contact-separator {
        display: none;
    }

    .resume-body {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .two-column-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exp-header {
        flex-direction: column;
        gap: 6px;
    }

    .exp-right {
        text-align: left;
    }

    .preview-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-header-secondary,
    .btn-header-success {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .form-section h2 {
        font-size: 20px;
    }

    .header-name {
        font-size: 24px;
    }

    .header-title {
        font-size: 13px;
        letter-spacing: 1.6px;
    }

    .profile-photo-wrapper {
        width: 95px;
        height: 95px;
    }

    .resume-header {
        padding: 20px 16px;
    }

    .resume-body {
        padding: 20px 16px;
    }

    .section-title {
        font-size: 14px;
    }

    .contact-bar {
        font-size: 11px;
    }

    .competencies-grid {
        gap: 8px;
    }

    .competency-tag {
        font-size: 11px;
        padding: 7px 12px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-builder-container {
        box-shadow: none;
        border-radius: 0;
        height: auto;
    }

    .form-section,
    .preview-header {
        display: none;
    }

    .preview-section {
        width: 100%;
    }

    .preview-container {
        padding: 0;
    }

    .resume-preview {
        box-shadow: none;
        border-radius: 0;
    }
}

