/* ========================================
   Warm Earth Creative Resume Template CSS
   Modern Earthy Tones with Organic Blob Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #c9b896 0%, #d4c4a8 50%, #bfa97d 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: 1600px;
    width: 96vw;
    height: 94vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 460px;
    background: linear-gradient(180deg, #faf6f0 0%, #f5efe6 100%);
    padding: 35px 30px;
    overflow-y: auto;
    border-right: 4px solid #d4c4a8;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #8b6914 0%, #a67c52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 18px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #8b6914 0%, #a67c52 100%);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #5c4a1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #d4c4a8;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b6914;
    box-shadow: 0 0 0 4px rgba(139, 105, 20, 0.15);
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #8b7355;
    margin-top: 5px;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========================================
   Color Theme Picker
   ======================================== */
.theme-color-section {
    background: linear-gradient(135deg, #faf6f0 0%, #f0e8d9 100%);
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #d4c4a8;
    margin-bottom: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #8b6914;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px;
}

.color-label {
    flex: 1;
    font-size: 13px;
    color: #5c4a1f;
    font-weight: 600;
}

.reset-color-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b6914 0%, #a67c52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-color-btn:hover {
    background: linear-gradient(135deg, #a67c52 0%, #c49a6c 100%);
    transform: translateY(-2px);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 12px;
    border: 2px dashed #8b6914;
    background: #faf6f0;
    cursor: pointer;
    border-radius: 10px;
}

.photo-upload-section input[type="file"]:hover {
    border-color: #5c4a1f;
    background: #f5efe6;
}

/* ========================================
   Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b6914 0%, #a67c52 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 105, 20, 0.35);
}

.sample-data-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a8c41 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 140, 65, 0.4);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid #d4c4a8;
}

/* ========================================
   Experience, Education, Skill Items
   ======================================== */
.experience-item,
.education-item,
.skill-item,
.expertise-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #d4c4a8;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: linear-gradient(135deg, #f5efe6 0%, #e8dcc9 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #8b6914 0%, #a67c52 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #c49a6c;
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.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;
}

.btn-header-secondary {
    background: #ef4444;
    color: white;
}

.btn-header-secondary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-header-success {
    background: #10b981;
    color: white;
}

.btn-header-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ========================================
   Preview Container
   ======================================== */
.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: #e8dcc9;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* ========================================
   Resume Left Content Section (Main)
   ======================================== */
.resume-left {
    flex: 1;
    padding: 45px 35px 45px 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Name and Title Header */
.resume-header {
    margin-bottom: 30px;
}

.resume-name {
    font-size: 42px;
    font-weight: 900;
    color: #3d3120;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
    text-transform: uppercase;
}

.resume-title {
    font-size: 16px;
    font-weight: 600;
    color: #3d3120;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 15px 0 0 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #3d3120;
    display: inline-block;
}

/* Summary Section */
.resume-summary {
    margin-bottom: 30px;
}

.resume-summary-text {
    font-size: 13px;
    line-height: 1.8;
    color: #4a4033;
    text-align: justify;
}

/* Section Styling */
.main-section {
    margin-bottom: 28px;
}

.main-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #3d3120;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.main-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #8b6914;
}

/* Education Card */
.education-card {
    margin-bottom: 20px;
}

.edu-card-school {
    font-size: 15px;
    font-weight: 800;
    color: #3d3120;
    margin: 0 0 5px 0;
}

.edu-card-year {
    font-size: 13px;
    color: #6b5d45;
    margin: 0 0 10px 0;
}

.edu-bullet-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.edu-bullet-list li {
    font-size: 13px;
    line-height: 1.7;
    color: #4a4033;
    margin-bottom: 5px;
}

/* Experience Card */
.experience-card {
    margin-bottom: 25px;
}

.exp-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #3d3120;
    margin: 0 0 5px 0;
}

.exp-card-company {
    font-size: 14px;
    font-weight: 600;
    color: #6b5d45;
    font-style: italic;
    margin: 0 0 10px 0;
}

.exp-bullet-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.exp-bullet-list li {
    font-size: 13px;
    line-height: 1.7;
    color: #4a4033;
    margin-bottom: 6px;
}

/* ========================================
   Resume Right Section (Sidebar)
   ======================================== */
.resume-sidebar {
    width: 260px;
    padding: 40px 30px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Profile Photo */
.sidebar-photo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #3d3120;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: white;
}

.sidebar-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5efe6 0%, #e8dcc9 100%);
}

.sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-photo-placeholder {
    font-size: 60px;
    color: #a67c52;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #3d3120;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.sidebar-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #8b6914;
}

/* Skills List */
.skills-list {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
}

.skills-list li {
    font-size: 13px;
    line-height: 1.9;
    color: #4a4033;
    margin-bottom: 4px;
}

/* Expertise Section with Progress Bars */
.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expertise-item-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.expertise-label {
    font-size: 13px;
    color: #4a4033;
    font-weight: 500;
}

.expertise-bar-wrapper {
    position: relative;
    height: 10px;
    background: #d4c4a8;
    border-radius: 5px;
    overflow: hidden;
}

.expertise-bar {
    height: 100%;
    background: linear-gradient(90deg, #2d5a27 0%, #4a8c41 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.expertise-bar-accent {
    position: absolute;
    right: 15%;
    top: 0;
    height: 100%;
    width: 25%;
    border-radius: 0 5px 5px 0;
}

/* Contact Section */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    color: #4a4033;
    line-height: 1.5;
}

.contact-icon {
    width: 28px;
    height: 28px;
    background: #2d5a27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-text {
    padding-top: 4px;
    word-break: break-word;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f5efe6;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b6914 0%, #a67c52 100%);
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a67c52 0%, #c49a6c 100%);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

/* Large Tablets and Below (1200px) */
@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: 4px solid #d4c4a8;
    }

    .preview-section {
        width: 100%;
    }

    .resume-preview {
        width: 100%;
        min-height: auto;
        flex-direction: column;
    }

    .resume-left {
        width: 100%;
        padding: 35px 30px;
    }

    .resume-sidebar {
        width: 100%;
        padding: 30px;
    }

    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .preview-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Tablets (768px) */
@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: 12px;
        padding: 10px 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .preview-container {
        padding: 15px;
    }

    .resume-left {
        padding: 25px 20px;
    }

    .resume-sidebar {
        padding: 25px 20px;
    }

    .sidebar-photo-wrapper {
        width: 130px;
        height: 130px;
    }

    .resume-name {
        font-size: 32px;
    }

    .resume-title {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .main-section-title,
    .sidebar-section-title {
        font-size: 18px;
    }

    .preview-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-header-secondary,
    .btn-header-success {
        width: 100%;
    }
}

/* Small Mobile (480px) */
@media screen and (max-width: 480px) {
    .form-section h2 {
        font-size: 20px;
    }

    .sidebar-photo-wrapper {
        width: 110px;
        height: 110px;
    }

    .resume-name {
        font-size: 26px;
    }

    .resume-title {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .resume-left {
        padding: 20px 15px;
    }

    .resume-sidebar {
        padding: 20px 15px;
    }

    .main-section-title,
    .sidebar-section-title {
        font-size: 16px;
    }

    .contact-item {
        font-size: 11px;
    }

    .contact-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .resume-summary-text,
    .skills-list li,
    .edu-bullet-list li,
    .exp-bullet-list li {
        font-size: 12px;
    }

    .experience-card {
        padding: 15px;
    }

    .exp-card-title {
        font-size: 14px;
    }

    .exp-card-company {
        font-size: 13px;
    }
}

/* Print Styles */
@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;
        flex-direction: row;
    }
}
