/* Job Detail Page Styles */

/* Loading and Error States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #0267c3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #64748b;
    font-size: 1.1rem;
}

.error-container {
    padding: 4rem 0;
    text-align: center;
}

.error-content h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.back-to-jobs-btn {
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-to-jobs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 103, 195, 0.4);
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0267c3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb-separator {
    color: #94a3b8;
}

.breadcrumb-current {
    color: #64748b;
    font-weight: 500;
}

/* Job Header */
.job-header-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.job-header-content {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.company-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(2, 103, 195, 0.3);
}

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

.job-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0267c3;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    color: #64748b;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.apply-btn-primary {
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 103, 195, 0.3);
}

.apply-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 103, 195, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.save-job-btn,
.share-job-btn {
    background: white;
    border: 2px solid #e2e8f0;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.save-job-btn:hover,
.share-job-btn:hover {
    border-color: #0267c3;
    color: #0267c3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 103, 195, 0.2);
}

.save-job-btn.saved {
    background: #0267c3;
    border-color: #0267c3;
    color: white;
}

/* Job Content */
.job-content-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.job-main-content {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.job-section {
    margin-bottom: 3rem;
}

.job-section:last-child {
    margin-bottom: 0;
}

.job-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.job-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.job-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
}

.job-list {
    list-style: none;
    padding: 0;
}

.job-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.job-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #0267c3;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #0267c3;
    color: white;
    transform: translateY(-2px);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid #0267c3;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Application Process */
.application-process {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Apply Section */
.apply-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.apply-section h3 {
    margin-bottom: 1rem;
}

.apply-section p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.apply-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.apply-btn-large {
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 103, 195, 0.3);
}

.apply-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 103, 195, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.apply-note {
    font-size: 0.9rem;
    color: #94a3b8;
}

.apply-note a {
    color: #0267c3;
    text-decoration: none;
}

.apply-note a:hover {
    text-decoration: underline;
}

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

.sidebar-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Job Details List */
.job-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Company Info Sidebar */
.company-info-sidebar {
    text-align: center;
}

.company-logo-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0267c3 0%, #1d4ed8 100%);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(2, 103, 195, 0.3);
}

.company-info-sidebar p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.company-link {
    color: #0267c3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.company-link:hover {
    text-decoration: underline;
}

/* Similar Jobs */
.similar-jobs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.similar-job-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 3px solid #0267c3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.similar-job-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.similar-job-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.similar-job-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.job-posted-small {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-header-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .job-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .job-title {
        font-size: 2rem;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .job-meta {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-main-content {
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .apply-btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .tech-tags,
    .skills-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .job-header-section {
        padding: 1.5rem 0;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .job-main-content {
        padding: 1rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .job-content-section {
        padding: 2rem 0;
    }
    
    .apply-btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}