/* =====================================================
   FREEVEXA — RESUME BUILDER
===================================================== */

.resume-page {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 140px 0 90px;
}


/* =====================================================
   HEADER
===================================================== */

.resume-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.resume-tool-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    color: white;
    font-size: 27px;
    background: linear-gradient(135deg,#7000ff,#00c8ff);
    box-shadow: 0 15px 40px rgba(112,0,255,.2);
}

.resume-label {
    display: block;
    margin-bottom: 12px;
    color: #00f0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.resume-header h1 {
    margin: 0;
    font-family: "Space Grotesk",sans-serif;
    font-size: clamp(42px,6vw,68px);
    line-height: 1;
    letter-spacing: -2px;
}

.resume-header p {
    max-width: 650px;
    margin: 20px auto 0;
    color: #9298a5;
    font-size: 16px;
    line-height: 1.7;
}

.resume-privacy {
    display: inline-flex;
    margin-top: 18px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
    color: #858c98;
    background: rgba(255,255,255,.025);
    font-size: 11px;
}


/* =====================================================
   BUILDER CARD
===================================================== */

.resume-builder-card {
    display: grid;
    grid-template-columns: minmax(400px, .9fr) minmax(500px, 1.1fr);
    gap: 25px;
    align-items: start;
}


/* =====================================================
   FORM
===================================================== */

.resume-form {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 26px;
    background: rgba(12,15,25,.72);
    backdrop-filter: blur(22px);
}

.form-heading {
    padding-bottom: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.form-heading span {
    color: #00f0ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.form-heading h2 {
    margin: 7px 0 0;
    font-size: 23px;
}


/* =====================================================
   FORM SECTION
===================================================== */

.form-section {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.form-section:last-child {
    border-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.section-title span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #00f0ff;
    background: rgba(0,240,255,.07);
    font-size: 10px;
}


/* =====================================================
   INPUTS
===================================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.form-group {
    margin-bottom: 13px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #858c98;
    font-size: 11px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.09);
    outline: none;
    border-radius: 12px;
    color: white;
    background: rgba(255,255,255,.035);
    font-family: "DM Sans",sans-serif;
    font-size: 13px;
    transition: .2s ease;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(0,240,255,.65);
    background: rgba(0,240,255,.025);
    box-shadow: 0 0 0 3px rgba(0,240,255,.04);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #626a76;
    font-size: 10px;
}


/* =====================================================
   EXPERIENCE / EDUCATION
===================================================== */

.experience-item,
.education-item {
    display: grid;
    gap: 10px;
    margin-bottom: 13px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 15px;
    background: rgba(255,255,255,.018);
}

.experience-item input,
.experience-item textarea,
.education-item input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08);
    outline: none;
    border-radius: 10px;
    color: white;
    background: rgba(255,255,255,.03);
    font-family: inherit;
    font-size: 12px;
}

.experience-item textarea {
    resize: vertical;
}

.add-item-btn {
    padding: 10px 14px;
    border: 1px solid rgba(0,240,255,.2);
    border-radius: 10px;
    color: #00f0ff;
    background: rgba(0,240,255,.04);
    cursor: pointer;
    font-size: 11px;
    transition: .2s ease;
}

.add-item-btn:hover {
    background: rgba(0,240,255,.09);
}


/* =====================================================
   PREVIEW
===================================================== */

.resume-preview-area {
    position: sticky;
    top: 105px;
}

.preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.preview-heading span {
    color: #717985;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.preview-heading button {
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    color: #090a0f;
    background: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}


/* =====================================================
   PAPER
===================================================== */

.resume-paper {
    width: 100%;
    min-height: 900px;
    box-sizing: border-box;
    padding: 55px 58px;
    color: #17191f;
    background: white;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
}


/* PAPER HEADER */

.paper-header {
    padding-bottom: 25px;
    border-bottom: 2px solid #17191f;
}

.paper-header h1 {
    margin: 0;
    font-family: "Space Grotesk",sans-serif;
    font-size: 35px;
    line-height: 1.1;
}

.paper-header h2 {
    margin: 7px 0 15px;
    color: #555b66;
    font-size: 14px;
    font-weight: 500;
}

.paper-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: #646a74;
    font-size: 9px;
}


/* PAPER SECTIONS */

.paper-section {
    margin-top: 25px;
}

.paper-section h3 {
    margin: 0 0 11px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dfe1e5;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.paper-section p {
    margin: 0;
    color: #4d535d;
    font-size: 10px;
    line-height: 1.7;
}


/* ENTRIES */

.paper-entry {
    margin-bottom: 17px;
}

.entry-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.entry-top strong {
    font-size: 11px;
}

.entry-top span {
    color: #777d86;
    font-size: 9px;
    white-space: nowrap;
}

.paper-entry b {
    display: block;
    margin-top: 4px;
    color: #656b75;
    font-size: 9px;
    font-weight: 600;
}

.paper-entry p {
    margin-top: 6px;
}


/* SKILLS */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skills-list span {
    padding: 6px 9px;
    border-radius: 5px;
    color: #30343b;
    background: #eef0f3;
    font-size: 9px;
}


/* LINKS */

.paper-links p {
    color: #555b65;
}


/* =====================================================
   INFO CARDS
===================================================== */

.resume-info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    margin-top: 45px;
}

.resume-info-card {
    padding: 25px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.018);
}

.resume-info-card > div {
    margin-bottom: 18px;
    font-size: 23px;
}

.resume-info-card h3 {
    margin: 0 0 7px;
    font-size: 15px;
}

.resume-info-card p {
    margin: 0;
    color: #727985;
    font-size: 11px;
    line-height: 1.7;
}


/* =====================================================
   LIGHT MODE
===================================================== */

body.light-mode .resume-form,
body.light-mode .resume-info-card {
    border-color: rgba(0,0,0,.1);
    background: rgba(255,255,255,.7);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .experience-item input,
body.light-mode .experience-item textarea,
body.light-mode .education-item input {
    border-color: rgba(0,0,0,.1);
    color: #111827;
    background: rgba(0,0,0,.025);
}

body.light-mode .resume-header h1,
body.light-mode .form-heading h2,
body.light-mode .section-title {
    color: #101828;
}


/* =====================================================
   PRINT
===================================================== */

@media print {

    body {
        background: white !important;
    }

    .navbar,
    .resume-header,
    .resume-form,
    .preview-heading,
    .resume-info-grid,
    .footer,
    .ambient {
        display: none !important;
    }

    .resume-page {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .resume-builder-card {
        display: block;
    }

    .resume-preview-area {
        position: static;
    }

    .resume-paper {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 18mm;
        box-shadow: none;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1050px) {

    .resume-builder-card {
        grid-template-columns: 1fr;
    }

    .resume-preview-area {
        position: static;
    }

}


@media (max-width: 650px) {

    .resume-page {
        width: min(100% - 24px, 700px);
        padding-top: 115px;
    }

    .resume-form {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .resume-paper {
        padding: 35px 25px;
        min-height: 700px;
    }

    .resume-info-grid {
        grid-template-columns: 1fr;
    }

    .paper-header h1 {
        font-size: 28px;
    }

    .entry-top {
        flex-direction: column;
        gap: 4px;
    }

}
