/* ============================================
   TITANIUM EXECUTIVE RESUME BUILDER STYLES
   A modern executive resume template
   ============================================ */

/* ====================================
   GLOBAL & RESET
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ====================================
   CONTAINER LAYOUT
   ==================================== */
.resume-builder-container {
    display: flex;
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
}

/* ====================================
   LEFT SIDE: FORM SECTION
   ==================================== */
.form-section {
    flex: 0.85;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.form-section h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #4A5568;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Theme Color Picker */
.theme-color-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.theme-color-section label {
    color: white !important;
    font-size: 16px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 3px solid white;
    border-radius: 8px;
    cursor: pointer;
}

.color-label {
    color: white;
    font-size: 14px;
    flex: 1;
}

.reset-color-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-color-btn:hover {
    background: #f7fafc;
    transform: scale(1.05);
}

/* Photo Upload */
.photo-upload-section input[type="file"] {
    padding: 10px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

/* Buttons */
.add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sample-data-btn {
    background: linear-gradient(135deg, #4A5568 0%, #718096 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.4);
}

.action-buttons {
    margin-top: 30px;
}

/* Experience, Education, Competency, Certification Items */
.experience-item,
.education-item,
.competency-item,
.certification-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

/* ====================================
   RIGHT SIDE: PREVIEW SECTION
   ==================================== */
.preview-section {
    flex: 1.15;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: linear-gradient(135deg, #4A5568 0%, #718096 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-header-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-header-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-header-success {
    background: #48bb78;
    color: white;
}

.btn-header-success:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.preview-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f7fafc;
}

/* ====================================
   RESUME PREVIEW STYLES
   ==================================== */
.resume-preview {
    background: white;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

/* ====================================
   RESUME HEADER - Centered Design
   ==================================== */
.resume-header {
    background: linear-gradient(135deg, #4A5568 0%, #718096 100%);
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Profile Photo - Circular */
.profile-photo-wrapper {
    display: inline-block;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 60px;
    color: white;
}

/* Name and Title */
.header-name {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 24px;
    font-weight: 400;
    color: #e2e8f0;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Contact Bar - Horizontal with Icons */
.contact-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: #e2e8f0;
}

/* ====================================
   RESUME BODY - Card Style
   ==================================== */
.resume-body {
    padding: 40px;
}

.resume-section {
    margin-bottom: 35px;
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #4A5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-bar {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #4A5568 0%, #718096 100%);
    border-radius: 2px;
}

.section-content {
    color: #4a5568;
    line-height: 1.8;
}

/* Summary Section */
.summary-text {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-entry {
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.experience-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 20px;
}

.exp-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.exp-company {
    font-size: 16px;
    color: #4A5568;
    font-weight: 600;
}

.exp-dates {
    font-size: 14px;
    color: #718096;
    white-space: nowrap;
    font-weight: 600;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
}

.exp-achievements {
    list-style: none;
    padding: 0;
}

.exp-achievements li {
    padding-left: 25px;
    margin-bottom: 8px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.exp-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4A5568;
    font-weight: bold;
    font-size: 16px;
}

/* Two Column Section */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

/* Education Section */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-entry {
    padding-bottom: 15px;
    border-bottom: 1px solid #cbd5e0;
}

.education-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-degree {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.edu-institution {
    font-size: 15px;
    color: #4A5568;
    margin-bottom: 4px;
}

.edu-details {
    font-size: 13px;
    color: #718096;
    font-weight: 600;
}

/* Competencies Section */
.competencies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competency-item {
    font-size: 14px;
    color: #2d3748;
    padding: 8px 0;
    font-weight: 600;
}

/* Certifications Section */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    font-size: 15px;
    color: #2d3748;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #4A5568;
    font-weight: 600;
}

/* ====================================
   MOBILE RESPONSIVE DESIGN
   ==================================== */

/* Tablets and below (< 1200px) */
@media (max-width: 1200px) {
    .resume-builder-container {
        flex-direction: column;
    }
    
    .form-section,
    .preview-section {
        max-height: none;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    body {
        padding: 15px;
    }
    
    .form-section,
    .preview-section {
        padding: 20px;
    }
    
    .resume-header {
        padding: 40px 30px;
    }
    
    .header-name {
        font-size: 36px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .two-column-section {
        grid-template-columns: 1fr;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .resume-builder-container {
        gap: 15px;
    }
    
    .form-section,
    .preview-section {
        padding: 15px;
    }
    
    .form-section h2,
    .preview-header h2 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .resume-header {
        padding: 30px 20px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .photo-placeholder {
        font-size: 50px;
    }
    
    .header-name {
        font-size: 28px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .contact-bar {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .resume-body {
        padding: 20px;
    }
    
    .exp-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .exp-dates {
        align-self: flex-start;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .preview-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-header-secondary,
    .btn-header-success {
        width: 100%;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .resume-preview {
        border-radius: 8px;
    }
    
    .header-name {
        font-size: 24px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .resume-section {
        padding: 15px;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder {
        font-size: 40px;
    }
    
    .contact-item {
        font-size: 13px;
    }
}

/* ====================================
   SCROLLBAR STYLING
   ==================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 8px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4A5568 0%, #718096 100%);
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: #4A5568;
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    body {
        background: white;
    }
    
    .form-section,
    .preview-header {
        display: none;
    }
    
    .resume-builder-container {
        display: block;
    }
    
    .preview-section {
        box-shadow: none;
        max-height: none;
    }
    
    .preview-container {
        padding: 0;
    }
    
    .resume-preview {
        box-shadow: none;
        max-width: 100%;
    }
}
