/* Base Styles */
.jd-container {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Typography */
.jd-container h1, 
.jd-container h2, 
.jd-container h3 {
    font-weight: 600;
    color: #1f2937;
}

.jd-container p {
    color: #4b5563;
    line-height: 1.6;
}

/* Layout */
.jd-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .d-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Breadcrumbs */
.jd-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.jd-breadcrumb-link {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4f46e5;
    transition: color 0.2s;
}

.jd-breadcrumb-link:hover {
    color: #4338ca;
}

.jd-breadcrumb-icon {
    margin-right: 0.25rem;
}

.jd-breadcrumb-divider {
    color: #d1d5db;
    font-size: 0.75rem;
}

.jd-breadcrumb-current {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    max-width: 20rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Job Header */
.jd-job-header {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.jd-job-header:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.jd-job-header-content {
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .jd-job-header-content {
        padding: 2rem;
    }
}

.jd-job-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.jd-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.jd-badge-icon {
    margin-right: 0.25rem;
}

.jd-badge-featured {
    background-color: #eef2ff;
    color: #4338ca;
}

.jd-badge-urgent {
    background-color: #ecfdf5;
    color: #065f46;
}

.jd-badge-expired {
    background-color: #fee2e2;
    color: #b91c1c;
}

.jd-job-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.jd-job-company {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.jd-job-company-icon {
    margin-right: 0.5rem;
    color: #4f46e5;
}

.jd-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jd-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.jd-meta-icon {
    margin-right: 0.375rem;
}

.jd-meta-active {
    color: #059669;
}

.jd-meta-expired {
    color: #dc2626;
}

.jd-job-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

@media (min-width: 640px) {
    .jd-job-actions {
        padding: 0 2rem 2rem;
    }
}

@media (min-width: 768px) {
    .jd-job-header {
        display: flex;
        justify-content: space-between;
    }
    
    .jd-job-actions {
        padding: 2rem;
        align-items: flex-start;
    }
}

/* Buttons */
.jd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.jd-button-icon {
    margin-right: 0.5rem;
}

.jd-button-icon-right {
    margin-left: 0.5rem;
}

.jd-button-primary {
    background: linear-gradient(to right, #4f46e5, #6366f1);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.jd-button-primary:hover {
    background: linear-gradient(to right, #4338ca, #4f46e5);
    transform: translateY(-1px);
}

.jd-button-apply {
    animation: jd-pulse 2s infinite;
}

@keyframes jd-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}

.jd-button-secondary {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.jd-button-secondary:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

.jd-button-link {
    background-color: transparent;
    color: #4f46e5;
    padding: 0;
}

.jd-button-link:hover {
    color: #4338ca;
    text-decoration: underline;
    transform: none;
}

.jd-button-submit {
    width: 100%;
}

/* Cards */
.jd-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.jd-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.jd-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .jd-card-header {
        padding: 2rem;
    }
}

.jd-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #eef2ff;
    margin-right: 1rem;
    color: #4f46e5;
    font-size: 1.25rem;
}

.jd-card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.jd-card-body {
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .jd-card-body {
        padding: 2rem;
    }
}

/* Job Description */
.jd-job-description h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.jd-description-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.jd-description-item {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.jd-description-paragraph {
    margin-bottom: 1rem;
}

/* Application Form */
.jd-application-form {
    margin-top: 1.5rem;
}

.jd-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .jd-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.jd-form-group {
    margin-bottom: 1.5rem;
}

.jd-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.jd-form-label-large {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
}

.jd-form-label-icon {
    margin-right: 0.5rem;
    color: #4f46e5;
}

.jd-form-input,
.jd-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jd-form-input:focus,
.jd-form-textarea:focus {
    border-color: #a5b4fc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.5);
}

.jd-form-textarea {
    min-height: 9rem;
}

.jd-form-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.jd-file-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .jd-file-upload {
        flex-direction: row;
        align-items: center;
    }
}

.jd-file-upload-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.jd-file-upload-button:hover {
    background-color: #f9fafb;
}

.jd-file-upload-icon {
    margin-right: 0.5rem;
    color: #6b7280;
}

.jd-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.jd-file-name {
    font-size: 0.875rem;
    color: #6b7280;
}

.jd-form-checkbox {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.jd-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    color: #4f46e5;
    cursor: pointer;
}

.jd-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.5);
}

.jd-checkbox-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.jd-link {
    color: #4f46e5;
    font-weight: 500;
    transition: color 0.2s;
}

.jd-link:hover {
    color: #4338ca;
}

.jd-link-icon {
    margin-right: 0.25rem;
}

.jd-form-submit {
    margin-top: 2rem;
}

/* Alerts */
.jd-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
}

.jd-alert-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
}

