/* Roles Page Specific Styles */

/* Hero Section */
.roles-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.roles-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.roles-hero .hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Active State */
.nav-link.active {
    color: #4A90E2;
    font-weight: 600;
}

/* Filters Section */
.filters-section {
    padding: 40px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e1e5e9;
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4A90E2;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.filters-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Results Section */
.results-section {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    background-color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    border-color: #4A90E2;
    background-color: #4A90E2;
    color: white;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.roles-grid.list-view {
    grid-template-columns: 1fr;
}

/* Role Cards */
.role-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.role-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.role-type {
    background-color: #4A90E2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1rem;
}

.role-type.contract {
    background-color: #f39c12;
}

.role-type.part-time {
    background-color: #27ae60;
}


.role-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.location-icon {
    width: 16px;
    height: 16px;
}

.role-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.role-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background-color: #f8f9fa;
    color: #4A90E2;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e1e5e9;
}

.role-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.role-level {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.apply-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #357ABD;
}

/* List View Styles */
.roles-grid.list-view .role-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
}

.roles-grid.list-view .role-main {
    flex: 1;
}

.roles-grid.list-view .role-header {
    margin-bottom: 0.5rem;
}


.roles-grid.list-view .role-location {
    margin-bottom: 0.5rem;
}

.roles-grid.list-view .role-description {
    margin-bottom: 0.75rem;
    max-width: 600px;
}

.roles-grid.list-view .role-skills {
    margin-bottom: 0;
}

.roles-grid.list-view .role-footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 0;
    border-top: none;
}

/* Simple Contact Container */
.simple-contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
}

.contact-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    min-width: 200px;
}

/* No Openings State */
.no-openings-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-openings-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 50%;
    border: 2px solid #e1e5e9;
}

.no-openings-icon svg {
    width: 40px;
    height: 40px;
}

.no-openings-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.no-openings-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.no-openings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.no-openings-actions .btn {
    min-width: 150px;
}

.no-openings-note {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
    text-align: center;
}

.no-openings-note p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-openings-note p:last-child {
    margin-bottom: 0;
}

.no-openings-note strong {
    color: #333;
}

/* No Results (for when filters return no results) */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.clear-filters-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-filters-btn:hover {
    background-color: #357ABD;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roles-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-select {
        width: 100%;
        max-width: 300px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .roles-grid.list-view .role-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .roles-grid.list-view .role-footer {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .no-openings-container {
        padding: 2rem 1rem;
    }
    
    .no-openings-title {
        font-size: 1.5rem;
    }
    
    .no-openings-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-openings-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .roles-hero {
        padding: 100px 0 40px;
    }
    
    .roles-hero .hero-title {
        font-size: 2rem;
    }
    
    .role-card {
        padding: 1rem;
    }
    
    .role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .role-type {
        margin-left: 0;
    }
}
