/* ========================================
   Blue Geometric Resume Template CSS
   Inspired by Adeline Palmerston Design
   ======================================== */

:root {
    --accent-color: #5fa3d0;
    --accent-dark: #1e3a5f;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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: 1400px;
    width: 95vw;
    height: 92vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 450px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 32px 28px;
    overflow-y: auto;
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-medium);
    margin-top: 28px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 163, 208, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* ========================================
   Photo Upload & Color Picker
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
}

.photo-upload-section input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.2s;
}

.photo-upload-section input[type="file"]::file-selector-button:hover {
    background: var(--accent-dark);
}

.theme-color-section {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.color-label {
    flex: 1;
    font-size: 13px;
    color: var(--text-medium);
}

.reset-color-btn {
    padding: 8px 16px;
    background: white;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.reset-color-btn:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
}

/* ========================================
   Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 10px 20px;
    background: white;
    color: var(--accent-color);
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 12px;
}

.add-btn:hover {
    background: var(--accent-color);
    color: white;
    border-style: solid;
}

.action-buttons {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.sample-data-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #4a90e2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(95, 163, 208, 0.3);
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 163, 208, 0.4);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: white;
    padding: 20px 28px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-header-secondary {
    background: #f1f5f9;
    color: var(--text-medium);
}

.btn-header-secondary:hover {
    background: #e2e8f0;
}

.btn-header-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-header-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.preview-container {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ========================================
   Resume Preview
   ======================================== */
.resume-preview {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* ========================================
   Geometric Decorations
   ======================================== */
.geometric-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 280px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.9;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 180px 250px 0 0;
    border-color: var(--accent-color) transparent transparent transparent;
    top: 0;
    right: 0;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 120px 180px;
    border-color: transparent transparent #c5dce8 transparent;
    top: 0;
    right: 0;
}

.geo-rectangle {
    width: 140px;
    height: 100px;
    background: var(--accent-dark);
    top: 0;
    right: 250px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

/* ========================================
   Resume Header
   ======================================== */
.resume-header {
    display: flex;
    align-items: center;
    padding: 50px 50px 40px 50px;
    background: linear-gradient(to bottom, rgba(247, 250, 252, 0.5) 0%, transparent 100%);
    position: relative;
    z-index: 2;
}

.header-left {
    margin-right: 30px;
}

.profile-photo-wrapper {
    width: 180px;
    height: 180px;
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    border: 6px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    font-size: 72px;
    color: var(--text-light);
}

.header-right {
    flex: 1;
}

.preview-name {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.preview-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1.4;
}

/* ========================================
   Resume Body - Two Columns
   ======================================== */
.resume-body {
    display: flex;
    padding: 0 50px 50px 50px;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Sidebar Column (Left)
   ======================================== */
.sidebar-column {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Me */
.about-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-medium);
    text-align: justify;
}

/* Contact */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-icon {
    font-size: 16px;
    width: 24px;
    flex-shrink: 0;
}

.contact-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-medium);
    word-break: break-word;
}

/* Skills */
.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skills-list li {
    font-size: 13px;
    color: var(--text-medium);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.skills-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
}

/* Language */
.language-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-list li {
    font-size: 13px;
    color: var(--text-medium);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.language-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
}

/* ========================================
   Main Column (Right)
   ======================================== */
.main-column {
    flex: 1;
}

.main-section {
    margin-bottom: 40px;
}

.section-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-color);
}

.section-icon-main {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header-main h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Timeline Items
   ======================================== */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

/* Timeline connector line */
.timeline-item:not(:last-child):after {
    content: '';
    position: absolute;
    left: 68px;
    top: 32px;
    bottom: -28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color) 0%, var(--border-color) 100%);
}

.timeline-date {
    width: 140px;
    flex-shrink: 0;
    padding-top: 2px;
}

.date-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-light);
    color: var(--text-medium);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.timeline-content {
    flex: 1;
}

/* Education Timeline */
.timeline-institution {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.timeline-degree {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 4px;
    line-height: 1.5;
}

.timeline-gpa {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

/* Experience Timeline */
.timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.timeline-company {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-description {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-description li {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

.timeline-description li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 8px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 1200px) {
    .resume-builder-container {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
    }
    
    .form-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        max-height: 40vh;
    }
    
    .preview-section {
        max-height: 55vh;
    }
}

@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 {
        width: 100%;
        border-radius: 12px;
        height: auto !important;
        max-height: none !important;
        min-height: auto;
    }
    
    .form-section {
        padding: 24px 20px;
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .preview-section {
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }
    
    .preview-container {
        padding: 20px;
        overflow-x: auto;
    }
    
    .resume-preview {
        transform: none;
        width: 100%;
        min-width: 320px;
        font-size: 12px;
    }
    
    .resume-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 30px 25px 30px;
    }
    
    .header-left {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-photo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .preview-name {
        font-size: 32px;
    }
    
    .preview-title {
        font-size: 18px;
    }
    
    .resume-body {
        flex-direction: column;
        padding: 0 30px 30px 30px;
        gap: 30px;
    }
    
    .sidebar-column {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .form-section h2 {
        font-size: 22px;
    }
    
    .preview-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .preview-header h2 {
        font-size: 18px;
    }
    
    .preview-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn-header-secondary,
    .btn-header-success {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .resume-preview {
        font-size: 10px;
    }
    
    .geometric-decoration {
        height: 200px;
    }
    
    .geo-triangle-1 {
        border-width: 120px 180px 0 0;
    }
    
    .geo-rectangle {
        width: 100px;
        height: 70px;
        right: 180px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .resume-builder-container {
        box-shadow: none;
        border-radius: 0;
        height: auto;
        max-height: none;
    }
    
    .form-section,
    .preview-header {
        display: none;
    }
    
    .preview-section {
        background: white;
    }
    
    .preview-container {
        padding: 0;
    }
    
    .resume-preview {
        box-shadow: none;
        width: 100%;
        height: auto;
    }
}
