/* Job Detail Page Styles */

.job-detail-section {
    padding: 40px 0 80px;
    min-height: 70vh;
}

.back-link {
    margin-bottom: 32px;
    animation: fadeInUp 0.5s ease-out;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.job-header-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.company-logo-large {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.job-header-info {
    flex: 1;
}

.job-title-large {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.job-company-large {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.job-meta-large {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 6px 14px;
    border-radius: 20px;
}

.job-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.job-section .section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.apply-card,
.job-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.apply-title,
.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.apply-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 12px;
}

.info-icon {
    font-size: 20px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--primary);
}

.apply-btn {
    display: block;
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row .info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-row .info-value {
    color: var(--text-primary);
    font-size: 14px;
}

.info-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Responsive */

/* Tablets and smaller desktops */
@media (max-width: 1200px) {
    .job-detail-grid {
        grid-template-columns: 1fr 350px;
        gap: 24px;
    }

    .job-header-detail {
        padding: 28px;
    }
}

@media (max-width: 1024px) {
    .job-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .job-sidebar {
        order: -1;
        margin-bottom: 24px;
    }

    .apply-card,
    .job-info-card {
        position: static;
    }

    .job-header-detail {
        padding: 24px;
    }

    .company-logo-large {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .job-detail-section {
        padding: 30px 0 60px;
    }

    .back-link {
        margin-bottom: 24px;
    }

    .back-link a {
        font-size: 14px;
    }

    .job-header-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }

    .company-logo-large {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .job-header-info {
        width: 100%;
    }

    .job-title-large {
        font-size: clamp(22px, 5vw, 28px);
        margin-bottom: 10px;
    }

    .job-company-large {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .job-meta-large {
        justify-content: center;
        gap: 12px;
    }

    .meta-item {
        font-size: 13px;
        padding: 5px 12px;
    }

    .job-main {
        gap: 24px;
    }

    .job-section {
        padding: 24px 20px;
    }

    .job-section .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .section-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .job-sidebar {
        gap: 20px;
        margin-bottom: 20px;
    }

    .apply-card,
    .job-info-card {
        padding: 20px;
    }

    .apply-title,
    .card-title {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .apply-info {
        gap: 14px;
        margin-bottom: 20px;
    }

    .info-item {
        gap: 10px;
    }

    .info-icon {
        font-size: 18px;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 13px;
    }

    .apply-btn {
        padding: 13px 20px;
        font-size: 14px;
    }

    .info-list {
        gap: 14px;
    }

    .info-row {
        padding-bottom: 14px;
    }

    .info-row .info-label {
        font-size: 12px;
    }

    .info-row .info-value {
        font-size: 13px;
    }

    .info-badge {
        padding: 3px 10px;
        font-size: 12px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .job-detail-section {
        padding: 20px 0 50px;
    }

    .back-link {
        margin-bottom: 20px;
    }

    .back-link a {
        font-size: 13px;
    }

    .job-header-detail {
        padding: 20px 16px;
        gap: 16px;
        border-radius: var(--radius-md);
    }

    .company-logo-large {
        width: 56px;
        height: 56px;
        font-size: 22px;
        border-radius: 10px;
    }

    .job-title-large {
        font-size: clamp(20px, 6vw, 24px);
        margin-bottom: 8px;
    }

    .job-company-large {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .job-meta-large {
        gap: 10px;
    }

    .meta-item {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 16px;
    }

    .job-main {
        gap: 20px;
    }

    .job-section {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .job-section .section-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .section-content {
        font-size: 13px;
        line-height: 1.6;
    }

    .section-content ul,
    .section-content ol {
        padding-left: 20px;
    }

    .section-content li {
        margin-bottom: 8px;
    }

    .job-sidebar {
        gap: 16px;
        margin-bottom: 16px;
    }

    .apply-card,
    .job-info-card {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }

    .apply-title,
    .card-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .apply-info {
        gap: 12px;
        margin-bottom: 18px;
    }

    .info-item {
        gap: 10px;
    }

    .info-icon {
        font-size: 16px;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 12px;
    }

    .apply-btn {
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 10px;
    }

    .info-list {
        gap: 12px;
    }

    .info-row {
        padding-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .info-row .info-label {
        font-size: 11px;
    }

    .info-row .info-value {
        font-size: 12px;
    }

    .info-badge {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 16px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .job-detail-section {
        padding: 16px 0 40px;
    }

    .job-header-detail {
        padding: 16px 12px;
    }

    .company-logo-large {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .job-title-large {
        font-size: clamp(18px, 7vw, 22px);
    }

    .job-company-large {
        font-size: 14px;
    }

    .meta-item {
        font-size: 11px;
        padding: 3px 8px;
    }

    .job-section {
        padding: 16px 12px;
    }

    .job-section .section-title {
        font-size: 16px;
    }

    .section-content {
        font-size: 12px;
    }

    .apply-card,
    .job-info-card {
        padding: 16px 12px;
    }

    .apply-btn {
        padding: 11px 16px;
        font-size: 12px;
    }
}

/* Share Offer Styles */
.share-offer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #e5e7eb);
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 10px;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-twitter:hover {
    background: #0f1419;
    color: white;
    border-color: #0f1419;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.share-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-copy:hover,
.share-copy.copied {
    background: var(--primary, #6366f1);
    color: white;
    border-color: var(--primary, #6366f1);
}

@media (max-width: 768px) {
    .share-btn {
        width: 36px;
        height: 36px;
    }
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}
