/* Job Detail Page Styles */
.job-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-color);
}

.breadcrumb i {
    font-size: 12px;
}

/* Main Content Layout */
.job-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.job-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Job Header */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.job-title-section h1 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.job-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-light);
    font-size: 16px;
}

.company-name {
    font-weight: 500;
    color: var(--text-color);
}

.meta-separator {
    color: var(--border-color);
}

.job-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--border-color);
}

.btn-action.saved {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Quick Details */
.quick-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* Job Sections */
.job-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.job-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.job-description, .job-requirements, .job-benefits {
    line-height: 1.6;
    color: var(--text-color);
}

.job-description p, .job-requirements p, .job-benefits p {
    margin-bottom: 15px;
}

.job-description ul, .job-requirements ul, .job-benefits ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.job-description li, .job-requirements li, .job-benefits li {
    margin-bottom: 8px;
}

/* Application Section */
.application-section {
    padding: 20px 0;
}

.application-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.owner-notice {
    background: color-mix(in srgb, var(--primary-color) 5%, transparent);
    border-left: 4px solid var(--primary-color);
}

.applied-notice {
    background: color-mix(in srgb, var(--success-color) 5%, transparent);
    border-left: 4px solid var(--success-color);
}

.applied-notice .notice-icon {
    color: var(--success-color);
}

.login-prompt {
    background: color-mix(in srgb, var(--warning-color) 5%, transparent);
    border-left: 4px solid var(--warning-color);
}

.login-prompt .notice-icon {
    color: var(--warning-color);
}

.notice-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-color);
}

.notice-content p {
    margin: 0 0 15px;
    color: var(--text-light);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.application-form {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.char-counter.error {
    color: var(--error-color);
    font-weight: 500;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

.btn-full {
    width: 100%;
}

/* Employer Section */
.employer-section {
    padding: 20px 0;
}

.employer-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.employer-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.employer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.employer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 24px;
}

.employer-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-color);
}

.employer-badge .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #000;
}

.badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
    color: #000;
}

.badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8C6B46 100%);
    color: #fff;
}

.badge.none {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.employer-actions {
    display: flex;
    gap: 10px;
}

.employer-form {
    margin: 0;
}

.btn-success {
    background: var(--success-color);
    color: white;
    border: none;
}

.btn-success:hover {
    background: color-mix(in srgb, var(--success-color) 20%, black);
}

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

.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.apply-card {
    text-align: center;
}

.applied-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--success-color);
    font-weight: 500;
    padding: 15px;
}

.application-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.details-card h3, .share-card h3, .similar-jobs h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: var(--text-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-label {
    color: var(--text-light);
}

.detail-value {
    color: var(--text-color);
    font-weight: 500;
    text-align: right;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.link { background: var(--text-light); }

.share-btn:hover {
    transform: translateY(-2px);
}

.similar-job {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.similar-job h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--text-color);
}

.similar-job p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.view-more {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.view-more:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.share-link {
    display: flex;
    margin-bottom: 20px;
}

.share-link input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.share-link button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.social-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    color: var(--success-color);
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .job-content {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quick-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .job-detail-container {
        padding: 15px;
    }
    
    .job-title-section h1 {
        font-size: 24px;
    }
    
    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .employer-actions {
        flex-direction: column;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .job-title-section h1 {
        font-size: 20px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .detail-icon {
        margin-bottom: 10px;
    }
    
    .notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}