/* ============================================
   JOB DETAIL - STYLESHEET
   Job-Scouts.com | Individual job listing page
   ============================================ */

/* ========== PAGE-SPECIFIC VARIABLES ========== */
:root {
    --detail-primary: #4f46e5;
    --detail-primary-dark: #4338ca;
    --detail-success: #10b981;
    --detail-warning: #f59e0b;
}

/* ========== BASE STYLES ========== */
body {
    background-color: #ffffff;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ========== JOB HEADER ========== */
.job-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-12);
}

.company-info {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.company-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.company-logo-fallback {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.company-logo-fallback i {
    font-size: 2rem;
    color: var(--detail-primary);
}

.job-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.company-name {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ========== JOB META TAGS ========== */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* ========== ACTION BUTTONS ========== */
.action-buttons {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.btn {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--detail-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== CONTENT AREA ========== */
.content-wrapper {
    margin-top: calc(var(--space-8) * -1);
    position: relative;
    z-index: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-8);
    align-items: start;
}

/* ========== MAIN CONTENT CARDS ========== */
.content-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.card-title i {
    color: var(--detail-primary);
}

.card-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ========== SKILLS GRID ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.skill-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.skill-tag:hover {
    border-color: var(--detail-primary);
    background: #eef2ff;
    transform: translateY(-2px);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: sticky;
    top: var(--space-8);
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.company-website-link {
    color: var(--detail-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.company-website-link:hover {
    color: var(--detail-primary-dark);
}

/* ========== MAP CONTAINER ========== */
.map-container {
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

#job-location-map {
    width: 100%;
    height: 100%;
}

/* ========== STJVault GRID ========== */
.stJVault-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--detail-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* ========== DEADLINE WARNING ========== */
.deadline-warning {
    color: var(--detail-warning);
    font-weight: 600;
    font-size: 1rem;
}

/* ========== SHARE BUTTONS ========== */
.share-button,
.report-button {
    width: 100%;
    margin-bottom: var(--space-3);
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.share-button:hover,
.report-button:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.report-button {
    margin-bottom: 0;
}

/* ========== ALERT BOX ========== */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    border-left: 4px solid;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .job-title {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .job-header {
        padding: var(--space-12) 0 var(--space-8);
    }

    .company-info {
        flex-direction: column;
        text-align: center;
    }

    .job-meta {
        justify-content: center;
    }

    .stJVault-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: var(--space-6);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}