.jd-alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.jd-alert-tip {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.jd-alert-icon {
    color: #3b82f6;
}

.jd-alert-tip .jd-alert-icon {
    color: #10b981;
}

.jd-alert-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.jd-alert-info .jd-alert-title {
    color: #1e40af;
}

.jd-alert-tip .jd-alert-title {
    color: #065f46;
}

.jd-alert-message {
    font-size: 0.875rem;
}

.jd-alert-detail {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #6b7280;
}

/* Login Prompt */
.jd-login-prompt {
    text-align: center;
    padding: 2rem 0;
}

.jd-login-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.jd-login-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.jd-login-message {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.jd-login-button {
    margin-bottom: 1.5rem;
}

.jd-login-footer {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Company Card */
.jd-company-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.jd-company-logo-image {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.jd-company-logo-placeholder {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2ff;
    border-radius: 0.5rem;
    color: #a5b4fc;
    font-size: 2rem;
}

.jd-company-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: center;
}

.jd-company-website {
    display: flex;
    justify-content: center;
}

/* Job Overview */
.jd-overview-list {
    display: grid;
    gap: 1.5rem;
}

.jd-overview-item {
    display: flex;
}

.jd-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #eef2ff;
    margin-right: 1rem;
    color: #4f46e5;
}

.jd-overview-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.jd-overview-value {
    font-size: 0.875rem;
    color: #111827;
}

/* Share Job */
.jd-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jd-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    transition: all 0.2s;
}

.jd-share-button:hover {
    transform: translateY(-0.25rem);
}

.jd-share-facebook {
    background-color: #e5e7eb;
    color: #3b82f6;
}

.jd-share-twitter {
    background-color: #e5e7eb;
    color: #1da1f2;
}

.jd-share-linkedin {
    background-color: #e5e7eb;
    color: #0a66c2;
}

.jd-share-email {
    background-color: #e5e7eb;
    color: #6b7280;
}

.jd-share-url {
    position: relative;
    margin-bottom: 0.5rem;
}

.jd-share-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    font-size: 0.875rem;
}

.jd-share-copy {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    background-color: #eef2ff;
    border: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    color: #4f46e5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.jd-share-copy:hover {
    background-color: #e0e7ff;
}

.jd-share-message {
    font-size: 0.75rem;
    color: #059669;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.jd-show-message {
    opacity: 1;
}

/* Related Jobs */
.jd-related-jobs {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jd-related-job {
    display: block;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.jd-related-job:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-0.125rem);
}

.jd-related-job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.jd-related-job-title {
    font-size: 1rem;
    font-weight: 500;
    color: #4f46e5;
}

.jd-related-job-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: #eef2ff;
    color: #4f46e5;
}

.jd-related-job-meta {
    display: flex;
    gap: 1rem;
}

.jd-related-job-location,
.jd-related-job-date {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.jd-related-job-icon {
    margin-right: 0.25rem;
}

.jd-view-all {
    text-align: center;
}

/* Highlight Effect */
.jd-highlight {
    box-shadow: 0 0 0 2px #a5b4fc;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a5b4fc;
}