/* ===================================
   Job Portal - Jobs Specific Styles
   =================================== */

/* Badge Soft Variants (extending base styles) */
.bg-info-soft {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.category-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    position: relative;
    z-index: 2;
}

.category-count {
    color: var(--secondary-color);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.category-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Job List Items */
.job-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.job-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.job-item-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.job-item-logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.job-item-title a {
    color: var(--dark-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.job-item-title a:hover {
    color: var(--primary-color);
}

/* Badge Outline Variants */
.badge-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.badge-outline-success {
    background: transparent;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.badge-outline-warning {
    background: transparent;
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

/* Job Filter Buttons */
.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--secondary-color);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Jobs Index Page Styles */
.search-form-compact {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.search-form-compact .search-input {
    height: 50px;
}

.search-form-compact .search-btn {
    height: 50px;
}

.filters-sidebar .sidebar-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.filter-group {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.form-check {
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Results Header */
.results-header {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.sort-options .form-select {
    width: auto;
    min-width: 180px;
}

/* Active Filters */
.active-filters {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.active-filter-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.active-filter-tag a {
    color: white;
    opacity: 0.8;
}

.active-filter-tag a:hover {
    opacity: 1;
}

/* Job Cards for Listing */
.job-card-listing {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.job-card-listing:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Featured Employers */
.featured-employer-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.featured-employer-item:last-child {
    border-bottom: none;
}

.employer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.employer-logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.employer-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-item:hover {
    background-color: #f8fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.suggestion-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Job Detail Page Styles */
.job-header-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.company-logo {
    width: 120px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-large {
    width: 80px;
    height: 80px;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.company-logo-placeholder-large {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.job-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.company-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.company-name a:hover {
    color: var(--primary-dark);
}

/* Badge Large Variants */
.badge-primary-lg,
.badge-success-lg,
.badge-warning-lg,
.badge-info-lg,
.badge-secondary-lg {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-primary-lg {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-success-lg {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
}

.badge-warning-lg {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning-color);
}

.badge-info-lg {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.badge-secondary-lg {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

/* Application Card */
.application-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 2rem;
}

.application-card-body {
    padding: 24px;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.job-description-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
}

.requirements-list,
.benefits-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 20px;
}

.requirements-list li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.benefits-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* Job Details Grid */
.job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: var(--dark-color);
}

/* Application CTA */
.application-cta-section {
    margin-top: 40px;
}

.application-cta-card {
    background: var(--gradient-primary);
    color: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Sidebar Job Items */
.sidebar-job-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-job-item:last-child {
    border-bottom: none;
}

.sidebar-job-title a {
    color: var(--dark-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar-job-title a:hover {
    color: var(--primary-color);
}

.sidebar-job-company {
    font-weight: 500;
    color: var(--primary-color);
}

.sidebar-job-meta {
    margin-top: 4px;
}

/* Job Application Page Styles */
.application-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.job-summary-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.company-logo-medium {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

.company-logo-placeholder-medium {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #f1f5f9;
}

.application-form-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.application-form-header {
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #f1f5f9;
}

.application-form-body {
    padding: 32px;
}

.form-section {
    position: relative;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.current-resume {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.application-summary {
    background: #f8fafc;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid #e2e8f0;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.summary-value {
    font-weight: 600;
    color: var(--dark-color);
}

.form-actions {
    background: #f8fafc;
    padding: 24px 32px;
    border-top: 1px solid #f1f5f9;
    margin: 0 -32px -32px;
}

.application-note {
    padding: 12px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

/* Application Tips */
.application-tips {
    margin-top: 32px;
}

.tips-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.tips-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 20px;
    color: var(--secondary-color);
}

.tips-list li:before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tips-list li:last-child {
    border-bottom: none;
}

/* Responsive Design for Jobs */
@media (max-width: 768px) {
    .job-title-large {
        font-size: 2rem;
    }
    
    .company-logo-large {
        width: 60px;
        height: 60px;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
    }
    
    .application-form-header,
    .application-form-body {
        padding: 24px 20px;
    }
    
    .form-actions {
        padding: 20px;
        margin: 0 -20px -24px;
    }
}

@media (max-width: 576px) {
    .search-form-compact {
        padding: 16px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .application-card-body {
        padding: 20px;
    }
    
    .job-card-listing {
        padding: 16px;
    }
}