/**
 * Styles for SSC News Integration
 * Chỉ chứa các styles bổ sung không có trong styles.css
 */

/* Loading & Error States */
.loading-container,
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.error-container {
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 8px;
    margin: 20px 0;
}

.error-container i {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

.no-news {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-size: 18px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.no-news i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

/* Badge expiring animation */
.job-badge-simple.expiring {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

/* Job Header Row - Title và dates inline */
.job-header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.job-meta-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.job-date-inline,
.job-expiry-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.job-date-inline i,
.job-expiry-inline i {
    font-size: 13px;
    color: #0066cc;
}

.job-expiry-inline {
    color: #ff6b6b;
    font-weight: 500;
}

.job-expiry-inline i {
    color: #ff6b6b;
}

/* News List Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#news-list-container .job-card-simple {
    animation: fadeIn 0.3s ease-out forwards;
}

#news-list-container .job-card-simple:nth-child(1) { animation-delay: 0.05s; }
#news-list-container .job-card-simple:nth-child(2) { animation-delay: 0.1s; }
#news-list-container .job-card-simple:nth-child(3) { animation-delay: 0.15s; }
#news-list-container .job-card-simple:nth-child(4) { animation-delay: 0.2s; }
#news-list-container .job-card-simple:nth-child(5) { animation-delay: 0.25s; }

/* Job Content for Detail Page */
.job-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.job-content p {
    margin-bottom: 16px;
}

.job-content ul,
.job-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.job-content li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .job-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .job-meta-inline {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .loading-container,
    .error-container,
    .no-news {
        padding: 40px 20px;
        min-height: 200px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Recruitment hero should match index hero full-height background */
.recruitment-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.recruitment-hero .hero-background,
.recruitment-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.recruitment-hero .container {
    position: relative;
    z-index: 2;
}

.recruitment-hero .recruitment-hero-content {
    text-align: center;
}

