/* 
 * USJobPost Listings Styles 
 * Premium modern design with hover effects, grid layouts, and clean typography.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.usjobpost-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #334155;
    box-sizing: border-box;
}

.usjobpost-container * {
    box-sizing: border-box;
}

.usjobpost-header {
    text-align: center;
    margin-bottom: 3rem;
}

.usjobpost-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.usjobpost-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.usjobpost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.usjobpost-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.usjobpost-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usjobpost-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.usjobpost-card:hover::before {
    opacity: 1;
}

.usjobpost-card-content {
    margin-bottom: 1.5rem;
}

.usjobpost-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.usjobpost-icon {
    width: 24px;
    height: 24px;
}

.usjobpost-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.usjobpost-card-location {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.usjobpost-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.usjobpost-card-link svg {
    transition: transform 0.2s ease;
}

.usjobpost-card:hover .usjobpost-card-link {
    color: #2563eb;
}

.usjobpost-card:hover .usjobpost-card-link svg {
    transform: translateX(4px);
}

.usjobpost-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 4px;
    font-family: inherit;
    margin: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .usjobpost-title {
        font-size: 2rem;
    }
    
    .usjobpost-grid {
        grid-template-columns: 1fr;
    }
}
