/* Job Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #ffb343;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #e6a23c;
}

.breadcrumb-separator {
    color: #9ca3af;
}

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

/* Job Detail Layout */
.job-detail {
    padding: 40px 0 80px;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Job Detail Main */
.job-detail-main {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.job-detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.2;
}

.job-detail-company {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffb343;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.company-location {
    color: #6b7280;
    margin-bottom: 8px;
}

.company-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.company-tag {
    padding: 4px 8px;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Job Description */
.job-description-section {
    margin-bottom: 48px;
}

.job-description-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 16px;
}

.job-description-section h3:first-child {
    margin-top: 0;
}

.job-description-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

.job-description-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.job-description-section li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Application Section */
.application-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
}

.application-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.application-section p {
    color: #6b7280;
    margin-bottom: 24px;
}

.application-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Sidebar */
.job-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Apply Card */
.apply-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.apply-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb343;
    box-shadow: 0 0 0 3px rgba(38, 138, 136, 0.1);
}

.form-group small {
    font-size: 12px;
    color: #6b7280;
}

.btn-full {
    width: 100%;
}

/* Job Details Card */
.job-details-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-details-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

/* Similar Jobs Card */
.similar-jobs-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.similar-jobs-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.similar-job {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.similar-job:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.similar-job h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.similar-job h4 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.similar-job h4 a:hover {
    color: #ffb343;
}

.similar-company {
    color: #ffb343;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.similar-location {
    color: #6b7280;
    font-size: 13px;
}

/* Action Buttons */
.job-actions-top {
    display: flex;
    gap: 12px;
}

.bookmark-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
}

.bookmark-btn.bookmarked {
    background-color: #ffb343;
    color: white;
    border-color: #ffb343;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .job-detail-main {
        padding: 24px;
    }
    
    .job-detail-company {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .company-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .job-detail {
        padding: 24px 0 60px;
    }
    
    .job-detail-main {
        padding: 20px;
    }
    
    .job-detail-title {
        font-size: 2rem;
    }
    
    .job-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-actions-top {
        width: 100%;
        justify-content: flex-start;
    }
    
    .job-detail-meta {
        width: 100%;
    }
    
    .company-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .application-actions {
        flex-direction: column;
    }
    
    .apply-card,
    .job-details-card,
    .similar-jobs-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .job-detail-title {
        font-size: 1.75rem;
    }
    
    .job-detail-main {
        padding: 16px;
    }
    
    .apply-card,
    .job-details-card,
    .similar-jobs-card {
        padding: 16px;
    }
    
    .job-actions-top {
        flex-direction: column;
    }
    
    .bookmark-btn,
    .share-btn {
        justify-content: center;
    }
}
