/* Job Detail Page Styles */

/* Breadcrumbs */
.job-breadcrumbs {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.job-breadcrumbs .breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #999999;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: #333333;
    font-weight: 500;
}

.job-detail-section {
    padding: 2rem;
    background-color: #faf9f7;
    min-height: calc(100vh - 80px);
}

.job-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Left Sidebar */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

/* Apply Card */
.apply-card {
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.btn-apply {
    display: block;
    width: 100%;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.btn-apply:hover {
    background-color: #e54000;
}

.btn-enquire {
    display: block;
    width: 100%;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    padding: 0.75rem;
    margin-top: 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-enquire:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.apply-note {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    margin: 0.75rem 0 0 0;
}

/* Owner Card */
.owner-card {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

.owner-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin: 0 0 1rem 0;
}

.owner-card .btn-edit,
.owner-card .btn-applications {
    display: block;
    width: 100%;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.owner-card .btn-edit {
    color: #ffffff;
    background-color: var(--primary-color);
}

.owner-card .btn-edit:hover {
    background-color: #e54000;
}

.owner-card .btn-applications {
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.owner-card .btn-applications:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Applied Card */
.applied-card {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.applied-card i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.applied-card p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #155724;
    margin: 0;
}

.btn-view-conversation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #155724;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #28a745;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.btn-view-conversation:hover {
    background-color: #28a745;
    color: #ffffff;
}

/* Quick Info */
.job-quick-info {
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf9f7;
    color: var(--primary-color);
    font-size: 1rem;
}

.quick-info-item > div {
    display: flex;
    flex-direction: column;
}

.quick-info-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8rem;
    color: #666666;
}

.quick-info-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000000;
}

.quick-info-highlight {
    background-color: #000000;
    padding: 1rem;
    margin: -0.5rem;
}

.quick-info-highlight i {
    background-color: var(--primary-color);
    color: #ffffff;
}

.quick-info-highlight .quick-info-label {
    color: #999999;
}

.quick-info-highlight .quick-info-value {
    color: #ffffff;
}

/* Job DateTime */
.job-datetime {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    color: #333333;
}

.job-datetime i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Employer Card */
.employer-card {
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.employer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.employer-avatar span {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.employer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.employer-name {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.employer-type {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
}

.employer-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

.employer-link:hover {
    opacity: 0.8;
}

/* Share Job */
.share-job {
    background-color: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.share-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    display: block;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf9f7;
    color: #333333;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Right Side - Job Content */
.job-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Job Header */
.job-header {
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.job-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #000000;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.375rem 0.875rem;
}

.badge-type {
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--primary-color);
}

.badge-style {
    background-color: #f0f0f0;
    color: #333333;
}

/* Job Sections */
.job-section {
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.job-section-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #000000;
    margin: 0 0 1rem 0;
}

/* Job Description */
.job-description p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #333333;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.job-description p:last-child {
    margin-bottom: 0;
}

/* Requirements List */
.job-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-requirements li {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #333333;
    padding-left: 1.75rem;
    position: relative;
}

.job-requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Schedule */
.job-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background-color: #faf9f7;
}

.schedule-day {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    min-width: 100px;
}

.schedule-time {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #333333;
}

.schedule-level {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    background-color: #ffffff;
    padding: 0.25rem 0.75rem;
    margin-left: auto;
}

/* Employer About */
.employer-about p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #333333;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.employer-about p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .job-detail-container {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .apply-card {
        grid-column: 1 / -1;
    }

    .job-quick-info {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .quick-info-item {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .job-detail-section {
        padding: 1rem;
    }

    .job-sidebar {
        grid-template-columns: 1fr;
    }

    .job-quick-info {
        flex-direction: column;
    }

    .job-header,
    .job-section {
        padding: 1.5rem;
    }

    .job-title {
        font-size: 1.4rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .schedule-level {
        margin-left: 0;
    }
}

/* Application Form */
.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.application-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.application-form .form-group label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
}

.application-form .form-group textarea {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #333333;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.application-form .form-group textarea::placeholder {
    color: #999999;
}

.messages-remaining {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    margin-top: -0.5rem;
}

.messages-remaining i {
    margin-right: 0.25rem;
}

.btn-submit {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #e54000;
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Field Errors */
.field-error {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.application-form .form-group textarea.error {
    border-color: #dc3545;
}

/* Success/Error Messages */
.application-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.application-success i {
    font-size: 1.25rem;
}

.application-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.application-error i {
    font-size: 1.25rem;
}
