/*
 * FEGO Career System Styles
 * Styles for career pages (kariera.php, de/kariera.php)
 * Version: 2.0
 */

/* Job Offers Container */
.job-offers-container {
    background: #fff;
    border-radius: 10px;
    padding: 50px;
    margin: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

/* Individual Job Offer */
.job-offer {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

.job-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #3B71A5;
}

.job-offer:last-child {
    margin-bottom: 30px;
}

/* Job Title */
.job-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Job Meta Information */
.job-meta {
    color: #666;
    margin-bottom: 20px;
}

.job-meta span {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
}

.job-meta i {
    margin-right: 5px;
    color: #0066cc;
}

/* Job Description */
.job-description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.job-description-full {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
}

/* Job Requirements */
.job-requirements {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3B71A5;
}

.job-requirements h5 {
    color: #2A5A8A;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.job-requirements div {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

/* Apply Button */
.apply-btn {
    background: #3B71A5;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-top: auto;
    text-align: center;
}

.apply-btn:hover {
    background: #2A5A8A;
    color: white;
    text-decoration: none;
}

/* Read More Button */
.read-more {
    background: #3B71A5;
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: 500;
    font-size: 12px;
    margin-top: auto;
    text-align: center;
    border: 2px solid #3B71A5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.read-more:hover {
    background: transparent;
    color: #3B71A5;
}

/* No Jobs State */
.no-jobs {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

.no-jobs i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-jobs h3 {
    color: #3B71A5;
    font-size: 22px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Override titles styling for career pages */
.job-offers-container .titles {
    margin: 0;
    max-width: none;
    text-align: center;
}

.titles p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Popup Styles */
.job-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.job-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.job-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.job-popup-close:hover {
    color: #333;
}

/* Popup Content Styling */
.job-popup-content .job-meta {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

.job-popup-content .job-meta span {
    margin-right: 25px;
    display: inline-block;
}

.job-popup-content .job-title {
    font-size: 26px;
    color: #2A5A8A;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-offers-container .row > div {
        margin-bottom: 40px;
    }
    
    .job-popup-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .job-offers-container {
        padding: 30px 20px;
    }
    
    .job-offer {
        height: auto;
        min-height: 280px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .job-offers-container {
        padding: 20px 15px;
    }
    
    .job-offer {
        padding: 15px;
    }
    
    .job-title {
        font-size: 20px;
    }
    
    .job-meta span {
        margin-right: 15px;
        font-size: 13px;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}