/**
 * TalentTrack Job Detail Page Styles
 * Enhanced with comprehensive freestyle customization support
 * @group TalentTrack Styles
 * Last Updated: 2025-01-15
 */

/* Base Styles */
.talent-track-job-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.talent-track-job-detail .container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.talent-track-job-detail h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.talent-track-job-detail .job-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.talent-track-job-detail .job-meta p {
    margin: 8px 0;
    font-size: 16px;
    color: #555;
}

.talent-track-job-detail .job-meta strong {
    color: #2c3e50;
    font-weight: 600;
}

.talent-track-job-detail .job-description {
    line-height: 1.6;
    color: #333;
    font-size: 16px;
    margin-bottom: 30px;
}

.talent-track-job-detail .job-description h2,
.talent-track-job-detail .job-description h3,
.talent-track-job-detail .job-description h4 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
}

.talent-track-job-detail .job-description ul,
.talent-track-job-detail .job-description ol {
    margin: 15px 0;
    padding-left: 20px;
}

.talent-track-job-detail .job-description li {
    margin-bottom: 8px;
}

.talent-track-job-detail .job-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.talent-track-job-detail .job-actions .button {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.talent-track-job-detail .job-actions .button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .talent-track-job-detail {
        padding: 20px 15px;
    }
    
    .talent-track-job-detail .container {
        padding: 25px;
    }
    
    .talent-track-job-detail h1 {
        font-size: 2em;
    }
    
    .talent-track-job-detail .job-meta {
        padding: 15px;
    }
    
    .talent-track-job-detail .job-actions .button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Elementor Template Compatibility */
.elementor-page .talent-track-job-detail {
    padding: 0;
}

.elementor-page .talent-track-job-detail .container {
    box-shadow: none;
    background: transparent;
}

/* Job Benefits and Requirements Styling */
.job-benefits,
.job-requirements {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.job-benefits h3,
.job-requirements h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.job-benefits ul,
.job-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-benefits li,
.job-requirements li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.job-benefits li:before,
.job-requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.job-benefits li:last-child,
.job-requirements li:last-child {
    border-bottom: none;
}

/* Job Detail Widget Styles */

.job-detail-container {
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* ===== JOB TITLE WIDGET ===== */
.job-title-widget {
    display: block;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    cursor: default;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.2;
}

.job-title-widget:hover {
    transform: translateY(-1px);
}

/* ===== JOB COMPANY WIDGET ===== */
.job-company-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.job-company-widget:hover {
    transform: translateY(-1px);
}

.company-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.company-logo img {
    border-radius: 4px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.company-logo img:hover {
    transform: scale(1.05);
}

.company-prefix {
    color: #666;
    font-weight: 500;
}

.company-name {
    color: #2c3e50;
    font-weight: 600;
}

/* ===== JOB SALARY WIDGET ===== */
.job-salary-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.job-salary-widget:hover {
    transform: translateY(-1px);
}

.salary-icon {
    color: #27ae60;
    font-size: 16px;
    flex-shrink: 0;
}

.salary-prefix {
    color: #666;
    font-weight: 500;
}

.salary-amount {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

/* ===== JOB INDUSTRIES WIDGET ===== */
.job-industries-widget {
    margin: 15px 0;
    padding: 10px 0;
}

.industries-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.job-industries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.industry-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
    cursor: default;
}

.industry-tag:hover {
    background: #bbdefb;
    color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

/* ===== JOB DESCRIPTION WIDGET ===== */
.job-description-widget {
    margin: 20px 0;
    padding: 15px 0;
    line-height: 1.6;
    color: #333;
}

.job-description-widget h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.job-description-content {
    color: #555;
}

.job-description-content p {
    margin-bottom: 15px;
}

.job-description-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.job-description-content li {
    margin-bottom: 8px;
}

/* ===== JOB BENEFITS WIDGET ===== */
.job-benefits-widget,
.job-requirements-widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.job-benefits-widget h3,
.job-requirements-widget h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.job-benefits-widget ul,
.job-requirements-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-benefits-widget li,
.job-requirements-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.job-benefits-widget li:before,
.job-requirements-widget li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.job-benefits-widget li:last-child,
.job-requirements-widget li:last-child {
    border-bottom: none;
}

/* ===== JOB EDUCATION REQUIREMENTS WIDGET ===== */
.job-education-requirements-widget {
    margin: 15px 0;
    padding: 10px 0;
}

.education-requirements-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.job-education-requirements {
    color: #2c3e50;
    font-weight: 500;
}

.job-education-requirements-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.education-requirement-tag {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ffe0b2;
    transition: all 0.3s ease;
    cursor: default;
}

.education-requirement-tag:hover {
    background: #ffe0b2;
    color: #ef6c00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2);
}

/* ===== JOB SHIFT TYPE WIDGET ===== */
.job-shift-type-widget {
    margin: 15px 0;
    padding: 10px 0;
}

.shift-type-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.shift-type-text {
    color: #2c3e50;
    font-weight: 500;
}

.job-shift-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.shift-type-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e1bee7;
    transition: all 0.3s ease;
    cursor: default;
}

.shift-type-tag:hover {
    background: #e1bee7;
    color: #6a1b9a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.2);
}

/* ===== JOB EMPLOYMENT TYPE WIDGET ===== */
.job-employment-type-widget {
    margin: 15px 0;
    padding: 10px 0;
}

.employment-type-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.employment-type-text {
    color: #2c3e50;
    font-weight: 500;
}

.job-employment-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.employment-type-tag {
    background: #e8f5e8;
    color: #388e3c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #c8e6c9;
    transition: all 0.3s ease;
    cursor: default;
}

.employment-type-tag:hover {
    background: #c8e6c9;
    color: #2e7d32;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.2);
}

/* ===== JOB POSTING STATUS WIDGET ===== */
.job-posting-status-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-posting-status-widget .status-icon {
    font-size: 16px;
}

.job-posting-status-widget .status-prefix {
    color: #666;
}

.job-posting-status-widget .status-text {
    font-weight: 600;
}

.job-posting-status-widget.status-new {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.job-posting-status-widget.status-new .status-icon {
    color: #1976d2;
}

.job-posting-status-widget.status-soon {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}

.job-posting-status-widget.status-soon .status-icon {
    color: #f57c00;
}

.job-posting-status-widget.status-urgent {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.job-posting-status-widget.status-urgent .status-icon {
    color: #d32f2f;
}

.job-posting-status-widget.status-critical {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}

.job-posting-status-widget.status-critical .status-icon {
    color: #c2185b;
}

.job-posting-status-widget.status-closed {
    background: #f5f5f5;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.job-posting-status-widget.status-closed .status-icon {
    color: #757575;
}

.job-posting-status-widget.status-unavailable {
    background: #fafafa;
    color: #9e9e9e;
    border: 1px solid #f0f0f0;
}

.job-posting-status-widget.status-unavailable .status-icon {
    color: #9e9e9e;
}

/* ===== JOB COPY LINK WIDGET ===== */
.job-copy-link-widget {
    margin: 15px 0;
    padding: 10px 0;
}

.copy-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.copy-link-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.copy-link-button:active {
    transform: translateY(0);
}

.copy-link-button .icon-left,
.copy-link-button .icon-right {
    display: flex;
    align-items: center;
}

.copy-link-button .icon-left i,
.copy-link-button .icon-right i {
    font-size: 16px;
}

.copy-link-button .button-text {
    font-weight: 500;
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.copy-notification.success {
    background: #4caf50;
}

.copy-notification.error {
    background: #f44336;
}

.copy-notification::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===== JOB APPLY BUTTON WIDGET ===== */
.job-apply-button-widget {
    margin: 20px 0;
    padding: 15px 0;
    text-align: center;
}

.job-apply-button {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.job-apply-button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    color: #fff;
}

/* ===== JOB DATE POSTED WIDGET ===== */
.job-date-posted-widget {
    margin: 10px 0;
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.date-posted-label {
    color: #666;
    font-weight: 500;
    margin-right: 8px;
}

.date-posted-value {
    color: #2c3e50;
    font-weight: 500;
}

/* ===== JOB ID WIDGET ===== */
.job-id-wrapper {
    display: block;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.job-id {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: 1.4;
    transition: all 0.3s ease;
}


/* Badge Style */
.job-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0073aa;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.job-id-badge .job-id-prefix {
    color: rgba(255, 255, 255, 0.9);
}

.job-id-badge .job-id-value {
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-weight: 700;
}

.job-id-badge .job-id-suffix {
    color: rgba(255, 255, 255, 0.9);
}

/* Hover Effects */
.job-id-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-id {
        font-size: 14px;
    }
    
    .job-id-badge {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .job-id-value {
        padding: 3px 6px;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .job-id-wrapper {
    border: 1px dashed #ddd;
    border-radius: 4px;
}

.elementor-editor-active .job-id-badge {
    background: #0073aa;
    color: #ffffff;
}

/* ===== JOB ADDRESS WIDGET ===== */
.job-address-widget {
    margin: 15px 0;
    padding: 10px 0;
}

.address-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.address-content {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.address-icon {
    color: #666;
    margin-right: 8px;
    font-size: 16px;
}

/* ===== ELEMENTOR EDITOR COMPATIBILITY ===== */
.elementor-editor-active .job-detail-preview {
    border: 2px dashed #ddd;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.elementor-editor-active .job-detail-preview-badge {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
}

.job-detail-container:not(.job-detail-preview):hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ===== PRINT STYLES ===== */
@media print {
    .job-detail-preview-badge {
        display: none;
    }
    
    .job-detail-container {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .job-detail-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .job-detail-title {
        font-size: 1.8em;
    }
    
    .job-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-detail-company strong,
    .job-detail-salary {
        font-size: 14px;
    }
    
    .job-detail-preview-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .job-detail-container {
        background-color: #2c3e50;
        color: #ecf0f1;
    }
    
    .job-detail-title {
        color: #ecf0f1;
    }
    
    .job-detail-meta {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .job-detail-company strong,
    .job-detail-salary {
        color: #ecf0f1;
    }
    
    .job-detail-description {
        color: #bdc3c7;
    }
    
    .job-detail-description h3 {
        color: #ecf0f1;
    }
    
    .job-detail-benefits,
    .job-detail-requirements {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .job-detail-benefits h3,
    .job-detail-requirements h3 {
        color: #ecf0f1;
    }
    
    .job-detail-benefits li,
    .job-detail-requirements li {
        border-bottom-color: #4a5f7a;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
    .job-detail-widget {
        border: 2px solid #000;
    }
    
    .job-detail-widget:hover {
        border-color: #333;
    }
}

@media (prefers-reduced-motion: reduce) {
    .job-detail-widget,
    .job-detail-container,
    .copy-link-button,
    .job-apply-button {
        transition: none;
        animation: none;
    }
    
    .job-detail-widget:hover,
    .job-detail-container:hover {
        transform: none;
    }
}