/* ========================================
   Калачинск Онлайн - Страница Вакансий
   Page-specific styles
   ======================================== */

/* Breadcrumb */
.jobs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.jobs-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.jobs-breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.jobs-breadcrumb .separator {
    color: var(--text-light);
    font-size: 0.8rem;
}

.jobs-breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Container */
.jobs-page-container {
    margin-bottom: 3rem;
}

.jobs-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Layout */
.jobs-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
}

/* Filter Section */
.jobs-filter-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s;
}

.job-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.job-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.job-card-title a:hover {
    color: var(--primary-color);
}

.job-salary {
    font-weight: 700;
    color: #10B981;
    font-size: 1rem;
    white-space: nowrap;
}

.job-card-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.job-description {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.job-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.job-read-more:hover {
    color: var(--primary-hover);
}

.job-type-badge {
    background: #F3F4F6;
    color: var(--text-gray);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Empty State */
.jobs-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

/* ========================================
   AFISHA SLIDER (330x644px)
   ======================================== */
.jobs-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-afisha-block {
    width: 330px;
    height: 644px;
    background: white;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.afisha-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 5;
    pointer-events: none;
}

.afisha-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
}

.afisha-slide.active {
    opacity: 1;
    z-index: 2;
}

.afisha-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.afisha-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.afisha-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.afisha-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.afisha-dot:hover {
    background: white;
}

.afisha-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.afisha-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #60A5FA);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.afisha-content i {
    opacity: 0.6;
}

.afisha-content p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.afisha-content small {
    opacity: 0.9;
}

/* Responsive *//* ========================================
   Калачинск Онлайн - Страница Вакансий
   Исправленные стили для правильной сетки
   ======================================== */

/* Breadcrumb */
.jobs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.jobs-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.jobs-breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.jobs-breadcrumb .separator {
    color: var(--text-light);
    font-size: 0.8rem;
}

.jobs-breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Container */
.jobs-page-container {
    margin-bottom: 3rem;
}

.jobs-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Wrapper для grid */
.jobs-wrapper {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

/* Main Content */
.jobs-main-content {
    min-width: 0; /* Важно для grid */
}

/* Filter Section */
.jobs-filter-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s;
}

.job-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.job-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.job-card-title a:hover {
    color: var(--primary-color);
}

.job-salary {
    font-weight: 700;
    color: #10B981;
    font-size: 1rem;
    white-space: nowrap;
}

.job-card-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.job-description {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.job-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.job-read-more:hover {
    color: var(--primary-hover);
}

.job-type-badge {
    background: #F3F4F6;
    color: var(--text-gray);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Empty State */
.jobs-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

/* ========================================
   SIDEBAR & AFISHA (330x644px)
   ======================================== */
.jobs-sidebar {
    position: sticky;
    top: 100px;
    width: 330px;
    flex-shrink: 0; /* Важно: не сжимать сайдбар */
}

.sidebar-afisha-block {
    width: 330px;
    height: 644px;
    background: white;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.afisha-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 5;
    pointer-events: none;
}

.afisha-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
}

.afisha-slide.active {
    opacity: 1;
    z-index: 2;
}

.afisha-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.afisha-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.afisha-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.afisha-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.afisha-dot:hover {
    background: white;
}

.afisha-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.afisha-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #60A5FA);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.afisha-content i {
    opacity: 0.6;
}

.afisha-content p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.afisha-content small {
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .jobs-wrapper {
        grid-template-columns: 1fr;
    }
    
    .jobs-sidebar {
        position: static;
        width: 100%;
    }
    
    .sidebar-afisha-block {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .jobs-page-title {
        font-size: 1.5rem;
    }
    
    .jobs-filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .sidebar-afisha-block {
        height: 300px;
    }
    
    .job-card-header {
        flex-direction: column;
    }
    
    .job-salary {
        white-space: normal;
    }
}
@media (max-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }
    
    .jobs-sidebar {
        position: static;
    }
    
    .sidebar-afisha-block {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .jobs-page-title {
        font-size: 1.5rem;
    }
    
    .jobs-filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .sidebar-afisha-block {
        height: 300px;
    }
}