/* Job Detail Page */
.job-detail-page {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.job-detail-content {
    background-color: white;
    padding: 15px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Breadcrumb */
.job-breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Job Header */
.job-header {
    margin-bottom: 1.5rem;
}

.job-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hot-badge {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.job-title {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    filter: invert(1);
}
/* Job Info Row (Logo + Info Layout) */
.job-info-row {
    margin-bottom: 15px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Company Logo */
.company-logo-section {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.company-logo {
    max-width: 100%;
    max-height: 150px;
    padding: 0.5rem;
    background-color: white;
    object-fit: contain;
}

.company-logo-placeholder {
    width: 100%;
    max-width: 200px;
    height: 150px;
    background-color: #e9ecef;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6c757d;
}

/* Salary & Location */
.job-salary-location {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #495057;
}

.salary-text,
.location-text {
    margin-right: 0.5rem;
}

.separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

/* Posted Time */
.job-posted-time {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.job-posted-time i {
    margin-right: 0.5rem;
}

/* Social Share */
.social-share {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: bold;
    color: #495057;
}

.share-link {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}

.share-link:hover {
    opacity: 0.9;
    color: white;
}

.share-link.facebook {
    background-color: #1877f2;
}

.share-link.line {
    background-color: #00c300;
}

.share-link.copy-link {
    background-color: #6c757d;
}

/* Job Favorite Button */
.job-favorite-section {
    display: inline-flex;
    align-items: center;
}

.favorite-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid #dc3545;
    background-color: white;
    color: #dc3545;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
}

.favorite-btn:hover {
    background-color: #f8f9fa;
    border-color: #c82333;
    color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.favorite-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

.favorite-btn.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.favorite-btn.active:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.favorite-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

.favorite-btn.active i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.favorite-text {
    font-weight: 500;
}

.favorite-count {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Responsive: Favorite button */
@media (max-width: 768px) {
    .job-favorite-section {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .favorite-btn {
        width: 100%;
        justify-content: center;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-favorite-section {
        margin-left: 0 !important;
        margin-top: 0.75rem;
    }
}

/* Company Name */
.company-name-section {
    margin-bottom: 15px;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
    margin: 0;
}

.company-name i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Section Titles */
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.section-title i {
    margin-right: 0.5rem;
    color: #007bff;
}

.section-title-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title-large i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Job Content */
.job-content-section {
    margin-bottom: 15px;
}

.job-content {
    line-height: 1.8;
    color: #495057;
}

/* Work Location */
.work-location-section {
    margin-bottom: 15px;
}

.work-address {
    font-size: 1.1rem;
    color: #495057;
    margin: 0;
}

/* Google Map */
.google-map-section {
    margin-bottom: 15px;
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Payment Info Section - Phương thức trả lương và Ngày trả lương */
.payment-info-section {
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.payment-method-item,
.payment-date-item {
    flex: 1;
    min-width: 250px;
}

/* Work Info Section - Giờ làm việc và Số lượng cần tuyển */
.work-info-section {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.working-hours-item,
.quantity-needed-item {
    flex: 1;
    min-width: 250px;
}

/* Info Item Styles */
.info-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info-item-header i {
    font-size: 1.25rem;
    color: #007bff;
}

.info-item-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #212529;
    margin: 0;
}

.info-item-value {
    font-size: 1.1rem;
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.working-hours-item .info-item-value {
    line-height: 1.8;
}

/* Work Photos */
.work-photos-section {
    margin-bottom: 15px;
}

.coming-soon {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* Workplace Images Grid */
.workplace-images-grid {
    margin-top: 1rem;
}

.workplace-image-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.workplace-image-item:hover {
    transform: scale(1.02);
}

.workplace-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    background: #f5f5f5;
}

.workplace-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.workplace-image-item:hover .workplace-image-thumb {
    transform: scale(1.1);
}

.workplace-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workplace-image-item:hover .workplace-image-overlay {
    opacity: 1;
}

.workplace-image-overlay i {
    color: white;
    font-size: 2rem;
}

/* Gallery Modal */
#workplaceGalleryModal .modal-body {
    padding: 1rem;
}

#workplace-gallery-carousel {
    max-height: 70vh;
}

#workplace-gallery-carousel .carousel-item img {
    border-radius: 8px;
}

.gallery-counter {
    color: #666;
    font-size: 0.9rem;
}

/* Related Jobs */
.related-jobs-section {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .job-detail-content {
        padding: 1rem;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
    
    .company-name {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .job-info-row {
        margin-bottom: 1.5rem;
    }
    
    .company-logo-section {
        min-height: 120px;
        margin-bottom: 1rem;
    }
    
    .company-logo {
        max-height: 120px;
    }
    
    .company-logo-placeholder {
        max-width: 150px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-link {
        width: 100%;
        text-align: center;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .payment-info-section,
    .work-info-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .payment-method-item,
    .payment-date-item,
    .working-hours-item,
    .quantity-needed-item {
        min-width: 100%;
    }
}

/* Workplace Images Responsive */
@media (max-width: 991.98px) {
    /* iPad: 2 columns */
    .workplace-images-grid .col-lg-3 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 767.98px) {
    /* Mobile: 1 column */
    .workplace-images-grid .col-lg-3,
    .workplace-images-grid .col-md-6 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .workplace-image-overlay i {
        font-size: 1.5rem;
    }
}

/* Job Apply Section */
.job-apply-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.apply-btn {
    min-width: 200px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.apply-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.apply-btn i {
    margin-right: 0.5rem;
}

/* Apply Job Modal */
#apply-job-modal .modal-body {
    min-height: 200px;
}

#apply-profiles-list .list-group-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

#apply-profiles-list .list-group-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

#apply-profiles-list .form-check-label {
    cursor: pointer;
    width: 100%;
    padding: 0.5rem;
}

#apply-profiles-list .form-check-input {
    cursor: pointer;
    margin-top: 13px;
}

#submit-apply-btn {
    min-width: 250px;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

#submit-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#apply-no-profiles .alert {
    border-radius: 0.5rem;
}

#apply-profiles-loading {
    text-align: center;
    padding: 2rem;
}

/* Responsive: Apply button */
@media (max-width: 768px) {
    .job-apply-section {
        margin-top: 1rem;
    }
    
    .apply-btn {
        width: 100%;
        min-width: auto;
    }
    
    #submit-apply-btn {
        width: 100%;
        min-width: auto;
    }
}
