/* ========== Job Details Page Styles ========== */

/* Brand Colors from Home Page */
/* Primary Color: #7c3aed (Purple) */
/* Secondary Color: #f97316 (Orange) */
/* Text Dark: #1f2937 */
/* Text Gray: #6b7280 */
/* Background Light: #f9fafb */

/* ========== Job Details Hero Section ========== */
.job-details-hero {
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.95) 0%, rgba(237, 233, 254, 0.95) 50%, rgba(221, 214, 254, 0.95) 100%),
                url('images/jops-details.jpeg') center/cover no-repeat;
    padding: 120px 0 50px;
    margin-top: 85px;
    position: relative;
}

.back-navigation {
    margin-bottom: 25px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #6d28d9;
    gap: 12px;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* ========== Job Header Card ========== */
.job-header-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
    border: 1px solid #e5e7eb;
}

.job-header-content {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.company-logo-wrapper {
    flex-shrink: 0;
}

.company-logo-large {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: contain;
    background: #f9fafb;
    padding: 12px;
    border: 2px solid #e5e7eb;
}

.job-header-info {
    flex: 1;
}

.job-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.company-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.95rem;
}

.company-info i {
    color: #7c3aed;
}

.company-name {
    font-weight: 600;
    color: #1f2937;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-full-time {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-experience {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.badge-salary {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.job-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-apply-main {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save,
.btn-share {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== Main Content Grid ========== */
.job-details-main {
    background: #ffffff;
    padding: 50px 0;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* ========== Job Details Content ========== */
.job-details-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.details-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.details-section:hover {
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.08);
    border-color: #a78bfa;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.section-content {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.responsibilities-list,
.requirements-list,
.nice-to-have-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsibilities-list li,
.requirements-list li,
.nice-to-have-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #6b7280;
    line-height: 1.7;
}

.responsibilities-list li:before,
.requirements-list li:before,
.nice-to-have-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-size: 0.85rem;
}

.nice-to-have-list li:before {
    content: '\f005';
    color: #f97316;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.benefit-item:hover {
    background: #ffffff;
    border-color: #7c3aed;
}

.benefit-item i {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 12px;
    display: block;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #7c3aed;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========== Sidebar ========== */
.job-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
}

.sidebar-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 18px;
}

.sidebar-card-text {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Apply Card */
.apply-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #a78bfa;
}

.btn-apply-sidebar {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.btn-save-sidebar {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Company Card */
.company-info-content {
    text-align: center;
}

.company-logo-sidebar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: #f9fafb;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
}

.company-name-sidebar {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.company-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.company-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

.stat-item i {
    color: #7c3aed;
    width: 20px;
}

.btn-view-company {
    width: 100%;
    padding: 12px 20px;
}

/* Overview Card */
.overview-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.overview-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.overview-item i {
    color: #7c3aed;
    font-size: 1.1rem;
    margin-top: 3px;
}

.overview-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overview-label {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

.overview-value {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
}

/* Share Card */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0a66c2;
}

.share-whatsapp {
    background: #25d366;
}

.share-copy {
    background: #6b7280;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========== Similar Jobs Section ========== */
.similar-jobs-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid #e5e7eb;
}

.similar-jobs-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

.similar-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.similar-job-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.similar-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
    border-color: #a78bfa;
}

.similar-job-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: #f9fafb;
    padding: 8px;
    margin-bottom: 15px;
}

.similar-job-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.similar-job-company {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.similar-job-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #6b7280;
}

.similar-job-meta i {
    color: #7c3aed;
}

/* ========== Responsive Design ========== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .job-details-sidebar {
        order: -1;
    }

    .sidebar-card {
        position: relative;
        top: auto;
    }

    .job-title-main {
        font-size: 1.7rem;
    }

    .job-header-card {
        padding: 25px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .job-details-hero {
        padding: 100px 0 40px;
    }

    .job-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-logo-large {
        width: 80px;
        height: 80px;
    }

    .job-title-main {
        font-size: 1.5rem;
    }

    .company-info {
        justify-content: center;
        gap: 15px;
    }

    .job-badges {
        justify-content: center;
    }

    .job-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-apply-main,
    .btn-save,
    .btn-share {
        width: 100%;
        justify-content: center;
    }

    .details-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .similar-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .similar-jobs-title {
        font-size: 1.5rem;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .similar-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .job-header-card {
        padding: 20px;
    }

    .job-title-main {
        font-size: 1.3rem;
    }

    .company-info {
        flex-direction: column;
        gap: 10px;
    }

    .details-section {
        padding: 18px;
    }

    .section-title {
        font-size: 1.1rem;
        gap: 8px;
    }

    .section-content {
        font-size: 0.95rem;
    }

    .sidebar-card {
        padding: 20px;
    }

    .sidebar-card-title {
        font-size: 1.1rem;
    }

    .share-buttons {
        justify-content: space-between;
    }

    .share-btn {
        flex: 0 0 calc(20% - 8px);
    }
}

/* ========== Animations ========== */
/* Animations disabled */

/* ========== Accessibility ========== */
.btn:focus,
.share-btn:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* ========== Print Styles ========== */
@media print {
    .navbar,
    .back-navigation,
    .job-header-actions,
    .job-details-sidebar,
    .similar-jobs-section {
        display: none;
    }

    .job-details-grid {
        grid-template-columns: 1fr;
    }

    .details-section {
        page-break-inside: avoid;
        box-shadow: none;
    }
}
