/* ==================== MAIN LAYOUT ==================== */
.job-detail-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.job-detail-container {
    max-width: 900px; /* Reduced from 1200px since sidebar is removed */
    margin: 0 auto;
    padding: 1rem;
}

/* ==================== MAIN JOB CARD ==================== */
.job-detail-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.job-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.job-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1.5rem;
}

.company-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.company-logo-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f8f9fa;
    flex-shrink: 0;
}

.company-details {
    flex: 1;
}

.job-title-main {
    color: #2c3e50;
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    font-weight: 600;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-name {
    font-size: 1.4rem;
    color: #3498db;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.job-badge-large {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.job-badge-large.product {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.job-badge-large.service {
    background: linear-gradient(135deg, #2575fc 0%, #2cac90 100%);
    color: white;
}

/* ==================== APPLICATION BUTTONS ==================== */
.job-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.apply-button {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.apply-button:hover {
    background: linear-gradient(135deg, #009688, #8bc34a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.4);
}

.apply-button.login-to-apply {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.apply-button.login-to-apply:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4);
}

.apply-button.disabled {
    background: linear-gradient(135deg, #8e9eab, #eef2f3);
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.apply-button.disabled:hover {
    transform: none;
    cursor: not-allowed;
}

/* ==================== JOB META INFO ==================== */
.job-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3f7fc 0%, #e8f4fd 100%);
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.meta-label {
    font-size: 0.8rem;
    color: #5a6b7c;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* ==================== JOB CONTENT SECTIONS ==================== */
.job-description-section,
.job-requirements-section,
.job-skills-section,
.job-insights-section,
.job-process-section,
.job-why-apply,
.job-rejection-section,
.job-faq {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    animation: slideInRight 0.5s ease-out;
}

.job-description-section h3,
.job-requirements-section h3,
.job-skills-section h3,
.job-insights-section h3,
.job-process-section h3,
.job-why-apply h3,
.job-rejection-section h3,
.job-faq h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-image-slice: 1;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.job-description-content {
    line-height: 1.7;
    color: #566573;
    font-size: 1.05rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* ==================== DYNAMIC CONTENT SECTIONS ==================== */
/* Job Insights Section */
.job-insights-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    border-left: 4px solid #3b82f6;
    border: 1px solid #dbeafe;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.insights-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-list li:last-child {
    border-bottom: none;
}

.insights-list li strong {
    color: #1e40af;
    min-width: 200px;
    display: inline-block;
    font-weight: 600;
}

.insight-note {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Job Process Section */
.job-process-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    border: 1px solid #fde68a;
}

.process-steps {
    list-style-type: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.process-steps li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    position: relative;
    padding-left: 50px;
}

.process-steps li:before {
    content: counter(step-counter);
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.step-number {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-right: 10px;
    color: #495057;
}

.step-name {
    color: #212529;
    font-weight: 600;
}

.step-duration {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    margin-top: 3px;
}

/* Job Why Apply Section */
.job-why-apply {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #10b981;
    border: 1px solid #bbf7d0;
}

.job-why-apply p {
    color: #047857;
    line-height: 1.7;
    margin: 0;
}

/* Job Rejection Section */
.job-rejection-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    border: 1px solid #fecaca;
}

.rejection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rejection-list li {
    padding: 0.5rem 0;
    color: #dc2626;
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.rejection-list li:before {
    content: "✗";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #ef4444;
}

/* Job FAQ Section */
.job-faq {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
}

.faq-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item p {
    margin: 0;
    line-height: 1.6;
}

.faq-item strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item br {
    display: none;
}

.faq-item strong ~ br + span {
    display: block;
    color: #475569;
    padding-left: 1rem;
    border-left: 3px solid #cbd5e1;
    margin-top: 0.5rem;
}

/* Job Requirements Section */
.job-requirements-section {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-left: 4px solid #eab308;
    border: 1px solid #fde047;
}

.requirements-content {
    color: #713f12;
    line-height: 1.6;
}

/* Job Skills Section */
.job-skills-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border: 1px solid #bfdbfe;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
}

.skill-tag {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #60a5fa;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* ==================== RELATED JOBS ==================== */
.related-jobs {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.related-jobs h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.related-job-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.related-job-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-job-header {
    margin-bottom: 0.5rem;
}

.related-job-header h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.related-job-header h4 a {
    color: #1e40af;
    text-decoration: none;
}

.related-job-header h4 a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.related-company {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.related-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.related-location, .related-salary {
    color: #4b5563;
}

.related-job-card .view-details-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.related-job-card .view-details-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.no-related-jobs {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ==================== APPLICATION STATUS SECTION ==================== */
.application-status-section {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #dbeafe;
    margin: 2rem 0;
}

.application-status-section h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.application-status-section p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.apply-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.apply-benefits li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.apply-benefits li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==================== QUICK APPLY BUTTON ==================== */
.quick-apply-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.quick-apply-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px;
}

.quick-apply-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b439b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quick-apply-button.login-to-apply {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-apply-button.login-to-apply:hover {
    background: linear-gradient(135deg, #e668b3 0%, #ee5c83 100%);
}

.quick-apply-button.disabled {
    background: linear-gradient(135deg, #8e9eab, #eef2f3);
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.quick-apply-button.disabled:hover {
    transform: none;
    cursor: not-allowed;
}

/* ==================== QUICK APPLICATION BUTTON (Floating) ==================== */
.quick-apply-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-apply-floating:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.quick-apply-floating:before {
    content: "🚀 ";
    font-size: 1.2rem;
}

.quick-apply-floating.disabled {
    background: linear-gradient(135deg, #8e9eab, #eef2f3);
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.quick-apply-floating.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .job-detail-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .job-detail-container {
        padding: 0.5rem;
    }
    
    .job-detail-card {
        padding: 1.5rem;
    }
    
    .job-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .company-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .job-title-main {
        font-size: 1.8rem;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .job-meta-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .job-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .apply-button {
        width: 100%;
        min-width: auto;
    }
    
    .company-logo-large {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .quick-apply-floating {
        bottom: 15px;
        right: 15px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 40px;
    }
    
    .insights-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .insights-list li strong {
        min-width: auto;
    }
    
    .process-steps li {
        padding-left: 40px;
        margin-bottom: 10px;
    }
    
    .process-steps li:before {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
        left: -12px;
    }
    
    .rejection-list li {
        padding-left: 1.8rem;
    }
    
    .faq-item strong ~ br + span {
        padding-left: 0.5rem;
    }
    
    .related-job-card {
        padding: 0.8rem;
    }
    
    .quick-apply-button {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-detail-card {
        padding: 1.2rem;
    }
    
    .job-title-main {
        font-size: 1.5rem;
    }
    
    .job-meta-info {
        padding: 1rem;
    }
    
    .skills-list {
        justify-content: center;
    }
    
    .apply-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .process-steps li {
        padding-left: 35px;
    }
    
    .process-steps li:before {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
        left: -11px;
    }
    
    .related-job-card {
        padding: 0.8rem;
    }
    
    .job-description-section h3,
    .job-requirements-section h3,
    .job-skills-section h3,
    .job-insights-section h3,
    .job-process-section h3,
    .job-why-apply h3,
    .job-rejection-section h3,
    .job-faq h3 {
        font-size: 1.1rem;
    }
    
    .quick-apply-floating {
        bottom: 10px;
        right: 10px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 30px;
    }
    
    .quick-apply-floating:before {
        font-size: 1rem;
    }
}

/* ==================== APPLICATION STATUS BADGES ==================== */
.application-status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
}

.status-open {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.status-closed {
    background: linear-gradient(135deg, #8e9eab, #eef2f3);
    color: #6c757d;
}

.status-soon {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
    animation: pulse 2s infinite;
}

/* ==================== LOADING STATE ==================== */
.application-loading {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: transparent;
    position: relative;
    overflow: hidden;
}

.application-loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


