/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Main Container Styles */
.citadina-job-search-container,
.citadina-job-listing-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Jost', sans-serif;
}

/* Search Form Styles */
.citadina-job-search-container {
    padding: 30px 20px;
    text-align: center;
}

.citadina-job-search-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.citadina-search-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.citadina-search-field {
    flex: 1;
    min-width: 200px;
}

.citadina-search-field select,
.citadina-search-field input[type="text"] {
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.citadina-search-submit {
    flex: 1;
    min-width: 200px;
}

.citadina-search-button {
    width: 100%;
    padding: 12px;
    background-color: #485057;
    color: #FDD900;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Jost';
    padding: 20px 75px;
}

.citadina-search-button:hover {
    background-color: #555;
}

/* Job Listing Styles */
.citadina-job-listing-container {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.citadina-jobs-header {
    display: flex;
    padding: 15px 20px;
    background-color: #fff;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
}

.citadina-jobs-list {
    display: flex;
    flex-direction: column;
}

.header-col, .job-col {
    padding: 0 10px;
}

.job-title-header, .job-title {
    flex: 3;
}

.job-category-header, .job-category {
    flex: 2;
}

.job-type-header, .job-type {
    flex: 2;
}

.job-actions-header, .job-details-button {
    flex: 1.5;
    text-align: right;
    min-width: 150px;
}

.citadina-job-item {
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #485057;
    background-color: #fff;
    border-bottom: 2px solid #FDD900;
}

.citadina-job-item:last-child {
    margin-bottom: 0;
}

.job-item-main {
    display: flex;
    align-items: center;
    padding: 15px 20px 15px 20px;
}

.citadina-job-item.expanded .job-item-main {
    background-color: #FDD900;
}

.job-title {
    font-size: 15px;
    transition: color 0.3s ease;
}

.job-category, .job-type {
    color: #485057;
}

.job-details-button a {
    display: inline-block;
    text-align: center;
    padding: 8px 15px;
    color: #485057;
    text-decoration: none;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    line-height: 1.3;
    white-space: normal;
}

/* Remove focus outline from all anchors in the job listing */
.citadina-job-listing-container a:focus,
.citadina-job-listing-container a:active,
.citadina-job-listing-container a:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none;
}



/* Job Details Styles */
.citadina-job-details-container {
    width: 100%;
}

.citadina-job-details {
    padding: 30px;
    background-color: #fff;
    border-radius: 0;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #485057;
}

.citadina-job-details h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
}

.job-description {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.responsibilities-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}

.responsibilities-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.job-responsibilities, 
.job-requirements,
.job-experience,
.job-education {
    margin-bottom: 25px;
}

.job-requirements p,
.job-experience p,
.job-education p {
    margin: 0;
    line-height: 1.5;
}

.job-apply-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.citadina-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
    min-width: 150px;
    border: none;
    outline: none;
}

.citadina-apply-btn:focus,
.citadina-apply-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Modal styles */
.citadina-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto; /* Enable vertical scrolling */
}

.citadina-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 20px 25px 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh; /* Limit height to 90% of viewport height */
    overflow-y: auto; /* Enable scrolling within the modal content */
}

.citadina-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-right: 30px; /* Space for close button */
}

.citadina-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* Form styles */
.wpcf7-form label {
    display: block;
    margin-bottom: 3px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    color: #485057;
    font-size: 14px;
}

/* Fix for br tags in form */
.wpcf7-form br {
    display: none;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: calc(100% - 20px);
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.wpcf7-form textarea {
    height: 80px; /* Limit textarea height */
}

.wpcf7-form input[type="submit"] {
    background-color: #485057;
    color: #FDD900;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    margin-top: 5px;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #555;
}

.wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7-form .wpcf7-acceptance input {
    margin-top: 5px;
}

/* File input styles */
.wpcf7-form input[type="file"] {
    width: 100%;
    padding: 5px 0;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #485057;
}

/* CV requirement text */
.cv-requirement {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #666;
    margin-top: -2px;
    margin-bottom: 5px;
    font-style: italic;
    line-height: 1.3;
}

.apply-prin-linkedin {
    background-color: #FDD900;
    color: #333;
}


.apply-direct {
    background-color: #485057;
    color: white;
}

.apply-direct:hover {
    background-color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .citadina-search-fields {
        flex-direction: column;
    }
    
    .citadina-search-field,
    .citadina-search-submit {
        width: 100%;
        min-width: 100%;
    }
    
    /* Hide category and type columns on mobile */
    .job-category-header, .job-category,
    .job-type-header, .job-type {
        display: none;
    }
    
    /* Adjust flex for remaining columns */
    .job-title-header, .job-title {
        flex: 2;
    }
    
    .job-actions-header, .job-details-button {
        flex: 2;
        min-width: 120px;
    }
    
    .job-meta {
        grid-template-columns: 1fr;
    }
    
    /* Add responsive labels for mobile */
    .citadina-job-details .job-experience:before {
        content: 'Experiență necesară: ';
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }
    
    .citadina-job-details .job-education:before {
        content: 'Studii necesare: ';
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }
    
    .citadina-job-details .job-requirements:before {
        content: 'Permis conducere: ';
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }
    
    /* Stack apply buttons on mobile */
    .job-apply-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .citadina-apply-btn {
        margin-bottom: 10px;
    }
}

/* Settings page styles */
.citadina-settings-tabs .nav-tab-wrapper {
    margin-bottom: 20px;
}

.citadina-settings-tabs .tab-content {
    display: none;
    padding: 15px 0;
}

.citadina-settings-tabs .tab-content:first-of-type {
    display: block;
}

/* Help section styles */
.citadina-help-section {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.citadina-help-section h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 25px;
    color: #23282d;
}

.citadina-help-section h3:first-child {
    margin-top: 0;
}

.citadina-help-content {
    margin-bottom: 25px;
}

.citadina-help-steps {
    margin-left: 20px;
}

.citadina-help-steps li {
    margin-bottom: 15px;
}

.citadina-help-steps strong {
    display: block;
    margin-bottom: 5px;
    color: #23282d;
}

.citadina-help-content code {
    background: #f1f1f1;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 14px;
    display: inline-block;
    margin: 5px 0;
}

.citadina-template-code {
    margin: 15px 0;
    border: 1px solid #e5e5e5;
    background: #f9f9f9;
    border-radius: 3px;
    overflow: auto;
}

.citadina-template-code pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.citadina-template-code code {
    background: transparent;
    padding: 0;
    margin: 0;
    display: block;
    border-radius: 0;
}